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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
41 - 37 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 14:01:31 2024 UTC