mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix class name in warning of frameless calls (#13619)
This commit is contained in:
parent
089ef2ac61
commit
6db06a7c0f
2 changed files with 20 additions and 1 deletions
19
Zend/tests/frameless_bug_001.phpt
Normal file
19
Zend/tests/frameless_bug_001.phpt
Normal file
|
@ -0,0 +1,19 @@
|
|||
--TEST--
|
||||
Frameless bug 001
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
namespace NS;
|
||||
|
||||
class Test {
|
||||
public function test() {
|
||||
return preg_match('foo', 'bar');
|
||||
}
|
||||
}
|
||||
|
||||
$test = new Test();
|
||||
$test->test();
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: preg_match(): Delimiter must not be alphanumeric, backslash, or NUL byte in %s on line %d
|
|
@ -507,7 +507,7 @@ ZEND_API const char *get_active_class_name(const char **space) /* {{{ */
|
|||
return "";
|
||||
}
|
||||
|
||||
func = EG(current_execute_data)->func;
|
||||
func = zend_active_function();
|
||||
|
||||
switch (func->type) {
|
||||
case ZEND_USER_FUNCTION:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue