Browse Source

Merge branch 'PHP-5.4' of https://git.php.net/repository/php-src into PHP-5.4

* 'PHP-5.4' of https://git.php.net/repository/php-src:
  Skip test if directory does not exist
  Fixed test sapi/cli/tests/006.phpt
  Fixed compiler reenterability
  Fixed compiler reenterability
  UPdated NEWS
  Updated NEWS
pull/183/head
Christopher Jones 14 years ago
parent
commit
975fb4e3ea
  1. 3
      NEWS
  2. 2
      UPGRADING
  3. 1
      Zend/zend_compile.c
  4. 684
      Zend/zend_language_scanner.c
  5. 2
      Zend/zend_language_scanner.l
  6. 2
      Zend/zend_language_scanner_defs.h
  7. 2
      sapi/cli/tests/006.phpt
  8. 3
      tests/security/open_basedir_001.phpt

3
NEWS

@ -45,6 +45,9 @@ PHP NEWS
. Fixed bug #63399 (ReflectionClass::getTraitAliases() incorrectly resolves
traitnames). (Laruence)
- Apache2 Handler SAPI:
. Enabled Apache 2.4 configure option for Windows (Pierre, Anatoliy)
18 Oct 2012, PHP 5.4.8
- CLI server:

2
UPGRADING

@ -525,6 +525,8 @@ b. Extensions with changed behavior
must be activated manually with the "extension = php_com_dotnet.dll" directive
in php.ini.
- Apache 2.4 handler is supported as of PHP 5.4.9
==================
12. New in PHP 5.4
==================

1
Zend/zend_compile.c

@ -219,6 +219,7 @@ ZEND_API void file_handle_dtor(zend_file_handle *fh) /* {{{ */
void init_compiler(TSRMLS_D) /* {{{ */
{
CG(active_op_array) = NULL;
memset(&CG(context), 0, sizeof(CG(context)));
zend_init_compiler_data_structures(TSRMLS_C);
zend_init_rsrc_list(TSRMLS_C);
zend_hash_init(&CG(filenames_table), 5, NULL, (dtor_func_t) free_estring, 0);

684
Zend/zend_language_scanner.c
File diff suppressed because it is too large
View File

2
Zend/zend_language_scanner.l

@ -578,6 +578,7 @@ ZEND_API zend_op_array *compile_file(zend_file_handle *file_handle, int type TSR
init_op_array(op_array, ZEND_USER_FUNCTION, INITIAL_OP_ARRAY_SIZE TSRMLS_CC);
CG(in_compilation) = 1;
CG(active_op_array) = op_array;
zend_stack_push(&CG(context_stack), (void *) &CG(context), sizeof(CG(context)));
zend_init_compiler_context(TSRMLS_C);
compiler_result = zendparse(TSRMLS_C);
zend_do_return(&retval_znode, 0 TSRMLS_CC);
@ -747,6 +748,7 @@ zend_op_array *compile_string(zval *source_string, char *filename TSRMLS_DC)
init_op_array(op_array, ZEND_EVAL_CODE, INITIAL_OP_ARRAY_SIZE TSRMLS_CC);
CG(interactive) = orig_interactive;
CG(active_op_array) = op_array;
zend_stack_push(&CG(context_stack), (void *) &CG(context), sizeof(CG(context)));
zend_init_compiler_context(TSRMLS_C);
BEGIN(ST_IN_SCRIPTING);
compiler_result = zendparse(TSRMLS_C);

2
Zend/zend_language_scanner_defs.h

@ -1,4 +1,4 @@
/* Generated by re2c 0.13.5 on Mon Apr 30 15:55:05 2012 */
/* Generated by re2c 0.13.5 on Wed Nov 14 17:46:56 2012 */
#line 3 "Zend/zend_language_scanner_defs.h"
enum YYCONDTYPE {

2
sapi/cli/tests/006.phpt

@ -69,7 +69,7 @@ string(%d) "Extension [ <persistent> extension #%d pcre version <no_version> ] {
- Parameters [5] {
Parameter #0 [ <required> $pattern ]
Parameter #1 [ <required> $subject ]
Parameter #2 [ <required> &$subpatterns ]
Parameter #2 [ <optional> &$subpatterns ]
Parameter #3 [ <optional> $flags ]
Parameter #4 [ <optional> $offset ]
}

3
tests/security/open_basedir_001.phpt

@ -5,6 +5,9 @@ openbase_dir runtime tightning
if (substr(PHP_OS, 0, 3) == 'WIN') {
die('skip.. only for unix');
}
if (!is_dir("/usr/local/bin")) {
die('skip.. no /usr/local/bin on this machine');
}
--INI--
open_basedir=/usr/local
--FILE--

Loading…
Cancel
Save