File tree 6 files changed +4
-41
lines changed
6 files changed +4
-41
lines changed Original file line number Diff line number Diff line change @@ -610,12 +610,4 @@ extern "C++" {
610
610
# define ZEND_PREFER_RELOAD
611
611
#endif
612
612
613
- #if defined(ZEND_WIN32) && defined(_DEBUG) && defined(PHP_WIN32_DEBUG_HEAP)
614
- # define ZEND_IGNORE_LEAKS_BEGIN () _CrtSetDbgFlag(_CrtSetDbgFlag(_CRTDBG_REPORT_FLAG) & ~_CRTDBG_ALLOC_MEM_DF)
615
- # define ZEND_IGNORE_LEAKS_END () _CrtSetDbgFlag(_CrtSetDbgFlag(_CRTDBG_REPORT_FLAG) | _CRTDBG_ALLOC_MEM_DF)
616
- #else
617
- # define ZEND_IGNORE_LEAKS_BEGIN ()
618
- # define ZEND_IGNORE_LEAKS_END ()
619
- #endif
620
-
621
613
#endif /* ZEND_PORTABILITY_H */
Original file line number Diff line number Diff line change @@ -546,7 +546,6 @@ Bigint {
546
546
static Bigint * freelist [Kmax + 1 ];
547
547
548
548
static void destroy_freelist (void );
549
- static void free_p5s (void );
550
549
551
550
#ifdef ZTS
552
551
static MUTEX_T dtoa_mutex ;
@@ -565,8 +564,6 @@ ZEND_API int zend_startup_strtod(void) /* {{{ */
565
564
ZEND_API int zend_shutdown_strtod (void ) /* {{{ */
566
565
{
567
566
destroy_freelist ();
568
- free_p5s ();
569
-
570
567
#ifdef ZTS
571
568
tsrm_mutex_free (dtoa_mutex );
572
569
dtoa_mutex = NULL ;
@@ -4543,19 +4540,6 @@ static void destroy_freelist(void)
4543
4540
FREE_DTOA_LOCK (0 )
4544
4541
}
4545
4542
4546
- static void free_p5s (void )
4547
- {
4548
- Bigint * * listp , * tmp ;
4549
-
4550
- ACQUIRE_DTOA_LOCK (1 )
4551
- listp = & p5s ;
4552
- while ((tmp = * listp ) != NULL ) {
4553
- * listp = tmp -> next ;
4554
- free (tmp );
4555
- }
4556
- FREE_DTOA_LOCK (1 )
4557
- }
4558
-
4559
4543
#ifdef __cplusplus
4560
4544
}
4561
4545
#endif
Original file line number Diff line number Diff line change @@ -59414,17 +59414,13 @@ void zend_vm_init(void)
59414
59414
VM_TRACE_START();
59415
59415
}
59416
59416
59417
- static HashTable *zend_handlers_table = NULL;
59418
-
59419
59417
void zend_vm_dtor(void)
59420
59418
{
59421
59419
VM_TRACE_END();
59422
- if (zend_handlers_table) {
59423
- zend_hash_destroy(zend_handlers_table);
59424
- free(zend_handlers_table);
59425
- }
59426
59420
}
59427
59421
59422
+ static HashTable *zend_handlers_table = NULL;
59423
+
59428
59424
static void init_opcode_serialiser(void)
59429
59425
{
59430
59426
int i;
Original file line number Diff line number Diff line change @@ -67,17 +67,13 @@ void {%INITIALIZER_NAME%}(void)
67
67
VM_TRACE_START();
68
68
}
69
69
70
- static HashTable *zend_handlers_table = NULL;
71
-
72
70
void zend_vm_dtor(void)
73
71
{
74
72
VM_TRACE_END();
75
- if (zend_handlers_table) {
76
- zend_hash_destroy(zend_handlers_table);
77
- free(zend_handlers_table);
78
- }
79
73
}
80
74
75
+ static HashTable *zend_handlers_table = NULL;
76
+
81
77
static void init_opcode_serialiser(void)
82
78
{
83
79
int i;
Original file line number Diff line number Diff line change @@ -16,9 +16,6 @@ if (PHP_LIBXML == "yes") {
16
16
ADD_DEF_FILE ( "ext\\libxml\\php_libxml2.def" ) ;
17
17
}
18
18
PHP_INSTALL_HEADERS ( "ext/libxml/" , "php_libxml.h" ) ;
19
- if ( PHP_CRT_DEBUG == "yes" ) {
20
- ADD_FLAG ( "CFLAGS_LIBXML" , "/D PHP_WIN32_DEBUG_HEAP" ) ;
21
- }
22
19
} else {
23
20
WARNING ( "libxml support can't be enabled, iconv or libxml are missing" )
24
21
PHP_LIBXML = "no"
Original file line number Diff line number Diff line change @@ -724,9 +724,7 @@ PHP_LIBXML_API void php_libxml_initialize(void)
724
724
{
725
725
if (!_php_libxml_initialized ) {
726
726
/* we should be the only one's to ever init!! */
727
- ZEND_IGNORE_LEAKS_BEGIN ();
728
727
xmlInitParser ();
729
- ZEND_IGNORE_LEAKS_END ();
730
728
731
729
_php_libxml_default_entity_loader = xmlGetExternalEntityLoader ();
732
730
xmlSetExternalEntityLoader (_php_libxml_pre_ext_ent_loader );
You can’t perform that action at this time.
0 commit comments