cvs: ZendEngine2 / zend_vm_def.h zend_vm_execute.h

From: Date: Wed, 06 Sep 2006 06:51:05 +0000
Subject: cvs: ZendEngine2 / zend_vm_def.h zend_vm_execute.h
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-5229@lists.php.net to get a copy of this message
dmitry Wed Sep 6 06:51:05 2006 UTC Modified files: /ZendEngine2 zend_vm_def.h zend_vm_execute.h Log: Reverted last Ilia's patch (for #38579). The patch didn't fix the bug and made new one. http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_vm_def.h?r1=1.139&r2=1.140&diff_format=u Index: ZendEngine2/zend_vm_def.h diff -u ZendEngine2/zend_vm_def.h:1.139 ZendEngine2/zend_vm_def.h:1.140 --- ZendEngine2/zend_vm_def.h:1.139 Tue Sep 5 15:52:42 2006 +++ ZendEngine2/zend_vm_def.h Wed Sep 6 06:51:05 2006 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_vm_def.h,v 1.139 2006/09/05 15:52:42 iliaa Exp $ */ +/* $Id: zend_vm_def.h,v 1.140 2006/09/06 06:51:05 dmitry Exp $ */ /* If you change this file, please regenerate the zend_vm_execute.h and * zend_vm_opcodes.h files by running: @@ -2833,23 +2833,20 @@ zend_file_handle file_handle; char cwd[MAXPATHLEN]; cwd_state state; -#ifndef PHP_WIN32 + if (IS_ABSOLUTE_PATH(Z_STRVAL_P(inc_filename), Z_STRLEN_P(inc_filename))) { cwd[0] = '\0'; } else if (!VCWD_GETCWD(cwd, MAXPATHLEN)) { cwd[0] = '\0'; } -#endif + state.cwd_length = strlen(cwd); state.cwd = zend_strndup(cwd, state.cwd_length); -#ifndef PHP_WIN32 if (!virtual_file_ex(&state, Z_STRVAL_P(inc_filename), NULL, 1) && zend_hash_exists(&EG(included_files), state.cwd, state.cwd_length+1)) { failure_retval=1; - } else -#endif - if (SUCCESS == zend_stream_open(Z_STRVAL_P(inc_filename), &file_handle TSRMLS_CC)) { + } else if (SUCCESS == zend_stream_open(Z_STRVAL_P(inc_filename), &file_handle TSRMLS_CC)) { if (!file_handle.opened_path) { file_handle.opened_path = estrndup(Z_STRVAL_P(inc_filename), Z_STRLEN_P(inc_filename)); } http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_vm_execute.h?r1=1.143&r2=1.144&diff_format=u Index: ZendEngine2/zend_vm_execute.h diff -u ZendEngine2/zend_vm_execute.h:1.143 ZendEngine2/zend_vm_execute.h:1.144 --- ZendEngine2/zend_vm_execute.h:1.143 Tue Sep 5 15:52:42 2006 +++ ZendEngine2/zend_vm_execute.h Wed Sep 6 06:51:05 2006 @@ -1914,23 +1914,20 @@ zend_file_handle file_handle; char cwd[MAXPATHLEN]; cwd_state state; -#ifndef PHP_WIN32 + if (IS_ABSOLUTE_PATH(Z_STRVAL_P(inc_filename), Z_STRLEN_P(inc_filename))) { cwd[0] = '\0'; } else if (!VCWD_GETCWD(cwd, MAXPATHLEN)) { cwd[0] = '\0'; } -#endif + state.cwd_length = strlen(cwd); state.cwd = zend_strndup(cwd, state.cwd_length); -#ifndef PHP_WIN32 if (!virtual_file_ex(&state, Z_STRVAL_P(inc_filename), NULL, 1) && zend_hash_exists(&EG(included_files), state.cwd, state.cwd_length+1)) { failure_retval=1; - } else -#endif - if (SUCCESS == zend_stream_open(Z_STRVAL_P(inc_filename), &file_handle TSRMLS_CC)) { + } else if (SUCCESS == zend_stream_open(Z_STRVAL_P(inc_filename), &file_handle TSRMLS_CC)) { if (!file_handle.opened_path) { file_handle.opened_path = estrndup(Z_STRVAL_P(inc_filename), Z_STRLEN_P(inc_filename)); } @@ -4503,23 +4500,20 @@ zend_file_handle file_handle; char cwd[MAXPATHLEN]; cwd_state state; -#ifndef PHP_WIN32 + if (IS_ABSOLUTE_PATH(Z_STRVAL_P(inc_filename), Z_STRLEN_P(inc_filename))) { cwd[0] = '\0'; } else if (!VCWD_GETCWD(cwd, MAXPATHLEN)) { cwd[0] = '\0'; } -#endif + state.cwd_length = strlen(cwd); state.cwd = zend_strndup(cwd, state.cwd_length); -#ifndef PHP_WIN32 if (!virtual_file_ex(&state, Z_STRVAL_P(inc_filename), NULL, 1) && zend_hash_exists(&EG(included_files), state.cwd, state.cwd_length+1)) { failure_retval=1; - } else -#endif - if (SUCCESS == zend_stream_open(Z_STRVAL_P(inc_filename), &file_handle TSRMLS_CC)) { + } else if (SUCCESS == zend_stream_open(Z_STRVAL_P(inc_filename), &file_handle TSRMLS_CC)) { if (!file_handle.opened_path) { file_handle.opened_path = estrndup(Z_STRVAL_P(inc_filename), Z_STRLEN_P(inc_filename)); } @@ -7689,23 +7683,20 @@ zend_file_handle file_handle; char cwd[MAXPATHLEN]; cwd_state state; -#ifndef PHP_WIN32 + if (IS_ABSOLUTE_PATH(Z_STRVAL_P(inc_filename), Z_STRLEN_P(inc_filename))) { cwd[0] = '\0'; } else if (!VCWD_GETCWD(cwd, MAXPATHLEN)) { cwd[0] = '\0'; } -#endif + state.cwd_length = strlen(cwd); state.cwd = zend_strndup(cwd, state.cwd_length); -#ifndef PHP_WIN32 if (!virtual_file_ex(&state, Z_STRVAL_P(inc_filename), NULL, 1) && zend_hash_exists(&EG(included_files), state.cwd, state.cwd_length+1)) { failure_retval=1; - } else -#endif - if (SUCCESS == zend_stream_open(Z_STRVAL_P(inc_filename), &file_handle TSRMLS_CC)) { + } else if (SUCCESS == zend_stream_open(Z_STRVAL_P(inc_filename), &file_handle TSRMLS_CC)) { if (!file_handle.opened_path) { file_handle.opened_path = estrndup(Z_STRVAL_P(inc_filename), Z_STRLEN_P(inc_filename)); } @@ -20595,23 +20586,20 @@ zend_file_handle file_handle; char cwd[MAXPATHLEN]; cwd_state state; -#ifndef PHP_WIN32 + if (IS_ABSOLUTE_PATH(Z_STRVAL_P(inc_filename), Z_STRLEN_P(inc_filename))) { cwd[0] = '\0'; } else if (!VCWD_GETCWD(cwd, MAXPATHLEN)) { cwd[0] = '\0'; } -#endif + state.cwd_length = strlen(cwd); state.cwd = zend_strndup(cwd, state.cwd_length); -#ifndef PHP_WIN32 if (!virtual_file_ex(&state, Z_STRVAL_P(inc_filename), NULL, 1) && zend_hash_exists(&EG(included_files), state.cwd, state.cwd_length+1)) { failure_retval=1; - } else -#endif - if (SUCCESS == zend_stream_open(Z_STRVAL_P(inc_filename), &file_handle TSRMLS_CC)) { + } else if (SUCCESS == zend_stream_open(Z_STRVAL_P(inc_filename), &file_handle TSRMLS_CC)) { if (!file_handle.opened_path) { file_handle.opened_path = estrndup(Z_STRVAL_P(inc_filename), Z_STRLEN_P(inc_filename)); }

« previous php.zend-engine.cvs (#5229) next »