1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00

Escape function names in optimizer function info

This commit is contained in:
Máté Kocsis
2024-02-25 16:09:50 +01:00
parent 7266e4fc6d
commit e84acc0e43

View File

@@ -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 {