#45472 [Opn->Bgs]: Call to undefined function is_binary() !!!!
| From: | johannes@php.net | Date: | Wed, 09 Jul 2008 23:24:33 +0000 |
| Subject: | #45472 [Opn->Bgs]: Call to undefined function is_binary() !!!! | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-126427@lists.php.net to get a copy of this message | ||
ID: 45472
Updated by: johannes@php.net
Reported By: argreway at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: *General Issues
Operating System: Linux RedHat 5
PHP Version: 5.2.6
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
The documentation says "(No version information available, might be
only in CVS)" - it'S a PHP 6 feature. And no it'S not about binary
numbers but binary strings (compared to unicode strings, which are a PHP
6 feature)
Previous Comments:
------------------------------------------------------------------------
[2008-07-09 23:04:52] argreway at gmail dot com
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 this bug report at http://bugs.php.net/?id=45472&edit=1