[php-src] Issue #8756: ext-oci8: `oci_new_descriptor()` triggers dynamic property deprecation
| From: | derrabus | Date: | Sun, 12 Jun 2022 13:58:24 +0000 |
| Subject: | [php-src] Issue #8756: ext-oci8: `oci_new_descriptor()` triggers dynamic property deprecation | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-241716@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8756
Author: derrabus
### Description
The following code:
https://github.com/doctrine/dbal/blob/e15d05d08172ceeb4f55066feed48d688fdb0250/src/Driver/OCI8/Statement.php#L75
Resulted in this output:
> Creation of dynamic property OCILob::$descriptor is deprecated
https://github.com/doctrine/dbal/runs/6850136105?check_suite_focus=true
But I expected this output instead:
The piece of code that PHP complains about does not write any property directly but calls
oci_new_descriptor() which is supposed to return a new OCILob instance. I
don't feel like I could avoid the deprecation.
### PHP Version
PHP 8.2.0-alpha1
### Operating System
Ubuntu 20.04