|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9148 PHP got space to every of my variables
Submitted: 2001-02-07 09:55 UTC Modified: 2001-02-07 10:05 UTC
From: stano at scifi dot sk Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.0.4pl1 OS: Linux
Private report: No CVE-ID: None
 [2001-02-07 09:55 UTC] stano at scifi dot sk
If I use php4.0.4pl1, php does this.

If I make for. example:


Real value is " fee";
It does on every variables, why?

And second problem.

I have php free.php script:
if ($job=='') { echo "Job if free"; }
         else { echo "Job is not free"; }

But If I look on it from browser
and use:
The result is "Job is not free";



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-07 10:05 UTC]
I'm 100% sure that PHP doesn't add a space before every value. I think you just made an error in your script.

For the second problem, this is normal behavior, the empty string evalutes to 0.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 23 22:01:29 2024 UTC