php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27613 can'y use equal in a string
Submitted: 2004-03-16 04:45 UTC Modified: 2004-03-16 10:19 UTC
From: patrick dot bast at aquitaine dot iufm dot fr Assigned:
Status: Closed Package: PHP-GTK related
PHP Version: Irrelevant OS: Microsoft Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: patrick dot bast at aquitaine dot iufm dot fr
New email:
PHP Version: OS:

 

 [2004-03-16 04:45 UTC] patrick dot bast at aquitaine dot iufm dot fr
Description:
------------
In my code, the line 72 is :

$pos = strpos($line, '=');

return  :

Parse error: parse error, unexpected '=' in C:\php-gtk\test04.php on line 72

Try to enclose = by "", same result.

Reproduce code:
---------------
function returnvalue($line)
{
	$line = trim($line);
	$pos = strpos($line, "=");
	$value = substr($line, $pos + 1);

return $value;
}


Expected result:
----------------
Will return the correct position of the equal caracter in my string

Actual result:
--------------
Parse error: parse error, unexpected '=' in c:\php-gtk\virusscan\virusscan.php on line 72


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-16 10:19 UTC] patrick dot bast at aquitaine dot iufm dot fr
Error in script
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 12:01:27 2024 UTC