Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:2352 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36551 invoked from network); 17 Jun 2003 16:29:23 -0000 Received: from unknown (HELO anthill-ebsp.com) (212.7.38.16) by pb1.pair.com with SMTP; 17 Jun 2003 16:29:23 -0000 Received: (qmail 26220 invoked from network); 17 Jun 2003 16:25:21 -0000 Received: from 102.red-80-37-125.pooles.rima-tde.net (HELO pii) (tpetit@80.37.125.102) by mail.anthill-ebsp.com with SMTP; 17 Jun 2003 16:25:21 -0000 Message-ID: <000701c334ed$9850c6f0$0601a8c0@pii> To: Date: Tue, 17 Jun 2003 18:29:14 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Subject: Help, please! The Zend API is driving me mad!!! From: omagrane@anthill.es ("Oriol") Aaaaaaaaaaargh! When I run the following code... ---------------------------------------------- char fname[256]; zval **retval; zval *zfname; strcpy(fname, "rand"); zend_printf("Step 1...\n"); MAKE_STD_ZVAL(zfname); zend_printf("Step 2...\n"); ZVAL_STRING(zfname, fname, 1); zend_printf("Step 3...\n"); TSRMLS_FETCH(); zend_printf("Step 4...\n"); if (call_user_function_ex(CG(function_table), NULL, zfname, retval, 0, NULL, 0, NULL TSRMLS_DC) == SUCCESS) { zend_printf("The function has ben called.\n"); } ----------------------------------------------- ... i get: Step 1... Step 2... Step 3... Step 4... Segmentation fault Could someone tell me what I'm doing wrong? Thank you very much, Oriol