[PHP-DEV] Re: Warning in wrong parameter
AFAIK, it's supposed to allow for more parameters anyway ;) Eric Michel 'Ziobudda' Morelli [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I have installed php 4.2.1 and error_reporting = ALL. I write a function called foo() that accept only 1 parameter. Now if I write: ? $result = foo(bar); ? All is ok. If I write: ? $result = foo(bar,bar2); ? All is ok, but for me that is not OK because my function foo() accept only 1 parameters and no 2 o 3 or more. Is there any possibility that PHP return me a warning with the message (e.g.) Warning parameter number for [function name] in [page.php] line [line number] ??? Tnx in advance. And sorry for this stupid question and for my bad english. Happy all. -- Ti desidero, voglio trascinarti a letto, piegarti, farti sudare, prenderti da farti incendiare il corpo... Ti aspetto: Tua, Influenza. -- Michel ZioBudda Morelli [EMAIL PROTECTED] ICQ UIN: 58351764 PR of Linux in Italy http://www.ziobudda.net http://www.phpdev.it -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] unset isn't a function anymore...
Well since it isn't a function, shouldn't it be able to be used without braces? Require/Include/Echo/Print all work that way? Also, would it be easy to add something like ASP's sub to PHP? Basically like a function, but no return value. where the user could choose to call it without parenthases? -eric -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] show_source()
I would actually love to see that :) John Coggeshall [EMAIL PROTECTED] wrote in message news:000701c28c5e$ac9cb200$9d10fea9;coogle... If no one has an objection, I'll look into making some of that happen. John |-Original Message- |From: [EMAIL PROTECTED] [mailto:nicos;php.net] |Sent: Thursday, November 14, 2002 10:15 PM |To: [EMAIL PROTECTED] |Subject: [PHP-DEV] show_source() | | |Hello, | |Some users are requesting some new arguments in |show_source() like having the line numbers, having a link to |the php manual when a function is called... (see #12442 ) | |What do you think of that? | |Regards. |M.CHAILLAN Nicolas |[EMAIL PROTECTED] |www.WorldAKT.com Hébergement de sites internets. | | | | |-- |PHP Development Mailing List http://www.php.net/ |To unsubscribe, visit: http://www.php.net/unsub.php | | -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php