From e84acc0e439cef5f033f8a88f8fe11e3c174ecd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Sun, 25 Feb 2024 16:09:50 +0100 Subject: [PATCH] Escape function names in optimizer function info --- build/gen_stub.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/gen_stub.php b/build/gen_stub.php index 2aa3bec7199..97e404e22a1 100755 --- a/build/gen_stub.php +++ b/build/gen_stub.php @@ -1529,7 +1529,7 @@ class FuncInfo { return null; } - return "\tF" . $this->return->refcount . '("' . $this->name->__toString() . '", ' . $type->toOptimizerTypeMask() . "),\n"; + return "\tF" . $this->return->refcount . '("' . addslashes($this->name->__toString()) . '", ' . $type->toOptimizerTypeMask() . "),\n"; } public function discardInfoForOldPhpVersions(): void {