Skip to content

Commit 74f4586

Browse files
committed
Remove duplicate str_split check, fix test expectation
1 parent 99a3dbc commit 74f4586

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

ext/opcache/Optimizer/sccp.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,6 @@ static zend_bool can_ct_eval_func_call(zend_string *name, uint32_t num_args, zva
812812
|| zend_string_equals_literal(name, "str_contains")
813813
|| zend_string_equals_literal(name, "str_ends_with")
814814
|| zend_string_equals_literal(name, "str_split")
815-
|| zend_string_equals_literal(name, "str_split")
816815
|| zend_string_equals_literal(name, "str_starts_with")
817816
|| zend_string_equals_literal(name, "strpos")
818817
|| zend_string_equals_literal(name, "substr")

ext/opcache/tests/opt/sccp_exception2.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ require __DIR__ . '/sccp_exception2.inc';
88
Fatal error: Uncaught ValueError: version_compare(): Argument #3 ($operator) must be a valid comparison operator in %s:%d
99
Stack trace:
1010
#0 %s(%d): version_compare('1.2', '2.1', '??')
11-
#1 %s(%d): require('/home/nikic/php...')
11+
#1 %s(%d): require('%s')
1212
#2 {main}
1313
thrown in %s on line %d

0 commit comments

Comments
 (0)