php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1766 Problem with new
Submitted: 1999-07-20 16:47 UTC Modified: 1999-07-27 13:42 UTC
From: zerodiv at horde dot org Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Beta 1 OS: All
Private report: No CVE-ID: None
 [1999-07-20 16:47 UTC] zerodiv at horde dot org
class MyClass {
Function MyFunc( $this_item ) {
}
}

class AnotherClass {
Function AnotherClass() {
}
}

// Works under php3 
$this_obj = new MyClass();
$this_obj->Add( new AnotherClass() );

// New code for php4
$this_obj->Add( $tmp_obj = new AnotherClass() );

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-07-24 10:28 UTC] zeev at cvs dot php dot net
This is an incompatibility between PHP 3.0 and 4.0 that we intend to sort out before Beta 2.
Thanks for reporting it!
 [1999-07-27 13:42 UTC] andi at cvs dot php dot net
Fixed in latest CVS.
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC