Bug #81098 [Opn->Nab]: shmop_close returns deprecated but function_exists recognizes as valid
| From: | requinix@php.net | Date: | Wed, 02 Jun 2021 01:46:10 +0000 |
| Subject: | Bug #81098 [Opn->Nab]: shmop_close returns deprecated but function_exists recognizes as valid | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-234156@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=81098&edit=1
ID: 81098
Updated by: requinix@php.net
Reported by: santiagopereyra dot 95 at gmail dot com
Summary: shmop_close returns deprecated but function_exists
recognizes as valid
-Status: Open
+Status: Not a bug
Type: Bug
Package: *General Issues
Operating System: Linux
PHP Version: 8.0.6
Block user comment: N
Private report: N
New Comment:
function_exists returns whether the function exists. Deprecated functions still exist.
Previous Comments:
------------------------------------------------------------------------
[2021-06-02 01:41:15] santiagopereyra dot 95 at gmail dot com
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 this bug report at https://bugs.php.net/bug.php?id=81098&edit=1