Newsgroups: php.internals,php.internals Path: news.php.net Xref: news.php.net php.internals:37250 php.internals:37251 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33536 invoked from network); 26 Apr 2008 19:51:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Apr 2008 19:51:57 -0000 X-Host-Fingerprint: 24.228.80.153 ool-18e45099.dyn.optonline.net Received: from [24.228.80.153] ([24.228.80.153:2797] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 53/A3-11391-CD783184 for ; Sat, 26 Apr 2008 15:51:57 -0400 Message-ID: <53.A3.11391.CD783184@pb1.pair.com> To: internals@lists.php.net,internals@lists.php.net Date: Sat, 26 Apr 2008 15:51:59 -0400 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041206 Thunderbird/1.0 Mnenhy/0.6.0.104 MIME-Version: 1.0 References: <19.A1.11391.C0373184@pb1.pair.com> <48137859.1090004@thewritingpot.com> <48137F68.3080501@sun.com> In-Reply-To: <48137F68.3080501@sun.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Posted-By: 24.228.80.153 Subject: Re: Help with calling PHP functions From: edwardzyang@thewritingpot.com ("Edward Z. Yang") Dhiru Pandey wrote: > Thanks for responding. > > May be I mis-wrote. > What I would really like is a way to call the native c functions of the > php implementation directly (bypassing the PHP compiler) like: > > PHP_FUNCTION(str_repeat) > PHP_FUNCTION(addcslashes) etc. > > In other words I would like to invoke this functions directly thru C or > Java. > > I do not want to callback into a PHP script user function Callback works with the native C functions too. It'll be pretty nasty trying to get all of PHP's macros to work from scratch. Just use the infrastructure that's in place already. -- Edward Z. Yang GnuPG: 0x869C48DA HTML Purifier Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]]