Bug #18127: explode not exploding

From: Date: Wed, 03 Jul 2002 06:31:10 +0000
Subject: Bug #18127: explode not exploding
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-12938@lists.php.net to get a copy of this message
From: BlackMagic@computer.org Operating system: Linux PHP version: 4.1.2 PHP Bug Type: Strings related Bug description: explode not exploding I'm using explode() to parse a street address from a web form looking for 0x0D characters, eg, $x = explode(0x0D, $address); The entire address ends up in $x, no matter how many line feeds it contains. The same thing happens with this code: $linefeed = 0x0D; $x = explode($linefeed, $address); This works, returning the correct value in $lines: $y = $lines = 0; $x = 1; while ($x) { $x = strpos($address, 0x0D, $y); $y = $x + 1; $lines++; } -- Edit bug report at http://bugs.php.net/?id=18127&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18127&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18127&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18127&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18127&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18127&r=support Expected behavior: http://bugs.php.net/fix.php?id=18127&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18127&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18127&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18127&r=globals

« previous php.bugs (#12938) next »