From: argreway at gmail dot com Operating system: Linux RedHat 5 PHP version: 5.2.6 PHP Bug Type: *General Issues Bug description: Call to undefined function is_binary() !!!!
Description: ------------ The PHP documentation describes a function is_binary() at http://php.interec.es/manual/en/function.is-binary.php that does not exist. I have tried PHP 4 and 5 on different OS's and all return the same error message: PHP Fatal error: Call to undefined function is_binary() in /home/greway/test.php on line 2. I have downloaded the latest PHP 5.2.6 source and grep'ed for is_binary to find that there is not even a mention of this function in the source code. Am I the only one to every try and use this function? Or am I doin somthing wrong. Reproduce code: --------------- <?php if (is_binary(1001)) { echo "Yes"; } else { echo "No"; } ?> Expected result: ---------------- Print "Yes" Actual result: -------------- PHP Fatal error: Call to undefined function is_binary() in /home/greway/test.php on line 2 -- Edit bug report at http://bugs.php.net/?id=45472&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45472&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45472&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45472&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45472&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45472&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45472&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45472&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45472&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45472&r=support Expected behavior: http://bugs.php.net/fix.php?id=45472&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45472&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45472&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45472&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45472&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45472&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45472&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45472&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45472&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45472&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45472&r=mysqlcfg
