Bug #78532 [NEW]: error control operator not behaving the same as php5
| From: | jcmargentina at gmail dot com | Date: | Fri, 13 Sep 2019 12:12:59 +0000 |
| Subject: | Bug #78532 [NEW]: error control operator not behaving the same as php5 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-222729@lists.php.net to get a copy of this message | ||
From: jcmargentina at gmail dot com
Operating system:
PHP version: 7.1.32
Package: Output Control
Bug Type: Bug
Bug description:error control operator not behaving the same as php5
Description:
------------
I noticed that the Error Control Operator is behaving different in php7
than php5
Test script:
---------------
<?php
function query()
{
$myrs = null;
$tmp = @$myrs->free_result();
return $tmp;
}
var_dump(query());
echo "Another output";
Expected result:
----------------
NOTHING (as of php5)
Actual result:
--------------
Fatal error: Uncaught Error: Call to a member function free_result() on
null in [...][...]:6
Stack trace:
#0 [...][...](11): query()
#1 {main}
thrown in [...][...] on line 6
--
Edit bug report at https://bugs.php.net/bug.php?id=78532&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=78532&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78532&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78532&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78532&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78532&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78532&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78532&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78532&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78532&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78532&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=78532&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=78532&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78532&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78532&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78532&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78532&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78532&r=mysqlcfg