[packages/php] disable assert.active

glen glen at pld-linux.org
Fri May 29 11:45:48 CEST 2015


commit 2aae9fcf3bfd107ab9178c09ddadf5965256c89c
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 | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/php-ini.patch b/php-ini.patch
index 8017a55..89e29d6 100644
--- a/php-ini.patch
+++ b/php-ini.patch
@@ -1,5 +1,5 @@
---- php-5.6.0beta1/php.ini~	2014-04-21 21:38:01.000000000 +0300
-+++ php-5.6.0beta1/php.ini	2014-04-21 21:51:47.379819417 +0300
+--- php-5.6.9/php.ini~	2015-05-29 12:40:58.000000000 +0300
++++ php-5.6.9/php.ini	2015-05-29 12:42:56.319275415 +0300
 @@ -82,6 +82,20 @@
  ; much more verbose when it comes to errors. We recommending using the
  ; development version only in development environments as errors shown to
@@ -215,7 +215,16 @@
  
  [Session]
  ; Handler used to store/retrieve data.
-@@ -1822,7 +1738,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/2aae9fcf3bfd107ab9178c09ddadf5965256c89c



More information about the pld-cvs-commit mailing list