cvs: ZendEngine2(PHP_5_2) / zend_vm_def.h zend_vm_execute.h php-src NEWS

From: Date: Wed, 06 Sep 2006 06:37:43 +0000
Subject: cvs: ZendEngine2(PHP_5_2) / zend_vm_def.h zend_vm_execute.h php-src NEWS
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-5228@lists.php.net to get a copy of this message
dmitry Wed Sep 6 06:37:43 2006 UTC Modified files: (Branch: PHP_5_2) /php-src NEWS /ZendEngine2 zend_vm_def.h zend_vm_execute.h Log: Reverted last Ilia's patch (for bug #38579). The patch didn't fix the bug and made new one. http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.236&r2=1.2027.2.547.2.237&diff_format=u Index: php-src/NEWS diff -u php-src/NEWS:1.2027.2.547.2.236 php-src/NEWS:1.2027.2.547.2.237 --- php-src/NEWS:1.2027.2.547.2.236 Tue Sep 5 15:50:37 2006 +++ php-src/NEWS Wed Sep 6 06:37:41 2006 @@ -6,8 +6,6 @@ - Fixed bug #38700 (SoapClient::__getTypes never returns). (Dmitry) - Fixed bug #38693 (curl_multi_add_handle() set curl handle to null). (Ilia) - Fixed bug #38661 (mixed-case URL breaks url-wrappers). (Ilia) -- Fixed bug #38579 require_once/include_once optimization causes files to be - loaded multiple times. (Ilia) 31 Aug 2006, PHP 5.2.0RC3 http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_vm_def.h?r1=1.59.2.29.2.25&r2=1.59.2.29.2.26&diff_format=u Index: ZendEngine2/zend_vm_def.h diff -u ZendEngine2/zend_vm_def.h:1.59.2.29.2.25 ZendEngine2/zend_vm_def.h:1.59.2.29.2.26 --- ZendEngine2/zend_vm_def.h:1.59.2.29.2.25 Tue Sep 5 15:50:07 2006 +++ ZendEngine2/zend_vm_def.h Wed Sep 6 06:37:42 2006 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_vm_def.h,v 1.59.2.29.2.25 2006/09/05 15:50:07 iliaa Exp $ */ +/* $Id: zend_vm_def.h,v 1.59.2.29.2.26 2006/09/06 06:37:42 dmitry Exp $ */ /* If you change this file, please regenerate the zend_vm_execute.h and * zend_vm_opcodes.h files by running: @@ -2773,23 +2773,19 @@ 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 (state.cwd_length > 0 && !virtual_file_ex(&state, Z_STRVAL_P(inc_filename), NULL, 1) && + 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.62.2.30.2.25&r2=1.62.2.30.2.26&diff_format=u Index: ZendEngine2/zend_vm_execute.h diff -u ZendEngine2/zend_vm_execute.h:1.62.2.30.2.25 ZendEngine2/zend_vm_execute.h:1.62.2.30.2.26 --- ZendEngine2/zend_vm_execute.h:1.62.2.30.2.25 Tue Sep 5 15:50:07 2006 +++ ZendEngine2/zend_vm_execute.h Wed Sep 6 06:37:42 2006 @@ -1937,23 +1937,19 @@ 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 (state.cwd_length > 0 && !virtual_file_ex(&state, Z_STRVAL_P(inc_filename), NULL, 1) && + 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)); @@ -4459,23 +4455,19 @@ 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 (state.cwd_length > 0 && !virtual_file_ex(&state, Z_STRVAL_P(inc_filename), NULL, 1) && + 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)); @@ -7563,23 +7555,19 @@ 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 (state.cwd_length > 0 && !virtual_file_ex(&state, Z_STRVAL_P(inc_filename), NULL, 1) && + 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)); @@ -19963,23 +19951,19 @@ 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 (state.cwd_length > 0 && !virtual_file_ex(&state, Z_STRVAL_P(inc_filename), NULL, 1) && + 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 (#5228) next »