ID: 10669
Updated by: andrei
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: PCRE related
Operating System: Linux-2.2.19
PHP Version: 4.0.5
New Comment:
This should work in 4.0.6 and later.
Previous Comments:
------------------------------------------------------------------------
[2001-05-04 11:48:56] [EMAIL PROTECTED]
Look at the following code:
<?
$price = "66950";
$formatado = preg_split ('//', $price, 0, PREG_SPLIT_NO_EMPTY);
$formatado_reverso = array_reverse ($formatado );
$escalar = sizeof($formatado);
echo $escalar;
?>
In php4.0.4pl1 the result is "5", in php4.0.5 the result is "1".
I also tried version 1.92 in CVS of /ext/pcre/php_pcre.c but I got the same result.
Is this a bug or a change in design ?
Thanks
Renato - Brasil.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=10669&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]