#19865 [NEW]: explode bug
| From: | vvtk@php.net | Date: | Fri, 11 Oct 2002 13:57:06 +0000 |
| Subject: | #19865 [NEW]: explode bug | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-22157@lists.php.net to get a copy of this message | ||
From: vvtk@php.net
Operating system: RedHat 7.1
PHP version: 4.3.0-pre1
PHP Bug Type: *General Issues
Bug description: explode bug
I have next code:
<?
$testline =
"a"."\1"."b"."\0"."d"."\1"."f"."\1"."1"."\1"."d";
var_dump(explode("\1",$testline));
?>
In PHP 4.2.3 it work as expected, I see:
array(5) { [0]=> string(1) "a" [1]=> string(3) "bd" [2]=> string(1)
"f"
[3]=> string(1) "1" [4]=> string(1) "d" }
In PHP 4.3pre1:
array(2) { [0]=> string(1) "a" [1]=> string(9) "bdf1d" }
Same effect if "\0" replace to "\2".
My config line:
'./configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-pfpro'
'--enable-inline-optimization' '--with-mysql' '--enable-track-vars'
'--disable-debug' '--disable-pic' '--disable-ctype'
'--disable-mbstring'
'--disable-xml' '--disable-tokenizer' '--with-zlib'
'--enable-sysvshm'
'--enable-sysvsem' '--enable-shmop' '--enable-costaid'
'--with-mm'
'--with-imap=/usr/install/imap-2002.RC5' '--with-gdbm' '--with-oci8'
'--enable-sigchild' '--without-gd' '--with-curl'
'--with-dom-exslt'
'--with-dom-xslt' '--with-dom'
--
Edit bug report at http://bugs.php.net/?id=19865&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19865&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19865&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19865&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19865&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19865&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19865&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19865&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19865&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19865&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19865&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=19865&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=19865&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=19865&r=isapi