ID:               44075
 Updated by:       [EMAIL PROTECTED]
 Reported By:      jeff76 at operamail dot com
-Status:           Open
+Status:           Verified
 Bug Type:         Strings related
 Operating System: FreeBSD
 PHP Version:      6CVS-2008-02-08 (snap)


Previous Comments:
------------------------------------------------------------------------

[2008-02-08 06:24:02] jeff76 at operamail dot com

Description:
------------
strtok is misbehaving in 6 snap., or at least not consistent with the
behavior in PHP version 5.

Reproduce code:
---------------
$chaine='1-2';
$a=strtok($chaine,'-');
$b=strtok(' ');
echo($a.' then '.$b);


Expected result:
----------------
1 then 2

Actual result:
--------------
1 then -2


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=44075&edit=1

Reply via email to