Help, please! The Zend API is driving me mad!!!

From: Date: Tue, 17 Jun 2003 16:29:14 +0000
Subject: Help, please! The Zend API is driving me mad!!!
Groups: php.internals 
Request: Send a blank email to internals+get-2352@lists.php.net to get a copy of this message
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

« previous php.internals (#2352) next »