Re: INTERNAL FEATURE request

From: Date: Fri, 19 Jul 2002 12:52:23 +0000
Subject: Re: INTERNAL FEATURE request
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-86026@lists.php.net to get a copy of this message
Sam, i dont know if this will happen in ZE1, but it exists already in ZE2. my workaround was to prepend a header containing a resource id and the corresponding ZVAL wrapper to all my structs, and use some funky macros. its ugly, but it works. "Sam Liddicott" <sam.liddicott@ananova.com> wrote in message news:D38A0FCD5830E848992DF2D4AF5F6F4F96B685@conwy.leeds.ananova.internal... > Please can we have a magic "cookie" resource value or zval associated with > PHP objects accessable via the C API? > > This would be used when the PHP class it wrapping a C++ class (such as one > linked in via swig ( www.swig.org <http://www.swig.org> > )) so there was a > cheap way to find which C++ object the php object was wrapping. > > Currently we use _cPtr element of the wrapped object but it is open to > freakery by user scripts. > > Thanks > > SAm > _____ > > > Samuel Liddicott > Support Consultant > sam@ananova.com <mailto:sam@ananova.com> > Direct Dial: +44 (0)113 367 4523 > Fax: +44 (0)113 367 4680 > Switchboard: +44 (0)113 367 4600 > > Ananova Limited > Marshall Mill > Marshall Street > Leeds > LS11 9YJ > > http://www.ananova.com > > Registered Office: > St James Court > Great Park Road > Almondsbury Park > Bradley Stoke > Bristol BS32 4QJ > Registered in England No.2858918 > > The information transmitted is intended only for the person or entity to > which it is addressed and may contain confidential and/or privileged > material. Any review, retransmission, dissemination or other use of, or > taking of any action in reliance upon, this information by persons or > entities other than the intended recipient is prohibited. If you receive > this in error, please contact the sender and delete the material from any > computer. > > > > > >

« previous php.dev (#86026) next »