|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-09-24 15:29 UTC] ckoontz at yahoo dot com
in the following code: $string = "#This is an example string"; $tok1 = strtok($string,"#"); $tok1 should equal nothing.. however it equals $string This bug breaks ACID: http://www.cert.org/kb/acid/ people on IRC have verified that this bug is also in CVS as of this report PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 05:00:01 2025 UTC |
I have found a way to run this correct: In acid_common.php replace the script in /* ... */ with my one, that's work /* strtok($submit,"#"); $seq = strtok("-"); strtok("("); $sid = strtok("-"); $cid = strtok(")"); */ $boo = ereg_replace ("\#", " ", $submit); $boo = ereg_replace ("\(", " ", $boo); $boo = ereg_replace ("\)", " ", $boo); $boo = trim($boo); $pieces = explode("-", $boo); $seq = $pieces[0]; $sid = $pieces[1]; $cid = $pieces[2];