OSDN Git Service

Rename 'hex2bin' to 'pkwk_hex2bin' because of PHP 5.4+ compatibility
[pukiwiki/pukiwiki.git] / lib / func.php
index 92e1fd6..d760dfe 100644 (file)
@@ -304,11 +304,11 @@ function encode($key)
 // Decode page name
 function decode($key)
 {
-       return hex2bin($key);
+       return pkwk_hex2bin($key);
 }
 
 // Inversion of bin2hex()
-function hex2bin($hex_string)
+function pkwk_hex2bin($hex_string)
 {
        // preg_match : Avoid warning : pack(): Type H: illegal hex digit ...
        // (string)   : Always treat as string (not int etc). See BugTrack2/31