mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix unserialize dictionary generation
We now have namespaced classes in here, and need to escape the backslashes.
This commit is contained in:
parent
98b858e756
commit
828c93bedc
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
$dict = "";
|
||||
foreach (get_declared_classes() as $class) {
|
||||
$len = strlen($class);
|
||||
$dict .= "\"$len:\\\"$class\\\"\"\n";
|
||||
$dict .= "\"$len:\\\"" . addslashes($class) . "\\\"\"\n";
|
||||
}
|
||||
|
||||
file_put_contents(__DIR__ . "/dict/unserialize", $dict);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue