Skip to content

Commit 5531e5a

Browse files
committed
Implement review
1 parent e52fd28 commit 5531e5a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

ext/standard/array.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2457,19 +2457,18 @@ PHP_FUNCTION(extract)
24572457
}
24582458

24592459
if (extract_type > EXTR_SKIP && extract_type <= EXTR_PREFIX_IF_EXISTS && ZEND_NUM_ARGS() < 3) {
2460-
zend_throw_error(NULL, "specified extract type requires the prefix parameter");
2460+
zend_throw_error(NULL, "Specified extract type requires the prefix parameter");
24612461
return;
24622462
}
24632463

24642464
if (prefix) {
24652465
if (ZSTR_LEN(prefix) && !php_valid_var_name(ZSTR_VAL(prefix), ZSTR_LEN(prefix))) {
2466-
zend_throw_error(NULL, "prefix is not a valid identifier");
2466+
zend_throw_error(NULL, "Prefix is not a valid identifier");
24672467
return;
24682468
}
24692469
}
24702470

24712471
if (zend_forbid_dynamic_call("extract()") == FAILURE) {
2472-
/* TODO Elevate to exception ? */
24732472
return;
24742473
}
24752474

ext/standard/tests/array/extract_error.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ echo "Done\n";
3636
Notice: A non well formed numeric value encountered in %s on line %d
3737
Invalid extract type
3838
Invalid extract type
39-
specified extract type requires the prefix parameter
39+
Specified extract type requires the prefix parameter
4040
Done

0 commit comments

Comments
 (0)