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
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  
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.

 



Reply via email to