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

« back to all changes in this revision

Viewing changes to Zend/tests/bug32080.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 #32080 (segfault when assigning object to itself with zend.ze1_compatibility_mode=On)
 
3
--INI--
 
4
zend.ze1_compatibility_mode=on
 
5
error_reporting=4095
 
6
--FILE--
 
7
<?php
 
8
class test { }
 
9
$t = new test;
 
10
$t = $t; // gives segfault
 
11
var_dump($t);
 
12
?>
 
13
--EXPECTF--
 
14
Strict Standards: Implicit cloning object of class 'test' because of 'zend.ze1_compatibility_mode' in %sbug32080.php on line 3
 
15
 
 
16
Strict Standards: Implicit cloning object of class 'test' because of 'zend.ze1_compatibility_mode' in %sbug32080.php on line 5
 
17
object(test)#%d (0) {
 
18
}