On Tue, Jan 07, 2003 at 04:51:13PM +0000, Stefano Corsi wrote:
> MAKE_STD_ZVAL(filename_z);
> ZVAL_STRING(filename_z, "myfile.inc", 1);
> op = compile_filename(ZEND_INCLUDE, filename_z);
if (op) {
zval *local_retval=NULL;
EG(return_value_ptr_ptr) = &local_retval;
> zend_execute(op TSRMLS_CC);
zval_ptr_dtor(EG(return_value_ptr_ptr));
destroy_op_array(op); 
efree(op);
}

Check function zend_execute_scripts in Zend/zend.c 
or simply use it :).

regards,
Wojtek

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

Reply via email to