1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-06 14:46:36 +02:00

php_shrink: Document bug

This commit is contained in:
Jakub Vrana
2025-03-15 02:00:48 +01:00
parent e3515fd63f
commit fd199ec156

View File

@@ -10,6 +10,12 @@ function check($code, $expected) {
}
}
//! bugs:
check('{if (true) {} echo 1;}', '{if(true);echo 1;}');
//! inefficiencies:
check("echo 1; //\necho 2;", 'echo 1,2;');
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);');