This commit is contained in:
CismonX 2019-05-27 17:00:04 +08:00
parent b64ffbd9b5
commit b08038d91c
3 changed files with 12 additions and 2 deletions

View File

@ -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);

View File

@ -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)
);
}
}

View File

@ -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;
}