Debian Bug report logs - #154475
func_get_arg() can not be used more than once in function calls

version graph

Package: php5; Maintainer for php5 is (unknown);

Reported by: James Nord <teilo@teilo.net>

Date: Sat, 27 Jul 2002 10:18:03 UTC

Severity: wishlist

Tags: confirmed, upstream, wontfix

Found in version 4:4.1.2-4

Done: Lior Kaplan <kaplan@debian.org>

Bug is archived. No further changes may be made.

Forwarded to http://bugs.php.net/bug.php?id=34120

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Adam Conrad <adconrad@0c3.net>, php4@packages.qa.debian.org:
Bug#154475; Package php4. (full text, mbox, link).


Acknowledgement sent to James Nord <teilo@teilo.net>:
New Bug report received and forwarded. Copy sent to Adam Conrad <adconrad@0c3.net>, php4@packages.qa.debian.org. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: James Nord <teilo@teilo.net>
To: submit@bugs.debian.org
Subject: php4: func_get_arg() can not be used more than once in function calls
Date: Sat, 27 Jul 2002 12:18:44 +0200 (CEST)
Package: php4
Version: 4:4.1.2-4
Severity: normal

using the following code snippet

function doHead() {
  header("Last-Modified: " . gmdate("D, d M Y H:i:s", getlastmod()) . " GMT");
  if (func_num_args() == 2) {
    doTitle(func_get_arg(0), func_get_arg(1));
  }
  else {
    doTitle(func_get_arg(0));
  }
}

if I pass 2 argument into the function doHead then I get the following error
Fatal error*: func_get_arg(): Can't be used as a function parameter
but passing 1 argument is ok as is using the following code with 2 arguments

function doHead() {
  header("Last-Modified: " . gmdate("D, d M Y H:i:s", getlastmod()) . " GMT"); 
  if (func_num_args() == 2) {
    $a = func_get_arg(0);
    $b = func_get_arg(1);
    doTitle($a, $b);
  }
  else {
    doTitle(func_get_arg(0));
  }
}

-- System Information
Debian Release: 3.0
Kernel Version: Linux phoenix 2.2.20-pmac #1 Thu Mar 21 17:08:23 EST 2002 ppc unknown

Versions of the packages php4 depends on:
ii  apache-common  1.3.26-0woody1 Support files for all Apache webservers
ii  fileutils      4.1-10         GNU file management utilities
ii  libbz2-1.0     1.0.2-1        A high-quality block-sorting file compressor
ii  libc6          2.2.5-10       GNU C Library: Shared libraries and Timezone
ii  libdb2         2.7.7.0-7      The Berkeley database routines (run-time fil
ii  libexpat1      1.95.2-6       XML parsing C library - runtime library
ii  libmm11        1.1.3-6        Shared memory library
ii  libpam0g       0.72-35        Pluggable Authentication Modules library
ii  libpcre3       3.4-1.1        Philip Hazel's Perl Compatible Regular Expre
ii  mime-support   3.18-1         MIME files 'mime.types' & 'mailcap', and sup
ii  zlib1g         1.1.4-1        compression library - runtime



Noted your statement that Bug has been forwarded to http://bugs.php.net/bug.php?id=34120. Request was from Ondrej Sury <ondrej@sury.org> to control@bugs.debian.org. (full text, mbox, link).


Tags added: upstream, confirmed Request was from Ondrej Sury <ondrej@sury.org> to control@bugs.debian.org. (full text, mbox, link).


Tags added: wontfix Request was from sean finney <seanius@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `php4' to `php5'. Request was from Marco Rodrigues <gothicx@sapo.pt> to control@bugs.debian.org. (Fri, 23 May 2008 15:00:02 GMT) (full text, mbox, link).


Changed Bug title to `func_get_arg() can not be used more than once in function calls' from `php4: func_get_arg() can not be used more than once in function calls'. Request was from Raphael Geissert <atomo64@gmail.com> to control@bugs.debian.org. (Fri, 29 Aug 2008 01:06:02 GMT) (full text, mbox, link).


Bug marked as found in version 4:4.1.2-4. Request was from Raphael Geissert <atomo64@gmail.com> to control@bugs.debian.org. (Fri, 29 Aug 2008 01:06:02 GMT) (full text, mbox, link).


Severity set to `wishlist' from `normal' Request was from Sean Finney <seanius@debian.org> to control@bugs.debian.org. (Tue, 21 Jul 2009 06:06:02 GMT) (full text, mbox, link).


Reply sent to Lior Kaplan <kaplan@debian.org>:
You have taken responsibility. (Sat, 28 Sep 2013 21:39:13 GMT) (full text, mbox, link).


Notification sent to James Nord <teilo@teilo.net>:
Bug acknowledged by developer. (Sat, 28 Sep 2013 21:39:13 GMT) (full text, mbox, link).


Message #24 received at 154475-done@bugs.debian.org (full text, mbox, reply):

From: Lior Kaplan <kaplan@debian.org>
To: 154475-done@bugs.debian.org
Subject: closing
Date: Sat, 28 Sep 2013 23:37:33 +0200
[Message part 1 (text/plain, inline)]
It seems that after 10 years, we could close this bug report. Upstream have
refused to fix it (https://bugs.php.net/bug.php?id=34120), and I don't see
us doing it on our own.

Kaplan
[Message part 2 (text/html, inline)]

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 27 Oct 2013 07:32:34 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 03:49:04 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.