cvs: Zend / zend_builtin_functions.c

From: Date: Wed, 20 Nov 2002 19:41:46 +0000
Subject: cvs: Zend / zend_builtin_functions.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-643@lists.php.net to get a copy of this message
derick Wed Nov 20 14:41:46 2002 EDT Modified files: /Zend zend_builtin_functions.c Log: - Disable leak() and crash() when not using debug mode Index: Zend/zend_builtin_functions.c diff -u Zend/zend_builtin_functions.c:1.125 Zend/zend_builtin_functions.c:1.126 --- Zend/zend_builtin_functions.c:1.125 Sun Nov 17 08:26:37 2002 +++ Zend/zend_builtin_functions.c Wed Nov 20 14:41:45 2002 @@ -43,10 +43,12 @@ static ZEND_FUNCTION(method_exists); static ZEND_FUNCTION(class_exists); static ZEND_FUNCTION(function_exists); +#if ZEND_DEBUG static ZEND_FUNCTION(leak); #ifdef ZEND_TEST_EXCEPTIONS static ZEND_FUNCTION(crash); #endif +#endif static ZEND_FUNCTION(get_included_files); static ZEND_FUNCTION(is_subclass_of); static ZEND_FUNCTION(is_a); @@ -93,10 +95,12 @@ ZEND_FE(method_exists, NULL) ZEND_FE(class_exists, NULL) ZEND_FE(function_exists, NULL) +#if ZEND_DEBUG ZEND_FE(leak, NULL) #ifdef ZEND_TEST_EXCEPTIONS ZEND_FE(crash, NULL) #endif +#endif ZEND_FE(get_included_files, NULL) ZEND_FALIAS(get_required_files, get_included_files, NULL) ZEND_FE(is_subclass_of, NULL) @@ -769,7 +773,7 @@ } /* }}} */ - +#if ZEND_DEBUG /* {{{ proto void leak(int num_bytes=3) Cause an intentional memory leak, for testing/debugging purposes */ ZEND_FUNCTION(leak) @@ -798,6 +802,7 @@ } #endif +#endif /* ZEND_DEBUG */ /* {{{ proto array get_included_files(void) Returns an array with the file names that were include_once()'d */

« previous php.zend-engine.cvs (#643) next »