PHP 4.0 Bug #2834: null return from strtok gives "Illegal offset type"
| From: | duncan at emarketeers dot com | Date: | Fri, 26 Nov 1999 14:32:03 +0000 |
| Subject: | PHP 4.0 Bug #2834: null return from strtok gives "Illegal offset type" | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-13139@lists.php.net to get a copy of this message | ||
From: duncan@emarketeers.com
Operating system: Linux 2.2.9 (Redhat 6.0)
PHP version: 4.0 Beta 3
PHP Bug Type: Scripting Engine problem
Bug description: null return from strtok gives "Illegal offset type"
The following code works in 3.0 (and I think worked in 4.0b2) but doesn't in 4.0b3:
$str=strtok("SOMETHING",".");
$a=array();
$a[$str]="First part";
$str=strtok(".");
$a[$str]="Second part";
The last assignment fails with
Warning: Illegal offset type