Skip to content

Commit e84acc0

Browse files
committed
Escape function names in optimizer function info
1 parent 7266e4f commit e84acc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/gen_stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1529,7 +1529,7 @@ public function getOptimizerInfo(): ?string {
15291529
return null;
15301530
}
15311531

1532-
return "\tF" . $this->return->refcount . '("' . $this->name->__toString() . '", ' . $type->toOptimizerTypeMask() . "),\n";
1532+
return "\tF" . $this->return->refcount . '("' . addslashes($this->name->__toString()) . '", ' . $type->toOptimizerTypeMask() . "),\n";
15331533
}
15341534

15351535
public function discardInfoForOldPhpVersions(): void {

0 commit comments

Comments
 (0)