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

From: Date: Mon, 28 Feb 2000 14:58:40 +0000
Subject: Re: [PHP4BETA] MAKE_STD_ZVAL(): when???
References: 1 2 3 4  Groups: php.version4 
Request: Send a blank email to php-version4+get-11129@lists.php.net to get a copy of this message
Andrei, As soon as you have some API docs, I'd love to see them. I've written an extension to allow the use of Locomotive as a Java applications server with PHP .... it works, but I'm fairly certain that because I was (and still am) in the dark concerning the Zend API, that it leaks memory, couldn't possibly be thread-safe, and could be vastly improved. Please let me know ... Thanks, Paul Andrei Zmievski wrote: > On Mon, 28 Feb 2000, Chuck Hagenbuch wrote: > > Quoting Andrei Zmievski <andrei@ispi.net>: > > > > > 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. > > > > Okay, that makes sense. Do you call MAKE_STD_ZVAL on every other zval that > > goes _into_ a return value (array or object member), then? > > You call MAKE_STD_ZVAL() on any _new_ zval. You don't need to do it on a > zval * if it refers to another zval in the symbol table, for example. > > > Are there plans to update CODING_STANDARDS soon (it still refers to php3)? > > If I were to take a shot at re-writing it for php4, would one of the core > > developers be willing to look over it and correct my misunderstandings? > > Well, I'm going to be writing some API docs fairly soon as a consequence > of having to give a presentation on how to write PHP extensions at the > O'Reilly conference. Feel free to update CODING_STANDARDS, though, if > you want to. > > -Andrei > * If it ain't broken, it doesn't have enough features yet. * > > -- > PHP 4.0 Beta Mailing List <http://www.php.net/version4/> > To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net > For additional commands, e-mail: php4beta-help@lists.php.net > To contact the list administrators, e-mail: php4beta-admin@lists.php.net > > ------------------------------------------------------------------------- > This email server is running an evaluation copy of the MailShield anti- > spam software. Please contact your email administrator if you have any > questions about this message. MailShield product info: www.mailshield.com

« previous php.version4 (#11129) next »