File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -572,10 +572,7 @@ static void accel_copy_permanent_strings(zend_new_interned_string_func_t new_int
572
572
/* empty string */
573
573
zend_empty_string = new_interned_string (zend_empty_string );
574
574
for (j = 0 ; j < 256 ; j ++ ) {
575
- char s [2 ];
576
- s [0 ] = j ;
577
- s [1 ] = 0 ;
578
- zend_one_char_string [j ] = new_interned_string (zend_string_init (s , 1 , 0 ));
575
+ zend_one_char_string [j ] = new_interned_string (ZSTR_CHAR (j ));
579
576
}
580
577
for (j = 0 ; j < ZEND_STR_LAST_KNOWN ; j ++ ) {
581
578
zend_known_strings [j ] = new_interned_string (zend_known_strings [j ]);
@@ -739,12 +736,11 @@ static zend_string* ZEND_FASTCALL accel_replace_string_by_shm_permanent(zend_str
739
736
static zend_string * ZEND_FASTCALL accel_replace_string_by_process_permanent (zend_string * str )
740
737
{
741
738
zend_string * ret = zend_interned_string_find_permanent (str );
742
-
743
739
if (ret ) {
744
740
zend_string_release (str );
745
741
return ret ;
746
742
}
747
- ZEND_ASSERT (0 );
743
+ ZEND_ASSERT (! IS_ACCEL_INTERNED ( str ) );
748
744
return str ;
749
745
}
750
746
You can’t perform that action at this time.
0 commit comments