|  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
 [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"; 
   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.



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-05 10:54 UTC]
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Jul 22 03:01:26 2019 UTC