php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45472 Call to undefined function is_binary() !!!!
Submitted: 2008-07-09 23:04 UTC Modified: 2008-07-09 23:24 UTC
From: argreway at gmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.2.6 OS: Linux RedHat 5
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: argreway at gmail dot com
New email:
PHP Version: OS:

 

 [2008-07-09 23:04 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-09 23:24 UTC] johannes@php.net
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)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Oct 22 22:00:01 2025 UTC