Bug #81631 [NEW]: Incorrect warning messages.
| From: | shaohua dot li at inf dot ethz dot ch | Date: | Wed, 17 Nov 2021 13:40:11 +0000 |
| Subject: | Bug #81631 [NEW]: Incorrect warning messages. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-237811@lists.php.net to get a copy of this message | ||
From: shaohua dot li at inf dot ethz dot ch
Operating system: Ubuntu 20.04.3 LTS
PHP version: 8.1Git-2021-11-17 (Git)
Package: Scripting Engine problem
Bug Type: Bug
Bug description:Incorrect warning messages.
Description:
------------
Hi there,
I compiled php-src with clang13 and gcc11. For the following script,
sapi/cli/php emits warning message "Warning: Undefined variable $b",
but
For clang13 compiled one, the warning says the error happens on line 3.
For gcc11 compiled one, the warning says the error happens on line 2.
Test script:
---------------
<?php
$a = 0;
var_dump($b::class);
?>
--
Edit bug report at https://bugs.php.net/bug.php?id=81631&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81631&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81631&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81631&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81631&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81631&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81631&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81631&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81631&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81631&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81631&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81631&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81631&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81631&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81631&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81631&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81631&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81631&r=mysqlcfg