Re: [PHP4BETA] MAKE_STD_ZVAL(): when???

From: Date: Mon, 28 Feb 2000 14:08:01 +0000
Subject: Re: [PHP4BETA] MAKE_STD_ZVAL(): when???
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-11123@lists.php.net to get a copy of this message
On Sun, 27 Feb 2000, chagenbu@wso.williams.edu wrote: > Can someone explain to me when you should call MAKE_STD_ZVAL, and when you > shouldn't? mcal_next_recurrence wasn't working (it was returning NULL) because I > had: > > MAKE_STD_ZVAL(return_value); > object_init(return_value); > > Taking out the MAKE_STD_ZVAL made it magically work again. I have a feeling I'm > going to run into these problems again at some point if I don't know the whys... You _never_ call MAKE_STD_ZVAL() on return_value. It's already preallocated for you. MAKE_STD_ZVAL() is used to allocate a new zval. -Andrei "Claiming Java is easier than C++ is like saying that K2 is shorter than Everest." -- Larry O'Brien (editor, Software Development)

« previous php.version4 (#11123) next »