diff options
Diffstat (limited to 'Zend/tests/bug33999.phpt')
-rwxr-xr-x | Zend/tests/bug33999.phpt | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/Zend/tests/bug33999.phpt b/Zend/tests/bug33999.phpt deleted file mode 100755 index 1946280712..0000000000 --- a/Zend/tests/bug33999.phpt +++ /dev/null @@ -1,30 +0,0 @@ ---TEST-- -Bug #33999 (object remains object when cast to int) ---INI-- -error_reporting=4095 ---FILE-- -<?php -class Foo { - public $bar = "bat"; -} - -$foo = new Foo; -var_dump($foo); - -$bar = (int)$foo; -var_dump($bar); - -$baz = (float)$foo; -var_dump($baz); -?> ---EXPECTF-- -object(Foo)#1 (1) { - ["bar"]=> - string(3) "bat" -} - -Notice: Object of class Foo could not be converted to int in %sbug33999.php on line 9 -int(1) - -Notice: Object of class Foo could not be converted to double in %sbug33999.php on line 12 -float(1) |