You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just need some guidance on the best way to find the type of a Php::Value please.
Here is a snippet of old code in used with zend:
zval *zvalue =....;
switch (Z_TYPE_P(zvalue)) {
case IS_BOOL:
.....
break;
case IS_LONG:
......
break;
case IS_STRING:
.....
break;
case IS_NULL:
......
break;
case IS_DOUBLE:
....
To do the equivalent in In PHP-CPP I have started by using Php:Type. But I am not sure if this is the best approach.
Php::Value PHP_SaxonProcessor::createAtomicValue(Php::Parameters ¶ms)
{
Hi,
Just need some guidance on the best way to find the type of a Php::Value please.
Here is a snippet of old code in used with zend:
zval *zvalue =....;
switch (Z_TYPE_P(zvalue)) {
case IS_BOOL:
.....
break;
case IS_LONG:
......
break;
case IS_STRING:
.....
break;
case IS_NULL:
......
break;
case IS_DOUBLE:
....
To do the equivalent in In PHP-CPP I have started by using Php:Type. But I am not sure if this is the best approach.
Php::Value PHP_SaxonProcessor::createAtomicValue(Php::Parameters ¶ms)
{
Php::Type _type = ((Php::Value)params[0]).type();
......
...
}
The text was updated successfully, but these errors were encountered: