[svn:PHP-Sandwich] rev 1414 - PHP-Sandwich/trunk
[email protected] 25 Jul 2005 22:59:45 -0000
| Newsgroups | perl.php.sandwich.dev |
|---|---|
| Message-ID | <[email protected]> |
Author: gschlossnagle
Date: Mon Jul 25 15:59:45 2005
New Revision: 1414
Modified:
PHP-Sandwich/trunk/phpinterp.c
Log:
fix return values of include()
Modified: PHP-Sandwich/trunk/phpinterp.c
==============================================================================
--- PHP-Sandwich/trunk/phpinterp.c (original)
+++ PHP-Sandwich/trunk/phpinterp.c Mon Jul 25 15:59:45 2005
@@ -292,7 +292,7 @@ int sandwich_include(sandwich_per_interp
file_handle.filename = SG(request_info).path_translated;
file_handle.opened_path = NULL;
file_handle.free_filename = 0;
- php_execute_script(&file_handle TSRMLS_CC);
+ rv = (php_execute_script(&file_handle TSRMLS_CC) == 1)?0:-1;
} zend_catch {
rv = -1;
goto cleanup;