> +                                     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

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to