1--TEST-- 2Bug #53903 streamwrapper/stream_stat causes problems 3--FILE-- 4<?php 5 6class sw { 7 public $context; 8 9 public function stream_open($path, $mode, $options, &$opened_path) { 10 return true; 11 } 12 13 public function stream_stat() { 14 return array( 15 'atime' => $this->undefined, 16 ); 17 } 18 19} 20stream_wrapper_register('sx', 'sw') or die('failed'); 21 22fstat(fopen('sx://test', 'r')); 23 24$s[] = 1; // Cannot use a scalar value as an array 25 26print_r($s); 27?> 28--EXPECTF-- 29Warning: Undefined property: sw::$undefined in %s on line %d 30Array 31( 32 [0] => 1 33) 34