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

« back to all changes in this revision

Viewing changes to tests/lang/bug24573.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 #24573 (debug_backtrace() crashes if $this is set to null)
 
3
--FILE--
 
4
<?php
 
5
 
 
6
class Foo {
 
7
  function Bar() {
 
8
    $__this = $this;
 
9
    $this = null;
 
10
    debug_backtrace();
 
11
    $this = $__this;
 
12
  }
 
13
}
 
14
 
 
15
$f = new Foo;
 
16
 
 
17
$f->Bar();
 
18
 
 
19
echo "OK\n";
 
20
 
 
21
?>
 
22
--EXPECTF--
 
23
 
 
24
Fatal error: Cannot re-assign $this in %s on line %d
 
 
b'\\ No newline at end of file'