summaryrefslogtreecommitdiff
path: root/Zend/tests/bug24635.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug24635.phpt')
-rw-r--r--Zend/tests/bug24635.phpt22
1 files changed, 11 insertions, 11 deletions
diff --git a/Zend/tests/bug24635.phpt b/Zend/tests/bug24635.phpt
index 7235859d3a..7210f83743 100644
--- a/Zend/tests/bug24635.phpt
+++ b/Zend/tests/bug24635.phpt
@@ -3,21 +3,21 @@ Bug #24635 (crash on dtor calling other functions)
--FILE--
<?php
class SiteClass {
- function __construct() { $this->page = new PageClass(); }
+ function __construct() { $this->page = new PageClass(); }
}
class PageClass {
- function Display() {
- $section = new SectionClass("PageClass::Display");
- }
+ function Display() {
+ $section = new SectionClass("PageClass::Display");
+ }
}
class SectionClass {
- function __construct($comment) {
- $this->Comment = $comment;
- }
- function __destruct() {
- out($this->Comment); // this line doesn't crash PHP
- out("\n<!-- End Section: " . $this->Comment . "-->"); // this line
- }
+ function __construct($comment) {
+ $this->Comment = $comment;
+ }
+ function __destruct() {
+ out($this->Comment); // this line doesn't crash PHP
+ out("\n<!-- End Section: " . $this->Comment . "-->"); // this line
+ }
}
function out($code) { return; }
$site = new SiteClass();