Skip to content

Inaccurate warning messages in JIT #16637

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
YuanchengJiang opened this issue Oct 29, 2024 · 1 comment
Closed

Inaccurate warning messages in JIT #16637

YuanchengJiang opened this issue Oct 29, 2024 · 1 comment

Comments

@YuanchengJiang
Copy link

Description

The following code:

<?php
namespace NS;
class Test {
	public function test() {
		return preg_match('foo', 'bar');
	}
}
$test = new Test();
$test->test();

Resulted in this output (JIT 1211):

object(NS\Test)#1 (0) {
}

Warning: NS\Test::test(): Delimiter must not be alphanumeric, backslash, or NUL byte in /tmp/test.php on line 6

But I expected this output instead:

object(NS\Test)#1 (0) {
}

Warning: preg_match(): Delimiter must not be alphanumeric, backslash, or NUL byte in /tmp/test.php on line 6

PHP Version

nightly

Operating System

ubuntu 22.04

@nielsdos
Copy link
Member

Duplicate of your other report #15981 again

@nielsdos nielsdos closed this as not planned Won't fix, can't repro, duplicate, stale Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants