Skip to content

Commit 87c181a

Browse files
committed
Fix oci8.old_oci_close_semantics deprecation is always displayed
1 parent e1f211f commit 87c181a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/oci8/oci8.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static PHP_INI_MH(OnUpdateOldCloseSemantics)
132132
bool *p = (bool *) ZEND_INI_GET_ADDR();
133133
*p = zend_ini_parse_bool(new_value);
134134

135-
if (p) {
135+
if (*p) {
136136
zend_error(E_DEPRECATED, "Directive oci8.old_oci_close_semantics is deprecated");
137137
}
138138

0 commit comments

Comments
 (0)