]> granicus.if.org Git - php/commitdiff
Merge branch 'PHP-7.2'
authorGeorge Wang <gwang@php.net>
Tue, 27 Feb 2018 18:57:06 +0000 (13:57 -0500)
committerGeorge Wang <gwang@php.net>
Tue, 27 Feb 2018 18:57:06 +0000 (13:57 -0500)
Conflicts:
sapi/litespeed/lsapi_main.c

1  2 
sapi/litespeed/lsapi_main.c
sapi/litespeed/lsapilib.c

index 3545f94d399d6d171c5854e95d9495ef080ed762,d0d4cdbb0bc96cc1dfa66315dbe7dec3aa5d5674..1ebf7ed18d255b43d5cce4eb3ecbdb5a33741dc6
@@@ -995,13 -1024,9 +1024,12 @@@ static int cli_main( int argc, char * a
          zend_uv.html_errors = 0; /* tell the engine we're in non-html mode */
          CG(in_compilation) = 0; /* not initialized but needed for several options */
          SG(options) |= SAPI_OPTION_NO_CHDIR;
 -        
 +
 +#if PHP_MAJOR_VERSION < 7
 +        EG(uninitialized_zval_ptr) = NULL;
 +#endif
          for( ini = ini_defaults; *ini; ini+=2 ) {
- #if PHP_MAJOR_VERSION >= 7
-                       psKey = zend_string_init(*ini, strlen( *ini ), 1);
+             psKey = zend_string_init(*ini, strlen( *ini ), 1);
              zend_alter_ini_entry_chars(psKey,
                                  (char *)*(ini+1), strlen( *(ini+1) ),
                                  PHP_INI_SYSTEM, PHP_INI_STAGE_ACTIVATE);
Simple merge