fix
This commit is contained in:
parent
b64ffbd9b5
commit
b08038d91c
|
@ -160,7 +160,11 @@ namespace php_arma
|
|||
|
||||
void base_init()
|
||||
{
|
||||
base_ce = interface_register<base_php_name>(zend_ce_countable);
|
||||
base_ce = interface_register<base_php_name>(
|
||||
#if PHP_VERSION_ID >= 70200
|
||||
zend_ce_countable
|
||||
#endif
|
||||
);
|
||||
}
|
||||
|
||||
PHP_ARMA_INSTANTIATE(base, mat);
|
||||
|
|
|
@ -81,7 +81,8 @@ namespace php_arma
|
|||
);
|
||||
#endif // ARMA_USE_HDF5
|
||||
const_declare(features_ce = abstract_class_register<features_php_name>(),
|
||||
std::tuple("OPERATORS", features::operators)
|
||||
std::tuple("OPERATORS", features::operators),
|
||||
std::tuple("HDF5", features::hdf5)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,4 +15,9 @@ abstract class Features
|
|||
* Whether operator overloading is supported.
|
||||
*/
|
||||
const OPERATORS = true;
|
||||
|
||||
/**
|
||||
* Whether data can be saved into or loaded from files in HDF5 format.
|
||||
*/
|
||||
const HDF5 = true;
|
||||
}
|
||||
|
|
Reference in New Issue
Block a user