SV: [PHP-DEV] PHP 4.0 Bug #5455 Updated: readdir() still doesn'twork

From: Date: Fri, 14 Jul 2000 13:46:18 +0000
Subject: SV: [PHP-DEV] PHP 4.0 Bug #5455 Updated: readdir() still doesn'twork
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-24528@lists.php.net to get a copy of this message
At least I'm not the only one experiencing this problem, yesterday I got this message from Stefan Kirch: Hi! Perhaps interisting in this context: I have the same problem (#5535) and found a "work-around" like the following: if (ereg("^foo$", $file)) { RegEx works fine, so it seems to be a problom of string-comparison. Codes like if ($x == "5") { also breaks the loop, on the other hand, numerical comparisons like if ($x == 5) { works fine. Any idea?!? Steff Is there anything I can do to help debug this? I know more or less how to use gdb, but in this case I feel a little confused - is it possible to trace the exact execution of the PHP code through gdb, and how can I do it in that case? Or anything else that might be of interest - machine type, etc, etc? Regards, /Johan Ekenberg > I am unable to reproduce this. > > See: http://www.php.net/~rasmus/test/readdir.php > Run it as many times as you want. It never fails. > > The code is at: http://www.php.net/~rasmus/test/readdir.phps > > This is using 4.0.2-dev from a couple of days ago. > > -Rasmus > > Full Bug description available at: > > http://bugs.php.net/?id=5455

« previous php.dev (#24528) next »