php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4341 Object initialization doesn't work
Submitted: 2000-05-06 07:51 UTC Modified: 2000-06-24 10:50 UTC
From: castor at flying-dog dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Latest CVS (06/05/2000) OS: Redhat 6.1
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:
22 + 5 = ?
Subscribe to this entry?

 
 [2000-05-06 07:51 UTC] castor at flying-dog dot com
<? $obj->test="test";
if (!$obj->test) echo "error";
echo $obj->test; ?>

Results in "error" which isn't correct. This works perfect in PHP 4 Beta 3. This bug appears in Beta 4 , RC1 and the latest RC2 .

In PHP3 it prints out a warning message. To do nothing is horrible because in large PHP projects it is very hard to debug such programs  especially if large code segments depends on the PHP 4 Beta 3 behaviour!


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-24 10:50 UTC] stas at cvs dot php dot net
Couldn't reporoduce it, so it's possibly fixed. Try 4.0.1.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 01 08:01:29 2024 UTC