php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19169 cant use arrays items as function parameters
Submitted: 2002-08-29 04:26 UTC Modified: 2002-08-29 04:34 UTC
From: tzvikrn at mizra dot co dot il Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.2.2 OS: win2k
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
30 + 10 = ?
Subscribe to this entry?

 
 [2002-08-29 04:26 UTC] tzvikrn at mizra dot co dot il
im using win2k and apache 1.3.26 .

when ever im using ImageLine() or mysql_query() i have to
put array items into regular variables in order to use them 
as function parameters or i get errors.
example:
        $ar = $_GET['ar'];
	$dea = $_GET['dea'];
	$result = mysql_query("DELETE FROM shop WHERE(article = '$ar' AND dealer = '$dea')");

or:
        $x = $area[$i];
	$y = $area[$i+1];
	$xnew = $area[$i+2];
	$ynew = $area[$i+3];
	ImageLine($image,$x,$y,$xnew,$ynew,$blue);

using IIS led to the same results

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-29 04:34 UTC] derick@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the original bug instead.

Thank you for your interest in PHP.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 17 09:01:30 2024 UTC