Bug #71873 [NEW]: Warning:zend.assertions may be completely enabled or disabled only in php.ini

From: Date: Mon, 21 Mar 2016 17:25:12 +0000
Subject: Bug #71873 [NEW]: Warning:zend.assertions may be completely enabled or disabled only in php.ini
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-200003@lists.php.net to get a copy of this message
From: ildar dot aim at gmail dot com Operating system: Linux PHP version: 7.0.4 Package: *General Issues Bug Type: Bug Bug description:Warning:zend.assertions may be completely enabled or disabled only in php.ini Description: ------------ According to http://php.net/manual/en/ini.core.php zend.assertions is PHP_INI_ALL In spite of this fact my script generates php warninig "Warning: zend.assertions may be completely enabled or disabled only in php.ini" ------------- My info aim-server[~/tmp]$ php -i |grep -i assert zend.assertions => -1 => -1 assert.active => 1 => 1 assert.bail => 0 => 0 assert.callback => no value => no value assert.exception => 0 => 0 assert.quiet_eval => 0 => 0 assert.warning => 1 => 1 aim-server[~/tmp]$ aim-server[~/tmp]$ php -v PHP 7.0.4 (cli) (built: Mar 5 2016 09:28:27) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies with Xdebug v2.4.0, Copyright (c) 2002-2016, by Derick Rethans aim-server[~/tmp]$ Test script: --------------- error_reporting(-1); ini_set('display_errors', 1); ini_set('display_startup_errors', 1); ini_set('zend.assertions', 1); var_dump('end');die; Expected result: ---------------- string(3) "end" Actual result: -------------- PHP Warning: zend.assertions may be completely enabled or disabled only in php.ini in /home/aim/tmp/home.php on line 46 PHP Stack trace: PHP 1. {main}() /home/aim/tmp/home.php:0 PHP 2. ini_set() /home/aim/tmp/home.php:46 Warning: zend.assertions may be completely enabled or disabled only in php.ini in /home/aim/tmp/home.php on line 46 Call Stack: 0.0002 399768 1. {main}() /home/aim/tmp/home.php:0 0.0002 400280 2. ini_set() /home/aim/tmp/home.php:46 /home/aim/tmp/home.php:47: string(3) "end" -- Edit bug report at https://bugs.php.net/bug.php?id=71873&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71873&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71873&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71873&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=71873&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=71873&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=71873&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=71873&r=needscript Try newer version: https://bugs.php.net/fix.php?id=71873&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=71873&r=support Expected behavior: https://bugs.php.net/fix.php?id=71873&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=71873&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=71873&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=71873&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71873&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=71873&r=dst IIS Stability: https://bugs.php.net/fix.php?id=71873&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=71873&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=71873&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=71873&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=71873&r=mysqlcfg

« previous php.bugs (#200003) next »