PHP 4.0 Bug #5540 Updated: Simple test on a string fails
| From: | Bug Database | Date: | Thu, 07 Sep 2000 19:03:49 +0000 |
| Subject: | PHP 4.0 Bug #5540 Updated: Simple test on a string fails | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-32607@lists.php.net to get a copy of this message | ||
ID: 5540
Updated by: zak
Reported By: alain@onesite.org
Status: Closed
Bug Type: Scripting Engine problem
Assigned To:
Comments:
Finally! This problem should be fixed in the most recent CVS version (00/09/07) :)
Previous Comments:
[2000-09-06 18:09:14] zak@php.net
Could you try upgrading to 4.0.2?
---------------------------------------------------------------------------
[2000-08-17 12:58:05] zak@php.net
Received feedback from x-empt@ispep.cx:
"Cannot reproduce with his ini or mine on 4.0.1pl2 - Linux, although RH 5.2 was not
tested."
I still cannot re-reproduce this problem...
---------------------------------------------------------------------------
[2000-07-27 22:23:21] zak@php.net
I am not sure what to make of this.
When I first tested this bug about 4 days ago, I had the same results. I just tested it again and I
cannot reproduce it... even using his ini file.
Could someone see if they can reproduce this?
---------------------------------------------------------------------------
[2000-07-12 19:23:22] alain@onesite.org
This works (copied from the manual) :
<?php
$handle=opendir('.');
echo "Directory handle: $handlen";
echo "Files:n";
while ($file = readdir($handle)) {
echo "$filen";
}
closedir($handle);
?>
This doesn't work :
<?php
$handle=opendir('.');
echo "Directory handle: $handlen";
echo "Files:n";
while ($file = readdir($handle)) {
/* just added this test : */
if ($file!=".")
{
echo "$filen";
}
}
closedir($handle);
?>
Live example :
http://www.onesite.org/testphp/ok.php3
http://www.onesite.org/testphp/ko.php3
http://www.onesite.org/testphp/ok.php3.txt
http://www.onesite.org/testphp/ko.php3.txt
Live phpinfo: http://www.onesite.org/phpinfo.php3
php.ini : http://www.onesite.org/php.ini
PHP installed from the tarball, running as a
cgi through a shellscript.
Fails from the command line too
The same scripts work fine with php 3.0.12
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=5540