Bug #1570: split() truncates last element

From: Date: Sat, 19 Jun 1999 15:21:29 +0000
Subject: Bug #1570: split() truncates last element
Groups: php.dev 
Request: Send a blank email to php-dev+get-7153@lists.php.net to get a copy of this message
From: richard@hacom.nl Operating system: Solaris 2.5.1 PHP version: 3.0.9 PHP Bug Type: Misbehaving function Bug description: split() truncates last element <? $s = split(":", "a:b:c", 2); print($s[1]); ?> output with PHP 3.0.8: b:c output with PHP 3.0.9: b According to the docu (and the code comments) the 3.0.8 behaviour is correct, and I've used it frequently in my code, so 3.0.9 breaks some of my programs. I'm sure others will be bitten by this too. Richard.

« previous php.dev (#7153) next »