Edit report at http://bugs.php.net/bug.php?id=40068&edit=1
ID: 40068
Comment by: mook at social dot crabdance dot com
Reported by: triphius at tripslair dot com
Summary: Warning: Unknown: failed to open stream: No such
file or directory in Unknown..
Status: Closed
Type: Bug
Package: Scripting Engine problem
Operating System: FreeBSD 6.1
PHP Version: 5.2.0
Block user comment: N
Private report: N
New Comment:
i broke the links. the new and hopefully more stable addresses are
http://nagual.crabdance.com
vs
http://nagual.crabdance.com/colors/red/
Previous Comments:
------------------------------------------------------------------------
[2011-03-09 10:09:14] mook at social dot crabdance dot com
i can confirm the weirdness and roughly the error message. Hit refresh a
few
times here:
http://90.177.177.100/oldnagualnet.com/colors/red/
as opposed to here:
http://90.177.177.100/oldnagualnet.com/
colors being a directory with symlinks, red linking to ..
I ran wget in an endless loop on
http://90.177.177.100/oldnagualnet.com/colors/red/colors.php and it
errored
roughly 3 times per second. After a while stopped. It doesnt seem to
happen
when the php is accessed by its address directly, only when its accessed
thru a
symlinked directory.
This is:
Linux kook-desktop 2.6.32-5-xen-686 #1 SMP Mon Jan 17 10:49:18 UTC 2011
i686
GNU/Linux
root@kook-desktop:/var/www/oldnagualnet.com# php -v
PHP 5.3.3-1ubuntu9.3 with Suhosin-Patch (cli) (built: Jan 12 2011
16:08:14)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
thanks .. :)
http://90.177.177.100/oldnagualnet.com/colors.php:
<?php
$file = $_SERVER["SCRIPT_NAME"];
preg_match("/\/colors\/(.*)\//", $file, $matches);
if(count($matches)==2)
$c = $matches[1];
else
$c="orange";
//print_r($matches);
?>
body { background-color:<?php echo $c ?>; }
UntitledFrame-2.php:
(lots of html)
<link rel="stylesheet" type="text/css" href="colors.php" />
(lots of html)
<?php
if ($handle = opendir('colors')) {
while (false !== ($file = readdir($handle))) {
<------>echo "<a
href=\"http://90.177.177.100/oldnagualnet.com/colors/$file\"
target=\"main\">$file</a>\n";
}
closedir($handle);
}
?>
(some html)
------------------------------------------------------------------------
[2010-10-23 22:52:46] ttibensky at gmail dot com
I use Dreamweaver 8
when i save an index (index.php), it will automaticly save it as php5
file, so i save it manualy as php4 and that error is gone
so it must be some king of bug in php5...
------------------------------------------------------------------------
[2007-01-10 22:43:24] [email protected]
Closing the bug as the problem is no longer reproducible
(presumed resolved).
------------------------------------------------------------------------
[2007-01-10 05:40:42] triphius at tripslair dot com
I installed PHP from the CVS source as suggested, using the same
configure command as FreeBSD had previously generated. Then I used the
php5-extensions port to reinstall all the additional modules (as
previously listed).
I have yet to see the random error (knock knock), and assume that this
has fixed the issue. My guess is that there was a bug in the 5.2.0
release code used by the FreeBSD ports system.
I will update the bug report if I see any sign of the error. Thank you
for your assistance so far.
------------------------------------------------------------------------
[2007-01-10 03:53:26] [email protected]
Please update the report once you have the results from the
php-cvs run.
------------------------------------------------------------------------
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/bug.php?id=40068
--
Edit this bug report at http://bugs.php.net/bug.php?id=40068&edit=1