~ubuntu-branches/ubuntu/maverick/php5/maverick-proposed

« back to all changes in this revision

Viewing changes to ext/spl/tests/bug51374.phpt

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-08-01 11:58:54 UTC
  • mfrom: (1.1.19 upstream) (0.4.6 experimental)
  • Revision ID: james.westby@ubuntu.com-20100801115854-30yqnnj2vx87v6no
Tags: 5.3.3-1ubuntu1
Merge from Debian experimental: 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--TEST--
 
2
SPL: SplFileObject wrongly initializes objects
 
3
--FILE--
 
4
<?php
 
5
class Foo extends SplFileObject
 
6
{
 
7
    public $bam = array();
 
8
}
 
9
$fileInfo = new SplFileInfo('php://temp');
 
10
$fileInfo->setFileClass('Foo');
 
11
$file = $fileInfo->openFile('r');
 
12
 
 
13
print var_dump($file->bam); // is null or UNKNOWN:0
 
14
?>
 
15
===DONE===
 
16
--EXPECT--
 
17
array(0) {
 
18
}
 
19
===DONE===