Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #6893

Re: Sending nothing when function expects variable

From "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid>
Newsgroups comp.lang.php
Subject Re: Sending nothing when function expects variable
Date 2012-08-28 09:55 +0200
Organization http://alvaro.es/
Message-ID <k1hth4$p2d$1@dont-email.me> (permalink)
References <03b15810-f401-4ad2-a1a4-c4f10f0f311e@googlegroups.com>

Show all headers | View raw


El 28/08/2012 8:51, Jason C escribió/wrote:
> But then in the error log, I get these warnings:
>
> PHP Warning:  Missing argument 2 for q()...
> PHP Warning:  Missing argument 3 for q()...
>
> Does this mean that I need to go back through all of the scripts (dozens of them) and change all of the whatever() references to:
>
> whatever('this thing', false, false);
>
> or is there a way to set PHP to ignore this warning by default?

Don't ever ignore error messages: they are there to help you, not to 
annoy. You should configure your development environment to display 
errors, warnings and notices on screen. If you need to remember to 
manually inspect the log, you end up with situations like this.


-- 
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Sending nothing when function expects variable Jason C <jwcarlton@gmail.com> - 2012-08-27 23:51 -0700
  Re: Sending nothing when function expects variable Goran <goran@nospam.com> - 2012-08-28 09:08 +0200
    Re: Sending nothing when function expects variable Scott Johnson <noonehome@chalupasworld.com> - 2012-08-28 06:01 -0700
  Re: Sending nothing when function expects variable Anders Wegge Keller <wegge@wegge.dk> - 2012-08-28 09:21 +0200
  Re: Sending nothing when function expects variable "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2012-08-28 09:55 +0200
  Re: Sending nothing when function expects variable Tim Streater <timstreater@greenbee.net> - 2012-08-28 09:23 +0100

csiph-web