Bug #81098 [NEW]: shmop_close returns deprecated but function_exists recognizes as valid
| From: | santiagopereyra dot 95 at gmail dot com | Date: | Wed, 02 Jun 2021 01:41:15 +0000 |
| Subject: | Bug #81098 [NEW]: shmop_close returns deprecated but function_exists recognizes as valid | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-234155@lists.php.net to get a copy of this message | ||
From: santiagopereyra dot 95 at gmail dot com
Operating system: Linux
PHP version: 8.0.6
Package: *General Issues
Bug Type: Bug
Bug description:shmop_close returns deprecated but function_exists recognizes as valid
Description:
------------
In PHP 8.0.6, shmop_close returns me a Deprecated error, but the
function_exists method returns me true. I don't know if it's an error in
the shmop method, or the function_exists method.
configure line:
./configure --enable-mbstring --with-mysqli --enable-shmop
--enable-pcntl
Test script:
---------------
<?php
echo var_export(function_exists("shmop_close"), true);
if (function_exists("shmop_close")) shmop_close();
Expected result:
----------------
false
Actual result:
--------------
true
Deprecated: Function shmop_close() is deprecated in [...]
--
Edit bug report at https://bugs.php.net/bug.php?id=81098&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81098&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81098&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81098&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81098&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81098&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81098&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81098&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81098&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81098&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81098&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81098&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81098&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81098&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81098&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81098&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81098&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81098&r=mysqlcfg