Bug #81289 [Fbk->Csd]: Running php -v results in oci8.old_oci_close_semantics is deprecated message
| From: | kocsismate@php.net | Date: | Sun, 25 Jul 2021 12:49:56 +0000 |
| Subject: | Bug #81289 [Fbk->Csd]: Running php -v results in oci8.old_oci_close_semantics is deprecated message | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-235335@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=81289&edit=1
ID: 81289
Updated by: kocsismate@php.net
Reported by: dave_martin at mindspring dot com
Summary: Running php -v results in
oci8.old_oci_close_semantics is deprecated message
-Status: Feedback
+Status: Closed
Type: Bug
Package: OCI8 related
Operating System: Windows 10 Pro
PHP Version: 8.1.0beta1
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Thank you for the report! There was a bug in beta1 which made the deprecation notice always emitted.
It has already been fixed in the meantime: https://github.com/php/php-src/commit/87c181a0b081999b49f50a14050ace6311923023
If you don't have oci8.old_oci_close_semantics enabled, then you won't see this notice as
soon as you upgrade to beta2 (to be released ~2 weeks).
Previous Comments:
------------------------------------------------------------------------
[2021-07-25 12:46:04] cmb@php.net
oci8.old_oci_close_semantics has only recently been deprecated[1].
Apparently you have enabled that setting in your php.ini.
[1] <https://github.com/php/php-src/commit/e120d5269a31cb40d422e8617428a430bcda78c1>
------------------------------------------------------------------------
[2021-07-25 12:33:11] dave_martin at mindspring dot com
This only happens when the oci8_19 extension is enabled in php.ini. When the extension is NOT enable
the deprecated error is not shown when running php -v
------------------------------------------------------------------------
[2021-07-25 12:25:12] dave_martin at mindspring dot com
Description:
------------
After installing beta 1 simply running php -v from a command window results in the following
message:
Deprecated: Directive oci8.old_oci_close_semantics is deprecated in Unknown on line 0
Test script:
---------------
php -v
Expected result:
----------------
Expected the version details to be returned without the deprecated message. The deprecated message
did not occur with the last alpha release.
D:\Temp>php -v
PHP 8.1.0beta1 (cli) (built: Jul 20 2021 17:20:01) (ZTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.1.0-dev, Copyright (c) Zend Technologies
Actual result:
--------------
D:\Temp>php -v
Deprecated: Directive oci8.old_oci_close_semantics is deprecated in Unknown on line 0
PHP 8.1.0beta1 (cli) (built: Jul 20 2021 17:20:01) (ZTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.1.0-dev, Copyright (c) Zend Technologies
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=81289&edit=1