On Tue, 16 Jan 2007, Arnold Daniels wrote: > Yes sure you are right, but there was some other code which I replaced > with printf to show where the problem lies. The printf not in the actual > code, only in the e-mail :). > I'm very sure that the problem lies in the ret != NULL. Function > zend_parse_parameters() puts a strange value in ret, when the argument > is not supplied in PHP. But I'll try gdb to see if I can find where the > problem is coming from.
When an argument is not supplied, zend_pp doesn't touch the value. You would need to initialize it in your variable declaration, such as : char *ret = NULL; regards, Derick -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php