diff options
| author | Andi Gutmans <andi@php.net> | 1999-11-30 20:15:04 +0000 | 
|---|---|---|
| committer | Andi Gutmans <andi@php.net> | 1999-11-30 20:15:04 +0000 | 
| commit | 5463dd5b387298a84736e590e5d213f5bafe9435 (patch) | |
| tree | d009a2424dc7f6b154aef82a582a57f7bb8ba049 /Zend/zend_execute.c | |
| parent | 08304a3c933f0b89235daded64776a069262b684 (diff) | |
| download | php-git-5463dd5b387298a84736e590e5d213f5bafe9435.tar.gz | |
- Add use support (behaves like require, but will not use the same file twice)
- Add import support (behaves like include, but requires parentheses;  will not
  use the same file twice; Currently, it is not yet properly implemented, and
  only behaves like include)
Diffstat (limited to 'Zend/zend_execute.c')
| -rw-r--r-- | Zend/zend_execute.c | 5 | 
1 files changed, 4 insertions, 1 deletions
diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index edfcc396fe..758050a39c 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -1878,11 +1878,14 @@ send_by_ref:  					switch (opline->op2.u.constant.value.lval) {  						case ZEND_INCLUDE: -							new_op_array = compile_filename(get_zval_ptr(&opline->op1, Ts, &EG(free_op1), BP_VAR_R) CLS_CC); +							new_op_array = compile_filename(get_zval_ptr(&opline->op1, Ts, &EG(free_op1), BP_VAR_R), 0 CLS_CC);  							break;  						case ZEND_EVAL:  							new_op_array = compile_string(get_zval_ptr(&opline->op1, Ts, &EG(free_op1), BP_VAR_R) CLS_CC);  							break; +						case ZEND_IMPORT: +							new_op_array = compile_filename(get_zval_ptr(&opline->op1, Ts, &EG(free_op1), BP_VAR_R), 1 CLS_CC); +							break;  					}  					FREE_OP(&opline->op1, EG(free_op1));  					if (new_op_array) {  | 
