1--TEST-- 2GH-13142 (Undefined variable name is shortened when contains \0) 3--FILE-- 4<?php 5 6$a = "test\0test"; 7$$a; 8$a = "\0test"; 9$$a; 10$a = "test\0"; 11$$a; 12 13$GLOBALS["test\0test"]; 14$GLOBALS["\0test"]; 15$GLOBALS["test\0"]; 16 17compact("a\0b"); 18compact("\0ab"); 19compact("ab\0"); 20 21?> 22--EXPECTF-- 23Warning: Undefined variable $test%0test in %s on line %d 24 25Warning: Undefined variable $%0test in %s on line %d 26 27Warning: Undefined variable $test%0 in %s on line %d 28 29Warning: Undefined global variable $test%0test in %s on line %d 30 31Warning: Undefined global variable $%0test in %s on line %d 32 33Warning: Undefined global variable $test%0 in %s on line %d 34 35Warning: compact(): Undefined variable $a%0b in %s on line %d 36 37Warning: compact(): Undefined variable $%0ab in %s on line %d 38 39Warning: compact(): Undefined variable $ab%0 in %s on line %d 40