/php-src/ext/intl/converter/ |
H A D | converter.c | 32 intl_error error; member 46 #define THROW_UFAILURE(obj, fname, error) php_converter_throw_failure(obj, error, \ argument 110 zval *error; in PHP_METHOD() local 116 Z_PARAM_ZVAL(error) in PHP_METHOD() 126 zval *source, *error; in PHP_METHOD() local 133 Z_PARAM_ZVAL(error) in PHP_METHOD() 357 error = U_ZERO_ERROR; in php_converter_set_callbacks() 638 if (U_FAILURE(error) && error != U_BUFFER_OVERFLOW_ERROR) { in php_converter_do_convert() 645 error = U_ZERO_ERROR; in php_converter_do_convert() 656 if (U_FAILURE(error) && error != U_BUFFER_OVERFLOW_ERROR) { in php_converter_do_convert() [all …]
|
/php-src/ext/libxml/tests/ |
H A D | 002.phpt | 25 foreach ($errors as $error) { 26 echo display_xml_error($error, $xml); 33 function display_xml_error($error, $xml) 35 $return = $xml[$error->line - 1] . "\n"; 38 switch ($error->level) { 40 $return .= "Warning $error->code: "; 43 $return .= "Error $error->code: "; 46 $return .= "Fatal Error $error->code: "; 50 $return .= trim($error->message) . "\n Line: $error->line" . "\n Column: $error->column"; 52 if ($error->file) { [all …]
|
/php-src/ext/intl/tests/ |
H A D | calendar_before_after_error.phpt | 14 echo "error: $errno, $errstr\n"; 21 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 26 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 32 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 37 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 63 error: 0, IntlCalendar::after() expects exactly 1 argument, 0 given 65 error: 0, IntlCalendar::before() expects exactly 1 argument, 0 given 71 error: 0, IntlCalendar::after() expects exactly 1 argument, 2 given 73 error: 0, IntlCalendar::before() expects exactly 1 argument, 2 given 75 error: 0, intlcal_after() expects exactly 2 arguments, 1 given [all …]
|
H A D | normalizer_normalize.phpt | 98 is in form 'UNORM_FORM_C'? = yes error info: 'U_ZERO_ERROR' (0) 100 is in form 'UNORM_FORM_C'? = yes error info: 'U_ZERO_ERROR' (0) 102 is in form 'UNORM_FORM_C'? = no error info: 'U_ZERO_ERROR' (0) 104 is in form 'UNORM_FORM_C'? = no error info: 'U_ZERO_ERROR' (0) 106 is in form 'UNORM_FORM_C'? = yes error info: 'U_ZERO_ERROR' (0) 108 is in form 'UNORM_FORM_C'? = yes error info: 'U_ZERO_ERROR' (0) 110 is in form 'UNORM_FORM_D'? = yes error info: 'U_ZERO_ERROR' (0) 112 is in form 'UNORM_FORM_D'? = no error info: 'U_ZERO_ERROR' (0) 114 is in form 'UNORM_FORM_D'? = no error info: 'U_ZERO_ERROR' (0) 116 is in form 'UNORM_FORM_D'? = no error info: 'U_ZERO_ERROR' (0) [all …]
|
H A D | calendar_isEquivalentTo_error.phpt | 14 echo "error: $errno, $errstr\n"; 21 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 26 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 31 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 37 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 42 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 47 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 51 error: 0, IntlCalendar::isEquivalentTo(): Argument #1 ($other) must be of type IntlCalendar, int gi… 53 error: 0, IntlCalendar::isEquivalentTo() expects exactly 1 argument, 2 given 57 error: 0, intlcal_is_equivalent_to() expects exactly 2 arguments, 1 given [all …]
|
H A D | calendar_equals_error.phpt | 14 echo "error: $errno, $errstr\n"; 21 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 26 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 31 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 38 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 43 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 47 error: 0, IntlCalendar::equals() expects exactly 1 argument, 0 given 49 error: 0, IntlCalendar::equals(): Argument #1 ($other) must be of type IntlCalendar, stdClass given 51 error: 0, IntlCalendar::equals() expects exactly 1 argument, 2 given 53 error: 0, intlcal_equals(): Argument #2 ($other) must be of type IntlCalendar, array given [all …]
|
H A D | gh10647.phpt | 7 $error = 123; 8 var_dump($error); 11 var_dump($x->isSuspicious("\u{041F}aypal.com", $error)); 12 var_dump($error); 14 var_dump($x->areConfusable('google.com', 'goog1e.com', $error)); 15 var_dump($error);
|
H A D | calendar_setTimeZone_error.phpt | 16 echo "error: $errno, $errstr\n"; 23 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 28 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 34 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 39 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 43 error: 0, IntlCalendar::setTimeZone() expects exactly 1 argument, 2 given 45 error: 0, IntlCalendar::setTimeZone() expects exactly 1 argument, 0 given 47 error: 0, intlcal_set_time_zone() expects exactly 2 arguments, 3 given 49 error: 0, intlcal_set_time_zone(): Argument #1 ($calendar) must be of type IntlCalendar, int given
|
H A D | gh12020.phpt | 16 string(128) "pattern syntax error (parse error at offset 19, after " message with {", before or at … 18 string(116) "pattern syntax error (parse error at offset 6, after "some {", before or at "wrong.for… 20 string(128) "pattern syntax error (parse error at offset 19, after " message with {", before or at … 22 string(116) "pattern syntax error (parse error at offset 6, after "some {", before or at "wrong.for…
|
/php-src/ext/phar/ |
H A D | tar.c | 153 if (error) { in phar_open_or_create_tar() 213 if (error) { in phar_parse_tarfile() 223 if (error) { in phar_parse_tarfile() 614 if (error) { in phar_parse_tarfile() 641 if (error) { in phar_parse_tarfile() 704 char **error; member 903 char *lookfor, **error = i->error; in phar_tar_setupmetadata() local 1156 pass.error = error; in phar_tar_flush() 1198 if (error && *error) { in phar_tar_flush() 1266 if (error && *error) { in phar_tar_flush() [all …]
|
H A D | util.c | 366 if (error) { in phar_get_entry_data() 375 if (error) { in phar_get_entry_data() 382 if (error) { in phar_get_entry_data() 416 if (error) { in phar_get_entry_data() 423 if (error) { in phar_get_entry_data() 536 if (error) { in phar_get_or_create_entry_data() 543 if (error) { in phar_get_or_create_entry_data() 559 if (error) { in phar_get_or_create_entry_data() 820 if (error) { in phar_create_writeable_entry() 905 if (error) { in phar_open_jit() [all …]
|
/php-src/ext/reflection/tests/ |
H A D | ReflectionFiber_errors.phpt | 14 } catch (Error $error) { 15 echo $error->getMessage(), "\n"; 20 } catch (Error $error) { 21 echo $error->getMessage(), "\n"; 26 } catch (Error $error) { 27 echo $error->getMessage(), "\n"; 39 } catch (Error $error) { 40 echo $error->getMessage(), "\n"; 45 } catch (Error $error) { 51 } catch (Error $error) { [all …]
|
/php-src/ext/gmp/tests/ |
H A D | gmp_pown.phpt | 24 } catch (\DivisionByZeroError $error) { 25 echo $error->getMessage() . \PHP_EOL; 29 } catch (\DivisionByZeroError $error) { 30 echo $error->getMessage() . \PHP_EOL; 35 } catch (\TypeError $error) { 36 echo $error->getMessage() . \PHP_EOL; 40 } catch (\TypeError $error) { 41 echo $error->getMessage() . \PHP_EOL; 45 } catch (\TypeError $error) { 50 } catch (\TypeError $error) { [all …]
|
/php-src/ext/pgsql/tests/ |
H A D | 02connection.phpt | 18 echo "pg_connection_status() error\n"; 22 echo "pg_connection_reset() error\n"; 26 echo "pg_connection_busy() error\n"; 31 echo "pg_transaction_status() error\n"; 36 echo "pg_host() error\n"; 40 echo "pg_dbname() error\n"; 44 echo "pg_port() error\n"; 48 echo "pg_tty() error\n"; 52 echo "pg_options() error\n";
|
/php-src/ext/ |
H A D | ext_skel.php | 22 function error($message) { function 215 error('No extension name passed, use "--ext <name>"'); 217 error('Cannot pass both --onlyunix and --onlywindows'); 219 error('The skeleton directory was not found'); 332 error('Unable to copy source file: ' . $src_file); 358 error('Unable to copy file: ' . $new_test); 368 error('This script is only suited for CLI'); 379 error('The selected output directory does not exist'); 385 error('Unable to create the tests directory'); 392 error('Unable to create the EXPERIMENTAL file'); [all …]
|
/php-src/ext/dom/tests/modern/html/parser/ |
H A D | HTMLDocument_fromString_parser_warning_internal_error.phpt | 2 Dom\HTMLDocument::createFromString() - parser warning via internal error 12 foreach (libxml_get_errors() as $error) { 13 var_dump($error->message, $error->line, $error->column); 20 string(81) "tokenizer error invalid-first-character-of-tag-name in Entity, line: 1, column: 2" 23 string(66) "tokenizer error missing-end-tag-name in Entity, line: 1, column: 6" 26 string(75) "tree error unexpected-token-in-initial-mode in Entity, line: 1, column: 1-7" 29 string(71) "tree error doctype-token-in-body-mode in Entity, line: 1, column: 10-16" 40 string(71) "tree error doctype-token-in-body-mode in Entity, line: 1, column: 10-16"
|
/php-src/Zend/tests/ |
H A D | 015.phpt | 6 var_dump(trigger_error("error")); 9 var_dump(trigger_error("error", -1)); 14 var_dump(trigger_error("error", 0)); 19 var_dump(trigger_error("error", E_USER_WARNING)); 20 var_dump(trigger_error("error", E_USER_DEPRECATED)); 24 Notice: error in %s on line %d 29 Warning: error in %s on line %d 32 Deprecated: error in %s on line %d
|
/php-src/ext/json/tests/ |
H A D | json_validate_002.phpt | 23 string(12) "Syntax error" 26 string(12) "Syntax error" 29 string(12) "Syntax error" 35 string(8) "No error" 38 string(8) "No error" 41 string(8) "No error" 44 string(8) "No error" 47 string(12) "Syntax error" 50 string(8) "No error"
|
/php-src/win32/ |
H A D | sockets.c | 42 goto error; in socketpair_win32() 50 goto error; in socketpair_win32() 54 goto error; in socketpair_win32() 58 goto error; in socketpair_win32() 68 goto error; in socketpair_win32() 73 goto error; in socketpair_win32() 78 goto error; in socketpair_win32() 86 error: in socketpair_win32()
|
/php-src/ext/intl/ |
H A D | ERROR_CONVENTIONS.md | 1 # Intl extension error conventions 3 The intl extension has particular conventions regarding error reporting. These 6 * The last error is always stored globally. 13 the PHP wrapper function should set the global error code to 24 error occurred). 26 The internal PHP code can set the global last error with: 40 unless the error is due to bad arguments, in which case only the global error 53 The global error and the object error can be SIMULTANEOUSLY set with these 65 Static methods should only set the global error. 84 object's private error. [all …]
|
/php-src/Zend/tests/fibers/ |
H A D | fatal-error-in-fiber.phpt | 2 Fatal error in new fiber 7 trigger_error("Fatal error in fiber", E_USER_ERROR); 14 Fatal error: Fatal error in fiber in %sfatal-error-in-fiber.php on line %d
|
/php-src/ext/standard/tests/image/ |
H A D | iptcembed_002.phpt | 42 else { echo "error can't write $file".PHP_EOL;exit(1); } 48 if ($width!=1) { echo "width error".PHP_EOL;exit(1); } 50 if ($type!=2) { echo "type error".PHP_EOL;exit(1); } 81 if ($width!=1) { echo "width error".PHP_EOL;exit(1); } 83 if ($type!=2) { echo "type error".PHP_EOL;exit(1); } 87 $error=0; 92 echo "error iptc tag $tag not found".PHP_EOL; 93 $error++; 98 $error++; 105 if ($error==0) { echo "OK".PHP_EOL;exit(0);} [all …]
|
/php-src/ext/com_dotnet/tests/ |
H A D | gh8750a.phpt | 7 $error = new variant(DISP_E_PARAMNOTFOUND, VT_ERROR); 10 echo variant_cast($error, VT_I4), PHP_EOL; 13 echo (int) $error, PHP_EOL; 17 echo 1 + $error, PHP_EOL; 23 echo variant_get_type($error), PHP_EOL; 26 variant_set_type($error, VT_I4); 27 echo variant_get_type($error), PHP_EOL;
|
/php-src/ext/mysqli/tests/ |
H A D | mysqli_autocommit_oo.phpt | 26 printf("[003] [%d] %s\n", $mysqli->errno, $mysqli->error); 29 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error); 40 printf("[007] [%d] %s\n", $mysqli->errno, $mysqli->error); 47 printf("[009] [%d] %s\n", $mysqli->errno, $mysqli->error); 54 printf("[011] [%d] %s\n", $mysqli->errno, $mysqli->error); 57 printf("[012] [%d] %s\n", $mysqli->errno, $mysqli->error); 60 printf("[013] [%d] %s\n", $mysqli->errno, $mysqli->error); 64 $tmp['num'], $mysqli->errno, $mysqli->error); 69 printf("[015] [%d] %s\n", $mysqli->errno, $mysqli->error); 72 printf("[016] [%d] %s\n", $mysqli->errno, $mysqli->error); [all …]
|
/php-src/ext/posix/tests/ |
H A D | posix_strerror_error.phpt | 2 Test posix_strerror() function : error conditions 7 echo "*** Testing posix_strerror() : error conditions ***\n"; 9 echo "\n-- Testing posix_strerror() function with invalid error number --\n"; 16 *** Testing posix_strerror() : error conditions *** 18 -- Testing posix_strerror() function with invalid error number --
|