Bug #13641 Updated: Erroneous code makes PHP.EXE crash

From: Date: Fri, 12 Oct 2001 14:03:20 +0000
Subject: Bug #13641 Updated: Erroneous code makes PHP.EXE crash
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-67857@lists.php.net to get a copy of this message
ID: 13641 Updated by: sander Reported By: rune@strand.gs Old Status: Feedback Status: Critical Bug Type: Reproducible crash Operating System: Win32 (W2K) PHP Version: 4.0.6 Assigned To: derick New Comment: PHP-4.0.8-dev crashes (the latest build from php4win, 2001-10-04). PHP-4.0.7RC1 works fine. I don't have access to a more recent version of PHP-4.0.7, as I can't build Windows versions myself (yet). Tested on Win2K. Previous Comments: ------------------------------------------------------------------------ [2001-10-12 07:28:42] derick@php.net There were a lot of changes to this file since PHP 4.0.6. Can you test it with a snapshot from (http://www.php4win.com/builds/latest-build.php) ? Derick ------------------------------------------------------------------------ [2001-10-12 07:23:25] jmoore@php.net Works fine here on Win 2k, 4.0.6 and latest CVS. - James ------------------------------------------------------------------------ [2001-10-12 06:50:53] derick@php.net Marked as critcal, and checking this out. Derick ------------------------------------------------------------------------ [2001-10-12 06:50:15] mfischer@php.net FYI: couldn't reproduce with current CVS under W2K ------------------------------------------------------------------------ [2001-10-12 06:47:42] sander@php.net Reproduced with PHP-4.0.6 on Win98. You can even simplify the code: <?php strtok('foo'); ?> The problem is that you may not call strtok the first time without the second argument. If you do, it will crash, no matter what the first argument is. This should really be fixed before 4.0.7 comes out (if it's not already fixed in CVS, I can't test it right now). ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/?id=13641 Edit this bug report at http://bugs.php.net/?id=13641&edit=1

« previous php.dev (#67857) next »