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 {