]> granicus.if.org Git - php/commitdiff
Hmm, zend.assertions is not really on/off, but -1/0/1
authorBob Weinand <bobwei9@hotmail.com>
Sun, 19 Apr 2015 12:42:31 +0000 (14:42 +0200)
committerBob Weinand <bobwei9@hotmail.com>
Sun, 19 Apr 2015 12:42:31 +0000 (14:42 +0200)
php.ini-development
php.ini-production

index 0b38ea3885b1f10afb9ad5f0b67bad900491a0af..3684f0cfb574e0683df03f2b1ab76439471d5b0a 100644 (file)
@@ -1573,12 +1573,16 @@ url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
 ;session.upload_progress.min_freq = "1"
 
 [Assertion]
-; Do not compile assertions at all (to have no overhead at run-time)
-; Default Value: On
-; Development Value: On
-; Production Value: Off
+; Switch whether to compile assertions at all (to have no overhead at run-time)
+; -1: Do not compile at all
+;  0: Jump over assertion at run-time
+;  1: Execute assertions
+; Changing from or to a negative value is only possible in php.ini! (For turning assertions on and off at run-time, see assert.active, when zend.assertions = 1)
+; Default Value: 1
+; Development Value: 1
+; Production Value: -1
 ; http://php.net/zend.assertions
-zend.assertions = On
+zend.assertions = 1
 
 ; Assert(expr); active by default.
 ; http://php.net/assert.active
index 0a7b2bcb86dc3413ee9308c92de9c2cc1464c29e..1238c0e7ee71621599f24f6756ee8529c5e0033a 100644 (file)
@@ -1573,12 +1573,16 @@ url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
 ;session.upload_progress.min_freq = "1"
 
 [Assertion]
-; Do not compile assertions at all (to have no overhead at run-time)
-; Default Value: On
-; Development Value: On
-; Production Value: Off
+; Switch whether to compile assertions at all (to have no overhead at run-time)
+; -1: Do not compile at all
+;  0: Jump over assertion at run-time
+;  1: Execute assertions
+; Changing from or to a negative value is only possible in php.ini! (For turning assertions on and off at run-time, see assert.active, when zend.assertions = 1)
+; Default Value: 1 
+; Development Value: 1 
+; Production Value: -1 
 ; http://php.net/zend.assertions
-zend.assertions = Off
+zend.assertions = -1
 
 ; Assert(expr); active by default.
 ; http://php.net/assert.active