]> granicus.if.org Git - php/commitdiff
Add zend.assertions and assert.exception to php.ini-*
authorBob Weinand <bobwei9@hotmail.com>
Sun, 19 Apr 2015 11:27:28 +0000 (13:27 +0200)
committerBob Weinand <bobwei9@hotmail.com>
Sun, 19 Apr 2015 11:27:28 +0000 (13:27 +0200)
php.ini-development
php.ini-production

index ffb1b51c73f2d0a0af77fdabdc4a3498ceffaa6b..0b38ea3885b1f10afb9ad5f0b67bad900491a0af 100644 (file)
@@ -1573,11 +1573,22 @@ 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
+; http://php.net/zend.assertions
+zend.assertions = On
+
 ; Assert(expr); active by default.
 ; http://php.net/assert.active
 ;assert.active = On
 
-; Issue a PHP warning for each failed assertion.
+; Throw an AssertationException on failed assertions
+; http://php.net/assert.exception
+;assert.exception = On
+
+; Issue a PHP warning for each failed assertion. (Overridden by assert.exception if active)
 ; http://php.net/assert.warning
 ;assert.warning = On
 
index 3ff9ac5a61b0936620e4233fbb2404e77ea4544c..0a7b2bcb86dc3413ee9308c92de9c2cc1464c29e 100644 (file)
@@ -1573,11 +1573,22 @@ 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
+; http://php.net/zend.assertions
+zend.assertions = Off
+
 ; Assert(expr); active by default.
 ; http://php.net/assert.active
 ;assert.active = On
 
-; Issue a PHP warning for each failed assertion.
+; Throw an AssertationException on failed assertions
+; http://php.net/assert.exception
+;assert.exception = On
+
+; Issue a PHP warning for each failed assertion. (Overridden by assert.exception if active)
 ; http://php.net/assert.warning
 ;assert.warning = On