~ubuntu-branches/ubuntu/hardy/php5/hardy-updates

« back to all changes in this revision

Viewing changes to tests/lang/bug23922.phpt

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-10-09 03:14:32 UTC
  • Revision ID: james.westby@ubuntu.com-20051009031432-kspik3lobxstafv9
Tags: upstream-5.0.5
ImportĀ upstreamĀ versionĀ 5.0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--TEST--
 
2
Bug #23922 (scope doesn't properly propagate into internal functions)
 
3
--FILE--
 
4
<?php
 
5
  class foo
 
6
  {
 
7
    public $foo = 1;
 
8
 
 
9
    function as_string()
 
10
    { assert('$this->foo == 1'); }
 
11
 
 
12
    function as_expr()
 
13
    { assert($this->foo == 1); }
 
14
  }
 
15
 
 
16
  $foo = new foo();
 
17
  $foo->as_expr();
 
18
  $foo->as_string();
 
19
?>
 
20
--EXPECT--