Skip to content

Commit 306f912

Browse files
committed
Add zend.assertions and assert.exception to php.ini-*
1 parent 740c86b commit 306f912

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

php.ini-development

+12-1
Original file line numberDiff line numberDiff line change
@@ -1573,11 +1573,22 @@ url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
15731573
;session.upload_progress.min_freq = "1"
15741574

15751575
[Assertion]
1576+
; Do not compile assertions at all (to have no overhead at run-time)
1577+
; Default Value: On
1578+
; Development Value: On
1579+
; Production Value: Off
1580+
; http://php.net/zend.assertions
1581+
zend.assertions = On
1582+
15761583
; Assert(expr); active by default.
15771584
; http://php.net/assert.active
15781585
;assert.active = On
15791586

1580-
; Issue a PHP warning for each failed assertion.
1587+
; Throw an AssertationException on failed assertions
1588+
; http://php.net/assert.exception
1589+
;assert.exception = On
1590+
1591+
; Issue a PHP warning for each failed assertion. (Overridden by assert.exception if active)
15811592
; http://php.net/assert.warning
15821593
;assert.warning = On
15831594

php.ini-production

+12-1
Original file line numberDiff line numberDiff line change
@@ -1573,11 +1573,22 @@ url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
15731573
;session.upload_progress.min_freq = "1"
15741574

15751575
[Assertion]
1576+
; Do not compile assertions at all (to have no overhead at run-time)
1577+
; Default Value: On
1578+
; Development Value: On
1579+
; Production Value: Off
1580+
; http://php.net/zend.assertions
1581+
zend.assertions = Off
1582+
15761583
; Assert(expr); active by default.
15771584
; http://php.net/assert.active
15781585
;assert.active = On
15791586

1580-
; Issue a PHP warning for each failed assertion.
1587+
; Throw an AssertationException on failed assertions
1588+
; http://php.net/assert.exception
1589+
;assert.exception = On
1590+
1591+
; Issue a PHP warning for each failed assertion. (Overridden by assert.exception if active)
15811592
; http://php.net/assert.warning
15821593
;assert.warning = On
15831594

0 commit comments

Comments
 (0)