Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70464 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65879 invoked from network); 2 Dec 2013 10:03:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Dec 2013 10:03:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=remi@fedoraproject.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=remi@fedoraproject.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fedoraproject.org from 212.27.42.4 cause and error) X-PHP-List-Original-Sender: remi@fedoraproject.org X-Host-Fingerprint: 212.27.42.4 smtp4-g21.free.fr Linux 2.6 Received: from [212.27.42.4] ([212.27.42.4:56245] helo=smtp4-g21.free.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9F/12-52529-0EA5C925 for ; Mon, 02 Dec 2013 05:03:14 -0500 Received: from schrodingerscat.famillecollet.com (unknown [82.241.130.121]) by smtp4-g21.free.fr (Postfix) with ESMTP id 77FA14C8253 for ; Mon, 2 Dec 2013 11:03:06 +0100 (CET) Message-ID: <529C5AD9.8090804@fedoraproject.org> Date: Mon, 02 Dec 2013 11:03:05 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: PHP Internals X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Howto use zend_register_functions ? possible bug From: remi@fedoraproject.org (Remi Collet) Hi, Looking to a proper way to use "zend_register_functions" in MINIT function (to be able to register various list, from different sources) I found the "zend_register_functions" which is available in public API and used in - zend_register_module_ex() with module.functions - php_module_startup() with sapi_module.additional_functions Issue: reflection is broken for this registered functions. We have in sapi/cli/php_cli.c static const zend_function_entry additional_functions[] = { ZEND_FE(dl, arginfo_dl) PHP_FE(cli_set_process_title, arginfo_cli_set_process_title) PHP_FE(cli_get_process_title, arginfo_cli_get_process_title) {NULL, NULL, NULL} }; $ php --re standard | grep process_title => no result $ php -r 'print_r(get_extension_funcs("standard"));' | grep proces => no result Any idea how to properly register functions and keep reflection reliable ? Remi.