Lines Matching refs:zend_ffi_exception_ce
204 static zend_class_entry *zend_ffi_exception_ce; variable
832 zend_throw_error(zend_ffi_exception_ce, "Attempt to perform assign of owned C pointer"); in zend_ffi_zval_to_cdata()
842 zend_throw_error(zend_ffi_exception_ce, "Attempt to perform assign pointer to owned C data"); in zend_ffi_zval_to_cdata()
970 zend_throw_error(zend_ffi_exception_ce, "Cannot call callback"); in zend_ffi_callback_trampoline()
1005 zend_throw_error(zend_ffi_exception_ce, "Variadic function closures are not supported"); in zend_ffi_create_callback()
1010 zend_throw_error(zend_ffi_exception_ce, "Attempt to assign an invalid callback, %s", error); in zend_ffi_create_callback()
1016 …zend_throw_error(zend_ffi_exception_ce, "Attempt to assign an invalid callback, insufficient numbe… in zend_ffi_create_callback()
1022 zend_throw_error(zend_ffi_exception_ce, "Cannot allocate callback"); in zend_ffi_create_callback()
1068 zend_throw_error(zend_ffi_exception_ce, "Cannot prepare callback CIF"); in zend_ffi_create_callback()
1073 zend_throw_error(zend_ffi_exception_ce, "Cannot prepare callback"); in zend_ffi_create_callback()
1110 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_get()
1116 zend_throw_error(zend_ffi_exception_ce, "Only 'cdata' property may be read"); in zend_ffi_cdata_get()
1132 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_set()
1138 zend_throw_error(zend_ffi_exception_ce, "Only 'cdata' property may be set"); in zend_ffi_cdata_set()
1240 …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()
1247 …zend_throw_error(zend_ffi_exception_ce, "Attempt to read undefined field '%s' of C struct/union", … in zend_ffi_cdata_read_field()
1260 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_read_field()
1265 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_read_field()
1273 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_read_field()
1309 …zend_throw_error(zend_ffi_exception_ce, "Attempt to assign field '%s' to uninitialized FFI\\CData … in zend_ffi_cdata_write_field()
1317 …zend_throw_error(zend_ffi_exception_ce, "Attempt to assign field '%s' of non C struct/union", ZSTR… in zend_ffi_cdata_write_field()
1324 …zend_throw_error(zend_ffi_exception_ce, "Attempt to assign undefined field '%s' of C struct/union"… in zend_ffi_cdata_write_field()
1337 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_write_field()
1342 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_write_field()
1349 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_write_field()
1355 zend_throw_error(zend_ffi_exception_ce, "Attempt to assign read-only location"); in zend_ffi_cdata_write_field()
1358 …zend_throw_error(zend_ffi_exception_ce, "Attempt to assign read-only field '%s'", ZSTR_VAL(field_n… in zend_ffi_cdata_write_field()
1384 zend_throw_error(zend_ffi_exception_ce, "C array index out of bounds"); in zend_ffi_cdata_read_dim()
1400 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_read_dim()
1416 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_read_dim()
1421 zend_throw_error(zend_ffi_exception_ce, "Attempt to read element of non C array"); in zend_ffi_cdata_read_dim()
1439 zend_throw_error(zend_ffi_exception_ce, "Cannot add next element to object of type FFI\\CData"); in zend_ffi_cdata_write_dim()
1447 zend_throw_error(zend_ffi_exception_ce, "C array index out of bounds"); in zend_ffi_cdata_write_dim()
1455 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_write_dim()
1464 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_write_dim()
1469 zend_throw_error(zend_ffi_exception_ce, "Attempt to assign element of non C array"); in zend_ffi_cdata_write_dim()
1474 zend_throw_error(zend_ffi_exception_ce, "Attempt to assign read-only location"); in zend_ffi_cdata_write_dim()
1657 zend_throw_error(zend_ffi_exception_ce, "FFI return struct/union is not implemented"); in zend_ffi_return_unsupported()
1659 zend_throw_error(zend_ffi_exception_ce, "FFI return array is not implemented"); in zend_ffi_return_unsupported()
1661 zend_throw_error(zend_ffi_exception_ce, "FFI internal error. Unsupported return type"); in zend_ffi_return_unsupported()
1670 zend_throw_error(zend_ffi_exception_ce, "FFI passing struct/union is not implemented"); in zend_ffi_pass_unsupported()
1672 zend_throw_error(zend_ffi_exception_ce, "FFI passing array is not implemented"); in zend_ffi_pass_unsupported()
1674 zend_throw_error(zend_ffi_exception_ce, "FFI internal error. Unsupported parameter type"); in zend_ffi_pass_unsupported()
1685 …zend_throw_error(zend_ffi_exception_ce, "Passing incompatible argument %d of C function '%s'", n +… in zend_ffi_pass_incompatible()
1694 …zend_throw_error(zend_ffi_exception_ce, "Passing incompatible argument %d of C function '%s', expe… in zend_ffi_pass_incompatible()
1697 …zend_throw_error(zend_ffi_exception_ce, "Passing incompatible argument %d of C function '%s', expe… in zend_ffi_pass_incompatible()
1700 …zend_throw_error(zend_ffi_exception_ce, "Passing incompatible argument %d of C function '%s', expe… in zend_ffi_pass_incompatible()
1712 zend_throw_error(zend_ffi_exception_ce, "Incompatible types when assigning"); in zend_ffi_assign_incompatible()
1721 …zend_throw_error(zend_ffi_exception_ce, "Incompatible types when assigning to type '%s'", buf1.sta… in zend_ffi_assign_incompatible()
1724 …zend_throw_error(zend_ffi_exception_ce, "Incompatible types when assigning to type '%s' from type … in zend_ffi_assign_incompatible()
1727 …zend_throw_error(zend_ffi_exception_ce, "Incompatible types when assigning to type '%s' from PHP '… in zend_ffi_assign_incompatible()
1769 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_compare_objects()
1775 zend_throw_error(zend_ffi_exception_ce, "Comparison of incompatible C types"); in zend_ffi_cdata_compare_objects()
1786 zend_throw_error(zend_ffi_exception_ce, "Attempt to count() on non C array"); in zend_ffi_cdata_count_elements()
1957 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_it_get_current_data()
2015 zend_throw_error(zend_ffi_exception_ce, "Attempt to iterate on non C array"); in zend_ffi_cdata_get_iterator()
2046 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_get_debug_info()
2143 zend_throw_error(zend_ffi_exception_ce, "Attempt to call non C function pointer"); in zend_ffi_cdata_get_closure()
2150 zend_throw_error(zend_ffi_exception_ce, "Attempt to call non C function pointer"); in zend_ffi_cdata_get_closure()
2156 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_cdata_get_closure()
2272 zend_throw_error(zend_ffi_exception_ce, "Comparison of incompatible C types"); in zend_ffi_ctype_compare_objects()
2491 …zend_throw_error(zend_ffi_exception_ce, "Attempt to read undefined C variable '%s'", ZSTR_VAL(var_… in zend_ffi_read_var()
2534 …zend_throw_error(zend_ffi_exception_ce, "Attempt to assign undefined C variable '%s'", ZSTR_VAL(va… in zend_ffi_write_var()
2539 …zend_throw_error(zend_ffi_exception_ce, "Attempt to assign read-only C variable '%s'", ZSTR_VAL(va… in zend_ffi_write_var()
2632 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in zend_ffi_pass_arg()
2733 zend_throw_error(zend_ffi_exception_ce, "Unsupported argument type"); in zend_ffi_pass_var_arg()
2759 …zend_throw_error(zend_ffi_exception_ce, "Incorrect number of arguments for C function '%s', expect… in ZEND_FUNCTION()
2797 zend_throw_error(zend_ffi_exception_ce, "Cannot prepare callback CIF"); in ZEND_FUNCTION()
2804 …zend_throw_error(zend_ffi_exception_ce, "Incorrect number of arguments for C function '%s', expect… in ZEND_FUNCTION()
2834 zend_throw_error(zend_ffi_exception_ce, "Cannot prepare callback CIF"); in ZEND_FUNCTION()
2907 …zend_throw_error(zend_ffi_exception_ce, "Attempt to call undefined C function '%s'", ZSTR_VAL(name… in zend_ffi_get_func()
2944 zend_throw_error(zend_ffi_exception_ce, "Cannot compare FFI objects"); in zend_fake_compare_objects()
2950 …zend_throw_error(zend_ffi_exception_ce, "FFI API is restricted by \"ffi.enable\" configuration dir… in zend_ffi_disabled()
3035 zend_throw_error(zend_ffi_exception_ce, "Failed loading '%s' (%s)", ZSTR_VAL(lib), err); in ZEND_METHOD()
3038 zend_throw_error(zend_ffi_exception_ce, "Failed loading '%s' (Unknown reason)", ZSTR_VAL(lib)); in ZEND_METHOD()
3041 zend_throw_error(zend_ffi_exception_ce, "Failed loading '%s' (%s)", ZSTR_VAL(lib), err); in ZEND_METHOD()
3083 zend_throw_error(zend_ffi_exception_ce, "Failed resolving C variable '%s'", ZSTR_VAL(name)); in ZEND_METHOD()
3093 zend_throw_error(zend_ffi_exception_ce, "Failed resolving C function '%s'", ZSTR_VAL(name)); in ZEND_METHOD()
3313 zend_throw_error(zend_ffi_exception_ce, "Failed loading '%s', file doesn't exist", filename); in zend_ffi_load()
3322 zend_throw_error(zend_ffi_exception_ce, "Failed loading '%s', not a regular file", filename); in zend_ffi_load()
3338 zend_throw_error(zend_ffi_exception_ce, "Failed loading '%s', cannot read_file", filename); in zend_ffi_load()
3369 zend_throw_error(zend_ffi_exception_ce, "Failed loading '%s'", filename); in zend_ffi_load()
3383 zend_throw_error(zend_ffi_exception_ce, "Failed loading '%s' (%s)", lib, err); in zend_ffi_load()
3386 zend_throw_error(zend_ffi_exception_ce, "Failed loading '%s' (Unknown reason)", lib); in zend_ffi_load()
3389 zend_throw_error(zend_ffi_exception_ce, "Failed loading '%s' (%s)", lib, err); in zend_ffi_load()
3420 zend_throw_error(zend_ffi_exception_ce, "Failed resolving C variable '%s'", ZSTR_VAL(name)); in zend_ffi_load()
3437 zend_throw_error(zend_ffi_exception_ce, "Failed resolving C function '%s'", ZSTR_VAL(name)); in zend_ffi_load()
3587 …zend_throw_error(zend_ffi_exception_ce, "FFI::load() doesn't work in conjunction with \"opcache.pr… in ZEND_METHOD()
3615 zend_throw_error(zend_ffi_exception_ce, "Failed loading scope '%s'", ZSTR_VAL(scope_name)); in ZEND_METHOD()
3900 zend_throw_error(zend_ffi_exception_ce, "Cannot instantiate FFI\\CData of zero size"); in ZEND_METHOD()
3937 zend_throw_error(zend_ffi_exception_ce, "NULL pointer dereference"); in ZEND_METHOD()
3952 zend_throw_error(zend_ffi_exception_ce, "free() non a C pointer"); in ZEND_METHOD()
4114 zend_throw_error(zend_ffi_exception_ce, "attempt to cast to larger type"); in ZEND_METHOD()
4264 zend_throw_error(zend_ffi_exception_ce, "Array of functions is not allowed"); in ZEND_METHOD()
4267 zend_throw_error(zend_ffi_exception_ce, "Only the leftmost array can be undimensioned"); in ZEND_METHOD()
4270 zend_throw_error(zend_ffi_exception_ce, "Array of void type is not allowed"); in ZEND_METHOD()
4273 zend_throw_error(zend_ffi_exception_ce, "Array of incomplete type is not allowed"); in ZEND_METHOD()
4294 zend_throw_error(zend_ffi_exception_ce, "negative array index"); in ZEND_METHOD()
4298 zend_throw_error(zend_ffi_exception_ce, "only the leftmost array can be undimensioned"); in ZEND_METHOD()
4348 …zend_throw_error(zend_ffi_exception_ce, "FFI::addr() cannot create a reference to a temporary poin… in ZEND_METHOD()
4456 zend_throw_error(zend_ffi_exception_ce, "Attempt to write over data boundary"); in ZEND_METHOD()
4465 zend_throw_error(zend_ffi_exception_ce, "Attempt to read over string boundary"); in ZEND_METHOD()
4476 zend_throw_error(zend_ffi_exception_ce, "Attempt to read over data boundary"); in ZEND_METHOD()
4509 zend_throw_error(zend_ffi_exception_ce, "attempt to read over string boundary"); in ZEND_METHOD()
4520 zend_throw_error(zend_ffi_exception_ce, "attempt to read over data boundary"); in ZEND_METHOD()
4533 zend_throw_error(zend_ffi_exception_ce, "Attempt to read over string boundary"); in ZEND_METHOD()
4544 zend_throw_error(zend_ffi_exception_ce, "Attempt to read over data boundary"); in ZEND_METHOD()
4586 zend_throw_error(zend_ffi_exception_ce, "attempt to write over data boundary"); in ZEND_METHOD()
4619 zend_throw_error(zend_ffi_exception_ce, "attempt to read over data boundary"); in ZEND_METHOD()
4630 zend_throw_error(zend_ffi_exception_ce, "FFI\\Cdata is not a C string"); in ZEND_METHOD()
4659 zend_throw_error(zend_ffi_exception_ce, "FFI\\Cdata is not a pointer"); in ZEND_METHOD()
4755 zend_throw_error(zend_ffi_exception_ce, "FFI\\CType is not an enumeration"); in ZEND_METHOD()
4774 zend_throw_error(zend_ffi_exception_ce, "FFI\\CType is not an array"); in ZEND_METHOD()
4795 zend_throw_error(zend_ffi_exception_ce, "FFI\\CType is not an array"); in ZEND_METHOD()
4814 zend_throw_error(zend_ffi_exception_ce, "FFI\\CType is not a pointer"); in ZEND_METHOD()
4838 zend_throw_error(zend_ffi_exception_ce, "FFI\\CType is not a structure"); in ZEND_METHOD()
4864 zend_throw_error(zend_ffi_exception_ce, "FFI\\CType is not a structure"); in ZEND_METHOD()
4870 zend_throw_error(zend_ffi_exception_ce, "Wrong field name"); in ZEND_METHOD()
4891 zend_throw_error(zend_ffi_exception_ce, "FFI\\CType is not a structure"); in ZEND_METHOD()
4897 zend_throw_error(zend_ffi_exception_ce, "Wrong field name"); in ZEND_METHOD()
4918 zend_throw_error(zend_ffi_exception_ce, "FFI\\CType is not a function"); in ZEND_METHOD()
4937 zend_throw_error(zend_ffi_exception_ce, "FFI\\CType is not a function"); in ZEND_METHOD()
4958 zend_throw_error(zend_ffi_exception_ce, "FFI\\CType is not a function"); in ZEND_METHOD()
4978 zend_throw_error(zend_ffi_exception_ce, "FFI\\CType is not a function"); in ZEND_METHOD()
4983 zend_throw_error(zend_ffi_exception_ce, "Wrong argument number"); in ZEND_METHOD()
4989 zend_throw_error(zend_ffi_exception_ce, "Wrong argument number"); in ZEND_METHOD()
5064 …zend_throw_error(zend_ffi_exception_ce, "Failed loading '%s', bad %s define", filename, target_nam… in zend_ffi_parse_directives()
5073 …zend_throw_error(zend_ffi_exception_ce, "Failed loading '%s', %s defined twice", filename, target_… in zend_ffi_parse_directives()
5087 …zend_throw_error(zend_ffi_exception_ce, "Failed loading '%s', bad %s define", filename, target_nam… in zend_ffi_parse_directives()
5216 zend_throw_error(zend_ffi_exception_ce, "Use after free()"); in zend_ffi_use_after_free()
5451 zend_ffi_exception_ce = register_class_FFI_Exception(zend_ce_error);
5453 zend_ffi_parser_exception_ce = register_class_FFI_ParserException(zend_ffi_exception_ce);