Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37246 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23183 invoked from network); 26 Apr 2008 18:30:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Apr 2008 18:30:33 -0000 Received: from [127.0.0.1] ([127.0.0.1:8612]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id 9A/B1-11391-9C473184 for ; Sat, 26 Apr 2008 14:30:33 -0400 X-Host-Fingerprint: 98.210.212.242 c-98-210-212-242.hsd1.ca.comcast.net Received: from [98.210.212.242] ([98.210.212.242:14795] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 19/A1-11391-C0373184 for ; Sat, 26 Apr 2008 14:23:10 -0400 Message-ID: <19.A1.11391.C0373184@pb1.pair.com> To: internals@lists.php.net Date: Sat, 26 Apr 2008 11:23:03 -0700 User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 98.210.212.242 Subject: Help with calling PHP functions From: dhiru.pandey@sun.com (Dhiru Pandey) [My apologies if I am posting on the wrong group...please point me to the right one] I am trying to figure out a way to invoke PHP functions directly i.e. bypassing the PHP compiler (scanner and parser). For now it would be great if I can get some help calling them from C. Ultimately I would like to call them from Java. For e.g. I would like to call: PHP_FUNCTION(str_repeat) It appears to me when stepping thru the invocation path that some compiler and executor globals need to be initialized before one can call these functions. In its raw form these functions do not have the arguments (needed by the function) passed as parameters to the functions call. I need some guidance in this area and recommendations on how to do this Thanks in advance -Dhiru