Ref count compatibility with PHP < 5.3
| From: | Pieter de Zwart | Date: | Tue, 28 Dec 2010 20:32:06 +0000 |
| Subject: | Ref count compatibility with PHP < 5.3 | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-7891@lists.php.net to get a copy of this message | ||
John Skopis just sent me a patch for the AMQP extension for compatibility
with PHP < 5.3. The patch is attached.
In the AMQP codebase, I am using Z_ADDREF_P. Is this the wrong way to handle
ref counts? Or is the attached patch the standard way of handling BC for
newer extensions?
I just want to follow standard practices, whatever they are =)
Thanks!
Pieter