Re: Warnings in include files suddenly treated as fatal
| From: | Sterling Hughes | Date: | Fri, 30 Jan 2004 18:43:32 +0000 |
| Subject: | Re: Warnings in include files suddenly treated as fatal | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-7433@lists.php.net to get a copy of this message | ||
> + zend_file_handle file_handle;
> + zend_bool can_open = zend_stream_open(inc_filename->value.str.val, &file_handle
> TSRMLS_CC);
> + zend_file_handle_dtor(&file_handle);
> +
wouldn't a stat be better suited here?
-sterling
> + /* file open succeeded but still no op-array, likely parse error */
> + if (can_open == SUCCESS) {
> +fatal_error:
> + zend_error(E_ERROR, "Parse error inside included file.");
> + }
> + }
> }
> break;
> case ZEND_EVAL: {
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
--
"Reductionists like to take things apart. The rest of us are
just trying to get it together."
- Larry Wall, Programming Perl, 3rd Edition