kink | 8 Feb 13:11
Picon

SF.net SVN: squirrelmail:[14277] trunk/squirrelmail/plugins/mail_fetch/ functions.php

Revision: 14277
          http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=14277&view=rev
Author:   kink
Date:     2012-02-08 12:11:18 +0000 (Wed, 08 Feb 2012)
Log Message:
-----------
hex2bin is introduced in PHP 5.4

Modified Paths:
--------------
    trunk/squirrelmail/plugins/mail_fetch/functions.php

Modified: trunk/squirrelmail/plugins/mail_fetch/functions.php
===================================================================
--- trunk/squirrelmail/plugins/mail_fetch/functions.php	2012-02-08 12:09:10 UTC (rev 14276)
+++ trunk/squirrelmail/plugins/mail_fetch/functions.php	2012-02-08 12:11:18 UTC (rev 14277)
@@ -312,18 +312,21 @@
 // end of hooked functions

 /**
- * hex2bin - document me
+ * hex2bin - convert a hexadecimal string into binary
+ * Exists since PHP 5.4.
  */
-function hex2bin( $data ) {
+if ( ! function_exists('hex2bin') ) {
+    function hex2bin( $data ) {

-    /* Original code by josh@... */
+        /* Original code by josh@... */
(Continue reading)


Gmane