@@ -698,6 +698,19 @@ static PHP_INI_MH(OnUpdateInputEncoding)
698698}
699699/* }}} */
700700
701+ static PHP_INI_MH (OnUpdateReportMemleaks )
702+ {
703+ bool * p = (bool * ) ZEND_INI_GET_ADDR ();
704+ bool new_bool_value = zend_ini_parse_bool (new_value );
705+
706+ if (!new_bool_value ) {
707+ php_error_docref (NULL , E_DEPRECATED , "Directive 'report_memleaks' is deprecated" );
708+ }
709+
710+ * p = new_bool_value ;
711+ return SUCCESS ;
712+ }
713+
701714/* {{{ PHP_INI_MH */
702715static PHP_INI_MH (OnUpdateOutputEncoding )
703716{
@@ -801,7 +814,7 @@ PHP_INI_BEGIN()
801814 STD_PHP_INI_BOOLEAN ("log_errors" , "0" , PHP_INI_ALL , OnUpdateBool , log_errors , php_core_globals , core_globals )
802815 STD_PHP_INI_BOOLEAN ("ignore_repeated_errors" , "0" , PHP_INI_ALL , OnUpdateBool , ignore_repeated_errors , php_core_globals , core_globals )
803816 STD_PHP_INI_BOOLEAN ("ignore_repeated_source" , "0" , PHP_INI_ALL , OnUpdateBool , ignore_repeated_source , php_core_globals , core_globals )
804- STD_PHP_INI_BOOLEAN ("report_memleaks" , "1" , PHP_INI_ALL , OnUpdateBool , report_memleaks , php_core_globals , core_globals )
817+ STD_PHP_INI_BOOLEAN ("report_memleaks" , "1" , PHP_INI_ALL , OnUpdateReportMemleaks , report_memleaks , php_core_globals , core_globals )
805818 STD_PHP_INI_BOOLEAN ("report_zend_debug" , "0" , PHP_INI_ALL , OnUpdateBool , report_zend_debug , php_core_globals , core_globals )
806819 STD_PHP_INI_ENTRY ("output_buffering" , "0" , PHP_INI_PERDIR |PHP_INI_SYSTEM , OnUpdateLong , output_buffering , php_core_globals , core_globals )
807820 STD_PHP_INI_ENTRY ("output_handler" , NULL , PHP_INI_PERDIR |PHP_INI_SYSTEM , OnUpdateString , output_handler , php_core_globals , core_globals )
0 commit comments