@@ -412,7 +412,6 @@ void init_compiler(void) /* {{{ */
412
412
memset (& CG (context ), 0 , sizeof (CG (context )));
413
413
zend_init_compiler_data_structures ();
414
414
zend_init_rsrc_list ();
415
- zend_hash_init (& CG (filenames_table ), 8 , NULL , ZVAL_PTR_DTOR , 0 );
416
415
zend_llist_init (& CG (open_files ), sizeof (zend_file_handle ), (void (* )(void * )) file_handle_dtor , 0 );
417
416
CG (unclean_shutdown ) = 0 ;
418
417
@@ -426,7 +425,6 @@ void shutdown_compiler(void) /* {{{ */
426
425
zend_stack_destroy (& CG (loop_var_stack ));
427
426
zend_stack_destroy (& CG (delayed_oplines_stack ));
428
427
zend_stack_destroy (& CG (short_circuiting_opnums ));
429
- zend_hash_destroy (& CG (filenames_table ));
430
428
zend_arena_destroy (CG (arena ));
431
429
432
430
if (CG (delayed_variance_obligations )) {
@@ -444,18 +442,7 @@ void shutdown_compiler(void) /* {{{ */
444
442
445
443
ZEND_API zend_string * zend_set_compiled_filename (zend_string * new_compiled_filename ) /* {{{ */
446
444
{
447
- zval * p , rv ;
448
-
449
- if ((p = zend_hash_find (& CG (filenames_table ), new_compiled_filename ))) {
450
- ZEND_ASSERT (Z_TYPE_P (p ) == IS_STRING );
451
- CG (compiled_filename ) = Z_STR_P (p );
452
- return Z_STR_P (p );
453
- }
454
-
455
445
new_compiled_filename = zend_new_interned_string (zend_string_copy (new_compiled_filename ));
456
- ZVAL_STR (& rv , new_compiled_filename );
457
- zend_hash_add_new (& CG (filenames_table ), new_compiled_filename , & rv );
458
-
459
446
CG (compiled_filename ) = new_compiled_filename ;
460
447
return new_compiled_filename ;
461
448
}
0 commit comments