[PHP-DEV] Template Linkage for a PhpClassFactory in C++

2006-03-13 Thread an . dromeda
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

[PHP-DEV] RESOLVED: Template Linkage for a PhpClassFactory in C++

2006-03-13 Thread an . dromeda
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

[PHP-DEV] INFO: INIT_CLASS_ENTRY fails on various char entry formats

2006-03-12 Thread an . dromeda
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

[PHP-DEV] RESOLVED: INFO: INIT_CLASS_ENTRY fails on various char entry formats

2006-03-12 Thread an . dromeda
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