Replaced zendi_convert_to_long() with _zval_get_long_func()