Storing a pointer to a c++ class instance as a resource in an object, and retrieving it

From: Date: Sat, 28 Sep 2013 21:57:26 +0000
Subject: Storing a pointer to a c++ class instance as a resource in an object, and retrieving it
Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-11128@lists.php.net to get a copy of this message
Hello there. I am porting easywsclient to PHP. it is a small PHP library. So far, I managed to port the constructor function, and it will connect just fine. However, that is the only thing it does rightnow. My idea was, to store the class instance as pointer/resource inside the object. But, how do I get this pointer from the object again? I have posted the current code on github: https://github.com/IngwiePhoenix/php-easywsclient My platform is Mac OS X Some additional informations: Kevins-MacBook-Air:php-ewsc Ingwie$ g++ --version i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. xCode + Devtools are installed. My PHP source-tree is php-5.5.3 Kind regards, Ingwie.

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