Skip to content

Commit 5d9b905

Browse files
committed
Implement review
1 parent 0929595 commit 5d9b905

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
@@ -2453,19 +2453,18 @@ PHP_FUNCTION(extract)
24532453
}
24542454

24552455
if (extract_type > EXTR_SKIP && extract_type <= EXTR_PREFIX_IF_EXISTS && ZEND_NUM_ARGS() < 3) {
2456-
zend_throw_error(NULL, "specified extract type requires the prefix parameter");
2456+
zend_throw_error(NULL, "Specified extract type requires the prefix parameter");
24572457
return;
24582458
}
24592459

24602460
if (prefix) {
24612461
if (ZSTR_LEN(prefix) && !php_valid_var_name(ZSTR_VAL(prefix), ZSTR_LEN(prefix))) {
2462-
zend_throw_error(NULL, "prefix is not a valid identifier");
2462+
zend_throw_error(NULL, "Prefix is not a valid identifier");
24632463
return;
24642464
}
24652465
}
24662466

24672467
if (zend_forbid_dynamic_call("extract()") == FAILURE) {
2468-
/* TODO Elevate to exception ? */
24692468
return;
24702469
}
24712470

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)