Bug #75769 [NEW]: ASSERT_QUIET_EVAL has no effect
| From: | daniel dot jaenecke at gmail dot com | Date: | Fri, 05 Jan 2018 20:45:18 +0000 |
| Subject: | Bug #75769 [NEW]: ASSERT_QUIET_EVAL has no effect | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-213391@lists.php.net to get a copy of this message | ||
From: daniel dot jaenecke at gmail dot com
Operating system: Linux / not relevant
PHP version: 7.2.1
Package: PHP options/info functions
Bug Type: Bug
Bug description:ASSERT_QUIET_EVAL has no effect
Description:
------------
As far as I understand from the documentation setting ASSERT_QUIET_EVAL
/ assert.quiet_eval to 1 should suppress any error message triggered
when evaluating an assertion.
Either this is not the case or I misunderstand the (rather scarce)
documentation on this option.
Test script:
---------------
<?php
error_reporting(E_ALL);
assert_options(ASSERT_QUIET_EVAL, 1);
assert($foo);
Expected result:
----------------
Warning: assert(): assert($foo) failed in [â¦] on line 5
Actual result:
--------------
Notice: Undefined variable: foo in [â¦] on line 5
Warning: assert(): assert($foo) failed in [â¦] on line 5
--
Edit bug report at https://bugs.php.net/bug.php?id=75769&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75769&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75769&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75769&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75769&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75769&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75769&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75769&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75769&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75769&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75769&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75769&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75769&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75769&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75769&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75769&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75769&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75769&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75769&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75769&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75769&r=mysqlcfg