#24053 [Com]: include issues spurious "stream" warning that clutters up the page ...
| From: | kriek at jonkriek dot com | Date: | Tue, 10 Jun 2003 00:10:54 +0000 |
| Subject: | #24053 [Com]: include issues spurious "stream" warning that clutters up the page ... | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-41566@lists.php.net to get a copy of this message | ||
ID: 24053
Comment by: kriek at jonkriek dot com
Reported By: jphey at netdoor dot com
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Linux 2.4.20
PHP Version: 4.3.2
New Comment:
I had to form absolute paths out of my relative ones.
Previous Comments:
------------------------------------------------------------------------
[2003-06-06 15:43:01] admin at 1000rpm dot net
I don't think this should have a bogus status. Have a search for the
error message on google, tons of sites are getting this error. It's
pretty urgent, I'm already getting customers complaining.
------------------------------------------------------------------------
[2003-06-06 15:37:51] admin at 1000rpm dot net
What about non-local files? The error still comes up for those...
------------------------------------------------------------------------
[2003-06-06 01:48:56] sniper@php.net
Don't include local files via http://..., use the correct path.
------------------------------------------------------------------------
[2003-06-06 01:41:34] jphey at netdoor dot com
My web hosting provider says the problem is merely that "error logging
was set to all" and by changing that, the warning messages disappear.
So perhaps this is not a bug, but an intended behavior.
Still, I don't know why such a warning would be issued when no call to
fseek had been made.
------------------------------------------------------------------------
[2003-06-06 00:25:22] jphey at netdoor dot com
I have used the include "http://...." directive with great
success.
However, my web hosting company (hostforweb.com) must have just
upgraded their PHP software within the last week, because now ALL my
pages that use the include command include "Warning: main(): stream
does not support seeking /home/americaf/public_html/agenda/index.php on
line 1"
The funny thing is, the actual include appears to "work" properly ...
the file IS included in the stream! However, the warning message
appears anyway.
Here is a URL that demonstrates the problem:
http://americafirstparty.org/agenda/index.php
the first several lines of which are:
=========== begin index.php source ==========
<?php include
"http://americafirstparty.org/includes/plainpageheader.shtml";
?>
<blockquote>
<h1>National Committee Meeting Agenda</h1>
<h3>Tuesday, May 20, 2003<br>Continued on May 27, 2003</h3>
=========== end of source snippet ============
I know this bug was fixed earlier, but perhaps it has resurfaced?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24053&edit=1