Re: Publishing my PHP extension to PECL
| From: | Johannes Schlüter | Date: | Mon, 08 Sep 2014 23:24:23 +0000 |
| Subject: | Re: Publishing my PHP extension to PECL | ||
| References: | 1 2 3 4 5 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-12260@lists.php.net to get a copy of this message | ||
On Mon, 2014-09-08 at 16:12 -0700, Boro Sitnikovski wrote:
> However, about the other remark, xmp_create_context() can return NULL
> in case of alloc failure, as shown here
>
> http://fossies.org/dox/libxmp-4.2.8/control_8c_source.html#l00036
> (it
> seems to not be documented).
Alright! I had just a quick look on the code and docs and it looked
suspicious. With xmp_context already being a pointer you eventually
might directly put that pointer into the resource and safe the extra
allocation ... but I didn't look closer.
johannes