Php::Value x(123);
x == "123"; // segfault, because ::strcmp(NULL, "123") is invoked
Php::Value::rawValue() is used in PHP-CPP code in places, where proper conversion to string should be done,
that leads to errorneous behaviour (typically segfaults) when non-string value is passed from PHP and is not type checked
in extension based on PHP-CPP. This type checking is job of PHP-CPP in my opinion.
Php::Value::rawValue() is used in PHP-CPP code in places, where proper conversion to string should be done, that leads to errorneous behaviour (typically segfaults) when non-string value is passed from PHP and is not type checked in extension based on PHP-CPP. This type checking is job of PHP-CPP in my opinion.