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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php