[packages/php/PHP_5_3] disable assert.active

glen glen at pld-linux.org
Sun May 31 16:03:56 CEST 2015


commit d185657e707c5b30ca0b0c07b6dd25073c45e9a9
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri May 29 12:45:12 2015 +0300

    disable assert.active
    
    assert() evaluates code just like eval(). Unless it is actually required
    in a live environment, which is almost certainly not the case, this
    feature should be deactivated.
    
    from https://github.com/sektioneins/pcc

 php-ini.patch | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/php-ini.patch b/php-ini.patch
index f336bc4..91c3a8a 100644
--- a/php-ini.patch
+++ b/php-ini.patch
@@ -209,7 +209,16 @@
  
  [Session]
  ; Handler used to store/retrieve data.
-@@ -1863,7 +1774,7 @@
+@@ -1678,7 +1610,7 @@
+ [Assertion]
+ ; Assert(expr); active by default.
+ ; http://php.net/assert.active
+-;assert.active = On
++assert.active = Off
+ 
+ ; Issue a PHP warning for each failed assertion.
+ ; http://php.net/assert.warning
+@@ -1806,7 +1738,7 @@
  
  ; Sets the directory name where SOAP extension will put cache files.
  ; http://php.net/soap.wsdl-cache-dir
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/b713a129bbe1ba9f4d7a609b2008bafc70c467e3



More information about the pld-cvs-commit mailing list