Req #6927 [Sus->Csd]: Ability to disable assert() for releases

From: Date: Fri, 28 Aug 2015 21:11:07 +0000
Subject: Req #6927 [Sus->Csd]: Ability to disable assert() for releases
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195607@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=6927&edit=1 ID: 6927 Updated by: nikic@php.net Reported by: rbaron at imake dot com -Summary: +Summary: Ability to disable assert() for releases -Status: Suspended +Status: Closed Type: Feature/Change Request -Package: Feature/Change Request +Package: *General Issues PHP Version: 4.0.2 -Assigned To: +Assigned To: nikic Block user comment: N Private report: N New Comment: PHP 7 supports disabling evaluation of assertions: https://wiki.php.net/rfc/expectations Previous Comments: ------------------------------------------------------------------------ [2001-01-21 03:34:00] cynic@php.net you can turn assertions on/off using assert_options() / .ini settings Personally, I would kill for macros, but I don't think we'll see them in PHP in close future. ------------------------------------------------------------------------ [2000-09-28 22:17:41] rbaron at imake dot com make the define able to replace the function names, ie. #if debug #define assert(a) (doAssert(a)) #else #define assert(a) #endif This way, when code is released, the functions that aid in debugging the application never get called. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=6927&edit=1

« previous php.bugs (#195607) next »