Skip to content

Commit 2c2d1a7

Browse files
committed
Hmm, zend.assertions is not really on/off, but -1/0/1
1 parent 306f912 commit 2c2d1a7

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

php.ini-development

+9-5
Original file line numberDiff line numberDiff line change
@@ -1573,12 +1573,16 @@ 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
1576+
; Switch whether to compile assertions at all (to have no overhead at run-time)
1577+
; -1: Do not compile at all
1578+
; 0: Jump over assertion at run-time
1579+
; 1: Execute assertions
1580+
; 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)
1581+
; Default Value: 1
1582+
; Development Value: 1
1583+
; Production Value: -1
15801584
; http://php.net/zend.assertions
1581-
zend.assertions = On
1585+
zend.assertions = 1
15821586

15831587
; Assert(expr); active by default.
15841588
; http://php.net/assert.active

php.ini-production

+9-5
Original file line numberDiff line numberDiff line change
@@ -1573,12 +1573,16 @@ 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
1576+
; Switch whether to compile assertions at all (to have no overhead at run-time)
1577+
; -1: Do not compile at all
1578+
; 0: Jump over assertion at run-time
1579+
; 1: Execute assertions
1580+
; 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)
1581+
; Default Value: 1
1582+
; Development Value: 1
1583+
; Production Value: -1
15801584
; http://php.net/zend.assertions
1581-
zend.assertions = Off
1585+
zend.assertions = -1
15821586

15831587
; Assert(expr); active by default.
15841588
; http://php.net/assert.active

0 commit comments

Comments
 (0)