Re: Accessing another extensions resource.. possible?

From: Date: Sat, 13 Aug 2005 16:10:19 +0000
Subject: Re: Accessing another extensions resource.. possible?
References: 1  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-2752@lists.php.net to get a copy of this message
On Sat, 13 Aug 2005 10:06:59 -0600 sean@reinvigorate.net ("Sean") wrote: > I have a question regarding resource management in PHP that I > would absolutely appreciate any insight on- > > Can extension A get access to a resource created by extension B? > For example- if I wanted to add in a new image function, could I > get access to the GD extension's gdImage struct? > > I wrote an improved Breshenham line algorithm in php that renders > the most beautiful antialiased lines I've ever seen. The problem > is the php implementation for it is UBER slow. Hence I'm looking > into writing my own extension to give it a speed boost. But I'm > having a hard time finding the right approach to this. Mind to send it? I have many algorithms to draw lines, the one I put in gd for antialiased lines is a compromised between speed and quality. Until the last official GD releases (do not remember which), they used their own, they backported then the one I use in php. A kind of proof that the compromise was good. > 2. Inject my line drawing function into gd.h and gd.c (so it'd be > a modified version of the gd extension that comes with php) it's already the case. For now, it's not going to be more the case from 6.0. --Pierre

« previous php.pecl.dev (#2752) next »