`mysqli_get_client_info()` and `mysqli_thread_safe()` can also be
called as methods, so we have to cater to this when parsing the
arguments.
Get MySQL client info */
PHP_FUNCTION(mysqli_get_client_info)
{
- if (zend_parse_parameters_none() == FAILURE) {
+ zval *mysql_link;
+
+ if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "O", &mysql_link, mysqli_link_class_entry) == FAILURE) {
return;
}
Return whether thread safety is given or not */
PHP_FUNCTION(mysqli_thread_safe)
{
- if (zend_parse_parameters_none() == FAILURE) {
+ zval *mysql_link;
+
+ if (zend_parse_method_parameters(ZEND_NUM_ARGS(), getThis(), "O", &mysql_link, mysqli_link_class_entry) == FAILURE) {
return;
}