|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesoci8_php_oci_fix (last revision 2021-05-28 15:15 UTC by mjetzer dot cdc at gmail dot com)Pull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2021-05-28 15:46 UTC] kocsismate@php.net
[2021-05-28 15:48 UTC] kocsismate@php.net
[2021-05-28 16:00 UTC] git@php.net
[2021-05-28 16:00 UTC] git@php.net
-Status: Open
+Status: Closed
[2021-05-28 16:03 UTC] cmb@php.net
-Status: Closed
+Status: Verified
[2021-05-28 16:03 UTC] cmb@php.net
[2021-05-28 21:15 UTC] cmb@php.net
-Status: Verified
+Status: Closed
-Assigned To:
+Assigned To: cmb
[2021-05-28 21:15 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 18:00:01 2025 UTC |
Description: ------------ ext/reflection/tests/internal_parameter_default_value/check_all.phpt fails with the following: oci_fetch_object: Undefined constant "PHP_OCI_ASSOC" oci_fetch_array: Undefined constant "PHP_OCI_BOTH" I see that most of the oci_* functions in ext/oci8/oci8_arginfo.h with similar default arguments use the OCI_* version of the constant, rather than the PHP_OCI_* versions, but oci_fetch_object() and oci_fetch_array() use the PHP_OCI_* version of the constants. Changing the oci8_arginfo.h declarations to use only the OCI_* version of the constants allows the regression test to run successfully. We do not use any of the oci_* functions directly, only via ADOdb, which provides all necessary arguments and does not default any arguments, so we have no ready means of testing these functions (other than by running the regression tests). These constants are declared using PHP_OCI_* in the current versions of the files in git. Test script: --------------- Run regression test as TEST_PHP_EXECUTABLE=/PATH/TO/sapi/cli/php sapi/cli/php -n -c tmp-php.ini run-tests.php --no-clean ext/reflection/tests/internal_parameter_default_value/check_all.phpt Expected result: ---------------- Regression test runs successfully. Actual result: -------------- Regression test fails with errors described in the Description.