]> git.joonet.de Git - adminer.git/commitdiff
php_shrink: Document bug
authorJakub Vrana <jakub@vrana.cz>
Sat, 15 Mar 2025 01:00:48 +0000 (02:00 +0100)
committerJakub Vrana <jakub@vrana.cz>
Sat, 15 Mar 2025 01:26:07 +0000 (02:26 +0100)
tests/php_shrink.php

index 218becf18a9ac2e4560efb6787ca8f8564c0afe9..bc917e750ed940bd95764e2d7803156f8327ae77 100644 (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);');