php.net |  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:

 $aa="fee";

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

And second problem.

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

But If I look on it from browser
and use: http://mysite.com/free.php
The result is "Job is not free";

Why?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-07 10:05 UTC] derick@php.net
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: Sat Dec 21 11:01:30 2024 UTC