ID: 24053 Comment by: the_sandking at hotmail dot com Reported By: jphey at netdoor dot com Status: No Feedback Bug Type: Scripting Engine problem Operating System: Linux 2.4.20 PHP Version: 4.3.2 New Comment:
Indeed, Zend optimizer is newly installed and I am having the same problem including a local file.. include('../../dir/filename.php'); This complains via the browser about "failed to open stream: No such file or directory" But in fact inclues the file in question... Previous Comments: ------------------------------------------------------------------------ [2003-11-27 08:39:12] trash at mothertech dot it Hello there, I experienced this problem only with Zend Optimizer installed. When I disable Zend Optimizer everything works fine. Ciao Gabriele ------------------------------------------------------------------------ [2003-11-25 03:10:25] refuse_2_see at hotmail dot com i still can't get this working, what do i do for http://kotl-clan.org/nick/poll/poll.php ------------------------------------------------------------------------ [2003-11-07 04:26:30] al at hosteurope dot de The bug still exists in php-4.3.4. If you use include("http://www.example.com/test.php"); you will get a stream doesn't support seeking error. We've investigated the problem and we think that there is only a 2 line if cause missing (compared to the bugfree version 4.3.1) at the beginning of the function _php_stream_seek in the main/streams.c code: 954a955,958 > /* not moving anywhere */ > if ((offset == 0 && whence == SEEK_CUR) || (offset == stream->position && whence == SEEK_SET)) > return 0; > if you insert this if cause the error disappears and all other functions still seem to work fine in our tests. Best regards Andree Lindenblatt Software Development Host Europe GmbH ------------------------------------------------------------------------ [2003-11-06 15:45:26] info at web-bureau dot com I think this should be opened again - especially as it's not just a case of cluttering up the page - the include only half-works! The file is evaluated, but it's variables don't get back to the calling file. ------------------------------------------------------------------------ [2003-11-06 15:40:56] info at web-bureau dot com Hi, I'm experiencing this on PHP 4.3.3 on Linux. I notice that variables defined in the remote included file are *not* then available in the including file!.. Is there any way round this for remote files? ------------------------------------------------------------------------ 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/24053 -- Edit this bug report at http://bugs.php.net/?id=24053&edit=1