Lines Matching refs:zend_ffi_exception_ce
191 static zend_class_entry *zend_ffi_exception_ce; variable
763 zend_throw_error(zend_ffi_exception_ce, "Attempt to perform assign of owned C pointer"); in zend_ffi_zval_to_cdata()
773 zend_throw_error(zend_ffi_exception_ce, "Attempt to perform assign pointer to owned C data"); in zend_ffi_zval_to_cdata()
908 zend_throw_error(zend_ffi_exception_ce, "Cannot call callback"); in zend_ffi_callback_trampoline()
943 zend_throw_error(zend_ffi_exception_ce, "Variadic function closures are not supported"); in zend_ffi_create_callback()
948 zend_throw_error(zend_ffi_exception_ce, "Attempt to assign an invalid callback, %s", error); in zend_ffi_create_callback()
954 …zend_throw_error(zend_ffi_exception_ce, "Attempt to assign an invalid callback, insufficient numbe… in zend_ffi_create_callback()
960 zend_throw_error(zend_ffi_exception_ce, "Cannot allocate callback"); in zend_ffi_create_callback()
1006 zend_throw_error(zend_ffi_exception_ce, "Cannot prepare callback CIF"); in zend_ffi_create_callback()
1011 zend_throw_error(zend_ffi_exception_ce, "Cannot prepare callback"); in zend_ffi_create_callback()
1048 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_get()
1054 zend_throw_error(zend_ffi_exception_ce, "Only 'cdata' property may be read"); in zend_ffi_cdata_get()
1070 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_set()
1076 zend_throw_error(zend_ffi_exception_ce, "Only 'cdata' property may be set"); in zend_ffi_cdata_set()
1177 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_read_field()
1182 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_read_field()
1188 …zend_throw_error(zend_ffi_exception_ce, "Attempt to read field '%s' of non C struct/union", ZSTR_V… in zend_ffi_cdata_read_field()
1195 …zend_throw_error(zend_ffi_exception_ce, "Attempt to read undefined field '%s' of C struct/union", … in zend_ffi_cdata_read_field()
1207 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_read_field()
1246 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_write_field()
1251 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_write_field()
1257 …zend_throw_error(zend_ffi_exception_ce, "Attempt to assign field '%s' of non C struct/union", ZSTR… in zend_ffi_cdata_write_field()
1264 …zend_throw_error(zend_ffi_exception_ce, "Attempt to assign undefined field '%s' of C struct/union"… in zend_ffi_cdata_write_field()
1276 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_write_field()
1282 zend_throw_error(zend_ffi_exception_ce, "Attempt to assign read-only location"); in zend_ffi_cdata_write_field()
1285 …zend_throw_error(zend_ffi_exception_ce, "Attempt to assign read-only field '%s'", ZSTR_VAL(field_n… in zend_ffi_cdata_write_field()
1311 zend_throw_error(zend_ffi_exception_ce, "C array index out of bounds"); in zend_ffi_cdata_read_dim()
1327 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_read_dim()
1343 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_read_dim()
1348 zend_throw_error(zend_ffi_exception_ce, "Attempt to read element of non C array"); in zend_ffi_cdata_read_dim()
1366 zend_throw_error(zend_ffi_exception_ce, "Cannot add next element to object of type FFI\\CData"); in zend_ffi_cdata_write_dim()
1374 zend_throw_error(zend_ffi_exception_ce, "C array index out of bounds"); in zend_ffi_cdata_write_dim()
1382 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_write_dim()
1391 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_write_dim()
1396 zend_throw_error(zend_ffi_exception_ce, "Attempt to assign element of non C array"); in zend_ffi_cdata_write_dim()
1401 zend_throw_error(zend_ffi_exception_ce, "Attempt to assign read-only location"); in zend_ffi_cdata_write_dim()
1585 zend_throw_error(zend_ffi_exception_ce, "FFI return struct/union is not implemented"); in zend_ffi_return_unsupported()
1587 zend_throw_error(zend_ffi_exception_ce, "FFI return array is not implemented"); in zend_ffi_return_unsupported()
1589 zend_throw_error(zend_ffi_exception_ce, "FFI internal error. Unsupported return type"); in zend_ffi_return_unsupported()
1598 zend_throw_error(zend_ffi_exception_ce, "FFI passing struct/union is not implemented"); in zend_ffi_pass_unsupported()
1600 zend_throw_error(zend_ffi_exception_ce, "FFI passing array is not implemented"); in zend_ffi_pass_unsupported()
1602 zend_throw_error(zend_ffi_exception_ce, "FFI internal error. Unsupported parameter type"); in zend_ffi_pass_unsupported()
1613 …zend_throw_error(zend_ffi_exception_ce, "Passing incompatible argument %d of C function '%s'", n +… in zend_ffi_pass_incompatible()
1622 …zend_throw_error(zend_ffi_exception_ce, "Passing incompatible argument %d of C function '%s', expe… in zend_ffi_pass_incompatible()
1625 …zend_throw_error(zend_ffi_exception_ce, "Passing incompatible argument %d of C function '%s', expe… in zend_ffi_pass_incompatible()
1628 …zend_throw_error(zend_ffi_exception_ce, "Passing incompatible argument %d of C function '%s', expe… in zend_ffi_pass_incompatible()
1640 zend_throw_error(zend_ffi_exception_ce, "Incompatible types when assigning"); in zend_ffi_assign_incompatible()
1649 …zend_throw_error(zend_ffi_exception_ce, "Incompatible types when assigning to type '%s'", buf1.sta… in zend_ffi_assign_incompatible()
1652 …zend_throw_error(zend_ffi_exception_ce, "Incompatible types when assigning to type '%s' from type … in zend_ffi_assign_incompatible()
1655 …zend_throw_error(zend_ffi_exception_ce, "Incompatible types when assigning to type '%s' from PHP '… in zend_ffi_assign_incompatible()
1697 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_compare_objects()
1703 zend_throw_error(zend_ffi_exception_ce, "Comparison of incompatible C types"); in zend_ffi_cdata_compare_objects()
1714 zend_throw_error(zend_ffi_exception_ce, "Attempt to count() on non C array"); in zend_ffi_cdata_count_elements()
1885 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_it_get_current_data()
1943 zend_throw_error(zend_ffi_exception_ce, "Attempt to iterate on non C array"); in zend_ffi_cdata_get_iterator()
1974 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_get_debug_info()
2069 zend_throw_error(zend_ffi_exception_ce, "Attempt to call non C function pointer"); in zend_ffi_cdata_get_closure()
2076 zend_throw_error(zend_ffi_exception_ce, "Attempt to call non C function pointer"); in zend_ffi_cdata_get_closure()
2082 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_get_closure()
2194 zend_throw_error(zend_ffi_exception_ce, "Comparison of incompatible C types"); in zend_ffi_ctype_compare_objects()
2406 …zend_throw_error(zend_ffi_exception_ce, "Attempt to read undefined C variable '%s'", ZSTR_VAL(var_… in zend_ffi_read_var()
2450 …zend_throw_error(zend_ffi_exception_ce, "Attempt to assign undefined C variable '%s'", ZSTR_VAL(va… in zend_ffi_write_var()
2455 …zend_throw_error(zend_ffi_exception_ce, "Attempt to assign read-only C variable '%s'", ZSTR_VAL(va… in zend_ffi_write_var()
2548 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_pass_arg()
2649 zend_throw_error(zend_ffi_exception_ce, "Unsupported argument type"); in zend_ffi_pass_var_arg()
2675 …zend_throw_error(zend_ffi_exception_ce, "Incorrect number of arguments for C function '%s', expect… in ZEND_FUNCTION()
2713 zend_throw_error(zend_ffi_exception_ce, "Cannot prepare callback CIF"); in ZEND_FUNCTION()
2720 …zend_throw_error(zend_ffi_exception_ce, "Incorrect number of arguments for C function '%s', expect… in ZEND_FUNCTION()
2750 zend_throw_error(zend_ffi_exception_ce, "Cannot prepare callback CIF"); in ZEND_FUNCTION()
2819 …zend_throw_error(zend_ffi_exception_ce, "Attempt to call undefined C function '%s'", ZSTR_VAL(name… in zend_ffi_get_func()
2855 …zend_throw_error(zend_ffi_exception_ce, "FFI API is restricted by \"ffi.enable\" configuration dir… in zend_ffi_disabled()
2901 zend_throw_error(zend_ffi_exception_ce, "Failed loading '%s'", ZSTR_VAL(lib)); in ZEND_METHOD()
2940 zend_throw_error(zend_ffi_exception_ce, "Failed resolving C variable '%s'", ZSTR_VAL(name)); in ZEND_METHOD()
2950 zend_throw_error(zend_ffi_exception_ce, "Failed resolving C function '%s'", ZSTR_VAL(name)); in ZEND_METHOD()
3170 zend_throw_error(zend_ffi_exception_ce, "Failed loading '%s', file doesn't exist", filename); in zend_ffi_load()
3179 zend_throw_error(zend_ffi_exception_ce, "Failed loading '%s', not a regular file", filename); in zend_ffi_load()
3191 zend_throw_error(zend_ffi_exception_ce, "Failed loading '%s', cannot read_file", filename); in zend_ffi_load()
3222 zend_throw_error(zend_ffi_exception_ce, "Failed loading '%s'", filename); in zend_ffi_load()
3233 zend_throw_error(zend_ffi_exception_ce, "Failed loading '%s'", lib); in zend_ffi_load()
3262 zend_throw_error(zend_ffi_exception_ce, "Failed resolving C variable '%s'", ZSTR_VAL(name)); in zend_ffi_load()
3279 zend_throw_error(zend_ffi_exception_ce, "Failed resolving C function '%s'", ZSTR_VAL(name)); in zend_ffi_load()
3429 …zend_throw_error(zend_ffi_exception_ce, "FFI::load() doesn't work in conjunction with \"opcache.pr… in ZEND_METHOD()
3457 zend_throw_error(zend_ffi_exception_ce, "Failed loading scope '%s'", ZSTR_VAL(scope_name)); in ZEND_METHOD()
3736 zend_throw_error(zend_ffi_exception_ce, "Cannot instantiate FFI\\CData of zero size"); in ZEND_METHOD()
3773 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in ZEND_METHOD()
3788 zend_throw_error(zend_ffi_exception_ce, "free() non a C pointer"); in ZEND_METHOD()
3944 zend_throw_error(zend_ffi_exception_ce, "attempt to cast to larger type"); in ZEND_METHOD()
4088 zend_throw_error(zend_ffi_exception_ce, "Array of functions is not allowed"); in ZEND_METHOD()
4091 zend_throw_error(zend_ffi_exception_ce, "Only the leftmost array can be undimensioned"); in ZEND_METHOD()
4094 zend_throw_error(zend_ffi_exception_ce, "Array of void type is not allowed"); in ZEND_METHOD()
4097 zend_throw_error(zend_ffi_exception_ce, "Array of incomplete type is not allowed"); in ZEND_METHOD()
4118 zend_throw_error(zend_ffi_exception_ce, "negative array index"); in ZEND_METHOD()
4122 zend_throw_error(zend_ffi_exception_ce, "only the leftmost array can be undimensioned"); in ZEND_METHOD()
4274 zend_throw_error(zend_ffi_exception_ce, "Attempt to write over data boundary"); in ZEND_METHOD()
4283 zend_throw_error(zend_ffi_exception_ce, "Attempt to read over string boundary"); in ZEND_METHOD()
4294 zend_throw_error(zend_ffi_exception_ce, "Attempt to read over data boundary"); in ZEND_METHOD()
4327 zend_throw_error(zend_ffi_exception_ce, "attempt to read over string boundary"); in ZEND_METHOD()
4338 zend_throw_error(zend_ffi_exception_ce, "attempt to read over data boundary"); in ZEND_METHOD()
4351 zend_throw_error(zend_ffi_exception_ce, "Attempt to read over string boundary"); in ZEND_METHOD()
4362 zend_throw_error(zend_ffi_exception_ce, "Attempt to read over data boundary"); in ZEND_METHOD()
4404 zend_throw_error(zend_ffi_exception_ce, "attempt to write over data boundary"); in ZEND_METHOD()
4437 zend_throw_error(zend_ffi_exception_ce, "attempt to read over data boundary"); in ZEND_METHOD()
4448 zend_throw_error(zend_ffi_exception_ce, "FFI\\Cdata is not a C string"); in ZEND_METHOD()
4477 zend_throw_error(zend_ffi_exception_ce, "FFI\\Cdata is not a pointer"); in ZEND_METHOD()
4523 zend_throw_error(zend_ffi_exception_ce, "Failed loading '%s', bad FFI_SCOPE define", filename); in zend_ffi_parse_directives()
4532 … zend_throw_error(zend_ffi_exception_ce, "Failed loading '%s', FFI_SCOPE defined twice", filename); in zend_ffi_parse_directives()
4546 … zend_throw_error(zend_ffi_exception_ce, "Failed loading '%s', bad FFI_SCOPE define", filename); in zend_ffi_parse_directives()
4570 zend_throw_error(zend_ffi_exception_ce, "Failed loading '%s', bad FFI_LIB define", filename); in zend_ffi_parse_directives()
4579 … zend_throw_error(zend_ffi_exception_ce, "Failed loading '%s', FFI_LIB defined twice", filename); in zend_ffi_parse_directives()
4593 zend_throw_error(zend_ffi_exception_ce, "Failed loading '%s', bad FFI_LIB define", filename); in zend_ffi_parse_directives()
4727 zend_throw_error(zend_ffi_exception_ce, "Use after free()"); in zend_ffi_use_after_free()
4941 zend_ffi_exception_ce = zend_register_internal_class_ex(&ce, zend_ce_error);
4944 zend_ffi_parser_exception_ce = zend_register_internal_class_ex(&ce, zend_ffi_exception_ce);