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
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: 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-2019 The PHP Group
All rights reserved.
Last updated: Wed Jun 19 19:01:26 2019 UTC