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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: apostolicteacher at yahoo dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 15:01:33 2025 UTC