( NevemTeve | 2021. 12. 04., szo – 20:21 )

Szerkesztve: 2021. 12. 04., szo – 20:54
(gdb) bt
#0  0x00007f3b687e925c in php_oci_cleanup_global_handles ()
    at /usr/local/src/php-8.0.11/ext/oci8/oci8.c:248
#1  0x00007f3b687e93ff in zm_globals_dtor_oci (oci_globals=0x7f3b48090f80)
    at /usr/local/src/php-8.0.11/ext/oci8/oci8.c:276

(gdb) l oci8.c:248
243      *
244      * Free global handles (if they were initialized before)
245      */
246     static void php_oci_cleanup_global_handles(void)
247     {
248             if (OCI_G(err)) {
249                     PHP_OCI_CALL(OCIHandleFree, ((dvoid *) OCI_G(err), OCI_HTYPE_ERROR));
250                     OCI_G(err) = NULL;
251             }

Persze azért lehet egyszerűsíteni (248. sor):

 if ((((zend_oci_globals *) (*((void ***) tsrm_get_ls_cache()))[((oci_globals_id)-1)])->err)) {