Skip to content

Commit bb2836e

Browse files
authored
1 parent 746b1cf commit bb2836e

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ PHP NEWS
1414
. Constants SUNFUNCS_RET_TIMESTAMP, SUNFUNCS_RET_STRING, and SUNFUNCS_RET_DOUBLE
1515
are now deprecated. (Jorg Sowa)
1616

17+
- DBA:
18+
. Passing null or false to dba_key_split() is deprecated. (Grigias)
19+
1720
- DOM:
1821
. Fixed bug GH-15192 (Segmentation fault in dom extension
1922
(html5_serializer)). (nielsdos)

UPGRADING

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,10 @@ PHP 8.4 UPGRADE NOTES
409409
the associated date_sunset() and date_sunrise() functions in PHP 8.1.
410410
RFC: https://wiki.php.net/rfc/deprecations_php_8_4
411411

412+
- DBA:
413+
. Passing null or false to dba_key_split() is deprecated.
414+
RFC: https://wiki.php.net/rfc/deprecations_php_8_4#deprecate_passing_null_and_false_to_dba_key_split
415+
412416
- DOM:
413417
. Deprecated DOM_PHP_ERR constant.
414418
RFC: https://wiki.php.net/rfc/deprecations_php_8_4#deprecate_dom_php_err_constant

ext/dba/dba.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,6 +1108,7 @@ PHP_FUNCTION(dba_key_split)
11081108
}
11091109
if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS(), "z", &zkey) == SUCCESS) {
11101110
if (Z_TYPE_P(zkey) == IS_NULL || (Z_TYPE_P(zkey) == IS_FALSE)) {
1111+
php_error_docref(NULL, E_DEPRECATED, "Passing false or null is deprecated since 8.4");
11111112
RETURN_FALSE;
11121113
}
11131114
}

ext/dba/tests/dba_split.phpt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@ var_dump(dba_key_split("[key1]name1[key2]name2"));
1717
var_dump(dba_key_split("[key1]name1"));
1818

1919
?>
20-
--EXPECT--
20+
--EXPECTF--
21+
Deprecated: dba_key_split(): Passing false or null is deprecated since 8.4 in %s on line %d
2122
bool(false)
23+
24+
Deprecated: dba_key_split(): Passing false or null is deprecated since 8.4 in %s on line %d
2225
bool(false)
2326
array(2) {
2427
[0]=>

0 commit comments

Comments
 (0)