php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9093 if(1) fails
Submitted: 2001-02-03 19:04 UTC Modified: 2001-02-05 10:54 UTC
From: richchri at con2 dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.0.2 OS: linux
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:
35 + 11 = ?
Subscribe to this entry?

 
 [2001-02-03 19:04 UTC] richchri at con2 dot com
The code causing the error looks something like this....
Here is the value of $name: "some_data" 
if($what_the_fuck= ($name != NULL)) 
{ 
   echo "debug (passed): $what_the_fuck"; 
} 
else 
{ 
   echo "debug (failed): $what_the_fuck"; 
} 

And this is what is happening.....
debug (failed): 1 
ERROR: Template: trying to set NULL template variable name 

the "what_the_fuck" variable == 1 so why is if failing.  "name" == "some_data".  If ($name != NULL) == 1 then if should not fail.  P.S. I added the "what_the_fuck" for clearity only.

thanks,
richie

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-05 10:54 UTC] waldschrott@php.net
bogusing
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 04:01:28 2024 UTC