note 107883 added to function.func-num-args
| From: | luisguillermo dot quevedovelez at gmail dot com | Date: | Tue, 13 Mar 2012 07:32:51 +0000 |
| Subject: | note 107883 added to function.func-num-args | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-186620@lists.php.net to get a copy of this message | ||
I had defined a function function_name(){ ...} as a drupal callback.
I try to get how many params where passed
I got a Error and my Site falls down
I've replaced func_get_args() instead func_num_args() and my Site was restored.
I conclude you can not use func_num_args() in callbacks.
Hope it helps.
----
Server IP: 190.90.160.68
Probable Submitter: 186.112.0.73 (proxied: 186.112.0.73)
----
Manual Page -- http://www.php.net/manual/en/function.func-num-args.php
Edit -- https://master.php.net/note/edit/107883
Del: integrated -- https://master.php.net/note/delete/107883/integrated
Del: useless -- https://master.php.net/note/delete/107883/useless
Del: bad code -- https://master.php.net/note/delete/107883/bad+code
Del: spam -- https://master.php.net/note/delete/107883/spam
Del: non-english -- https://master.php.net/note/delete/107883/non-english
Del: in docs -- https://master.php.net/note/delete/107883/in+docs
Del: other reasons-- https://master.php.net/note/delete/107883
Reject -- https://master.php.net/note/reject/107883
Search -- https://master.php.net/manage/user-notes.php