note 93744 modified in function.call-user-func-array by danbrown
| From: | danbrown@php.net | Date: | Fri, 25 Sep 2009 17:10:45 +0000 |
| Subject: | note 93744 modified in function.call-user-func-array by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-161055@lists.php.net to get a copy of this message | ||
Just hope this note helps someone (I killed the whole day on issue).
If you use something like this in PHP < 5.3:
<?php call_user_func_array(array($this, 'parent::func'), $args); ?>
Such a script will cause segmentation fault in your webserver.
In 5.3 you should write it:
<?php call_user_func_array('parent::func', $args); ?>
--was--
Just hope this note helps someone (I killed the whole day on issue).
If you use something like this in PHP < 5.3:
call_user_func_array(array($this, 'parent::func'), $args);
Such a script will cause segmentation fault in your webserver.
In 5.3 you should write it:
call_user_func_array('parent::func', $args);
http://php.net/manual/en/function.call-user-func-array.php