Re: PHP 4.0 Bug #6055: require&include("http://...) crash whereas include("file.inc") works
| From: | Zeev Suraski | Date: | Fri, 11 Aug 2000 21:45:44 +0000 |
| Subject: | Re: PHP 4.0 Bug #6055: require&include("http://...) crash whereas include("file.inc") works | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-28660@lists.php.net to get a copy of this message | ||
That's definitely not the right fix, even though it may fix the
symptoms... I'll try to take a look at it in the weekend.
Zeev
On Fri, 11 Aug 2000, Stig Venaas wrote:
> I may have the bug, at least I've made it work by doing
>
> --- /src/cvs/Zend/zend-scanner.l Fri Aug 11 19:29:42 2000
> +++ Zend/zend-scanner.l Fri Aug 11 22:03:24 2000
> @@ -249,7 +249,7 @@
> switch (file_handle->type) {
> case ZEND_HANDLE_FILENAME:
> file_handle->handle.fp = zend_fopen(file_handle->filename,
> &file_handle->opened_path);
> - file_path = file_handle->opened_path;
> + file_path = file_handle->filename;
> break;
> case ZEND_HANDLE_FD:
> file_path = file_handle->filename;
>
> Could someone that understand the code well check it and put it in CVS
> if okay?
>
> Stig
>
>
--
Zeev Suraski <zeev@zend.com>
http://www.zend.com/