If I define/declare php class methods via:
INIT_CLASS_ENTRY(ce, phpclassname, myclassmethods);
where myclassmethods is defined as eg:
function_entry myclass::myclassmethods[]
= {
PHP_ME(myclass, __construct, arginfo_Guid__construct, ZEND_ACC_PUBLIC)
PHP_ME(myclass, getValue, NULL, ZE
C++ Templates: The complete guide (David Vandevoorde)
addresses the issue.
First workaround is simply to include what would normally be
the .cpp code in the .h header. Not sure that's ideal, but it works,
so that's the issue resolved, (or sidelined for now).
Apparently there's also export, but fi
The saga continues, with progress towards a (hoped for) marriage
between Php and C++ that 'looks like' C++ to the extension developer.
I'm exploring a templated version of PhpClassFactory (vs possible root
PhpClassFactoryObject) which is making progress, but a linking error
not dissimilar to sepa
Answering my own question/observation, the following workarounds allow
use of char* name="myclass"; and overbuffered char name[100] = "myclass";
both of which fail normally since INIT_CLASS_ENTRY uses sizeof() not strlen()
// for various char* or string params
char* phpclassname = "myclass";
char
I was surprised to find that my class entry failed when I tried to pass the
class name as a parameter. Two common styles (char *myclassname = "myclass";
and (over-buffered) char myclassname[100] = "myclass";) both fail with
INIT_CLASS_ENTRY for a reason that becomes apparent when you look
at the