php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4432 parse error
Submitted: 2000-05-12 19:33 UTC Modified: 2000-05-13 08:25 UTC
From: apostolicteacher at yahoo dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Release Candidate 2 OS: RedHat 6.2
Private report: No CVE-ID: None
 [2000-05-12 19:33 UTC] apostolicteacher at yahoo dot com
This works: fwrite($fp, "RatAlias add Personal $row[alias] {%s, %s} $row[item] {}\n",$row[lname],$row[fname]);

This works: fwrite($fp, "RatAlias add Personal $row[alias] {%s, %s} $row[item] {}\n",$row[lname],$row[fname]);

This does not: fwrite($fp, "RatAlias add Personal $row[alias] {$row[lname], $row[fname]} $row[item] {}\n");

Notice the parameter replacement when using {%s, %s} works but {$row[lname], $row[fname]} does not. The error is "expected } at line ..."

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-05-12 19:35 UTC] apostolicteacher at yahoo dot com
This works: fwrite($fp, "RatAlias add Personal $row[alias] {%s, %s} $row[item] {}\n",$row[lname],$row[fname]);

This does not: fwrite($fp, "RatAlias add Personal $row[alias] {$row[lname], $row[fname]} $row[item] {}\n");

Notice the parameter replacement when using {%s, %s} works but {$row[lname], $row[fname]} does not. The error is "expected } at line ..."
 [2000-05-13 08:25 UTC] sterling at cvs dot php dot net
This is the correct behavior, see the message Zeev sent.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jun 28 11:01:30 2024 UTC