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
 [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

Pull Requests

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: Sat Dec 21 12:01:31 2024 UTC