import zend standard tests
[hiphop-php.git] / hphp / test / zend / bad / ext-standard-file / fstat_variation6.php
blob046dc4ad57ec318da21aba20c103f457ad146384
1 <?php
6 function test_error_handler($err_no, $err_msg, $filename, $linenum, $vars) {
7 if (error_reporting() != 0) {
8 // report non-silenced errors
9 echo "Error: $err_no - $err_msg, $filename($linenum)\n";
12 set_error_handler('test_error_handler');
16 class classWithToString
18 public function __toString() {
19 return "Class A object";
23 class classWithoutToString
27 $variation_array = array(
28 'instance of classWithToString' => new classWithToString(),
29 'instance of classWithoutToString' => new classWithoutToString(),
33 foreach ( $variation_array as $var ) {
34 var_dump(fstat( $var ) );
37 ===DONE===