Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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