Skip to content

ext/oci8: Fix GH-18873 - Free column->descid appropriately #18957

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Skip the test when Zend MM is disabled.
  • Loading branch information
SakiTakamachi committed Jul 1, 2025
commit 6c139b7e4f1b20c397f3918322da1386a67cbb65
8 changes: 8 additions & 0 deletions ext/oci8/tests/gh18873.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ oci8
--SKIPIF--
<?php
require_once 'skipifconnectfailure.inc';

ob_start();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's an easier way, see

if (getenv("USE_ZEND_ALLOC") === "0") die("skip requires ZendMM");

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, fixed!

phpinfo(INFO_GENERAL);
$info = ob_get_clean();

if (strpos($info, 'Zend Memory Manager => enabled') === false) {
die('skip Zend MM is disabled');
}
?>
--FILE--
<?php
Expand Down
Loading