ID: 29712
Updated by: [EMAIL PROTECTED]
Reported By: liit at geeksbynature dot dk
-Status: Analyzed
+Status: Closed
Bug Type: Documentation problem
Operating System: Gentoo Linux
PHP Version: 4.3.8
New Comment:
This bug has been fixed in the documentation's XML sources.
The changes may not appear immediately, since the online and
downloadable versions of the documentation need some time to get
updated. We would therefore like to ask for your patience in this
matter.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2004-08-17 00:12:47] [EMAIL PROTECTED]
ereg() returns the length of the matched string on success,
the documentation is wrong.
------------------------------------------------------------------------
[2004-08-16 20:57:24] liit at geeksbynature dot dk
Description:
------------
The function ereg() either returns (boolean)FALSE or (int)1, and not
(boolean)FALSE or (boolean)TRUE
Reproduce code:
---------------
echo gettype(ereg("foo","foo"));
echo gettype(ereg("foo","bar"));
Expected result:
----------------
boolean
boolean
Actual result:
--------------
integer
boolean
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29712&edit=1