diff options
| author | Derick Rethans <derick@php.net> | 2004-11-22 21:41:16 +0000 |
|---|---|---|
| committer | Derick Rethans <derick@php.net> | 2004-11-22 21:41:16 +0000 |
| commit | a07c080ce8f486a3b0471fabc39960372f0485d5 (patch) | |
| tree | a66d3e85aed34ce6f97bb019064f542fac93ae2f /tests | |
| parent | 82cd4789a728e857765a0da85cdb227c988d7690 (diff) | |
| download | php-git-a07c080ce8f486a3b0471fabc39960372f0485d5.tar.gz | |
- Added test case for bug #30862.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/lang/bug30862.phpt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/lang/bug30862.phpt b/tests/lang/bug30862.phpt new file mode 100644 index 0000000000..12c95d57e8 --- /dev/null +++ b/tests/lang/bug30862.phpt @@ -0,0 +1,30 @@ +--TEST-- +Bug #30862 (Static array with boolean indexes) +--FILE-- +<?php +class T { + static $a = array(false=>"false", true=>"true"); +} +print_r(T::$a); +?> +---------- +<?php +define("X",0); +define("Y",1); +class T2 { + static $a = array(X=>"false", Y=>"true"); +} +print_r(T2::$a); +?> +--EXPECT-- +Array +( + [0] => false + [1] => true +) +---------- +Array +( + [0] => false + [1] => true +) |
