From: Jakub Vrana Date: Sat, 15 Mar 2025 01:00:48 +0000 (+0100) Subject: php_shrink: Document bug X-Git-Tag: v5.0.6~45 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=fd199ec1561d77a763bbce1848136385054de947;p=adminer.git php_shrink: Document bug --- diff --git a/tests/php_shrink.php b/tests/php_shrink.php index 218becf1..bc917e75 100644 --- a/tests/php_shrink.php +++ b/tests/php_shrink.php @@ -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);');