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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: stano at scifi dot sk
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Fri Apr 26 01:01:30 2024 UTC