php_shrink: Move add_apo_slashes to compile.php

This commit is contained in:
Jakub Vrana
2025-03-15 09:10:43 +01:00
parent e0283543f3
commit c99ca863ce
3 changed files with 9 additions and 6 deletions

View File

@@ -13,6 +13,9 @@ function check($code, $expected) {
//! bugs:
check('{if (true) {} echo 1;}', '{if(true);echo 1;}');
//! inefficiencies
check('echo "a"."b",\'c\'."d$a"."e";', 'echo "abcd$a"."e"');
check('$ab = 1; echo $ab;', '$a=1;echo$a;');
check('$ab = 1; $cd = 2;', '$a=1;$b=2;');
check('define("AB", 1);', 'define("AB",1);');