Home
last modified time | relevance | path

Searched refs:errstr (Results 1 – 25 of 166) sorted by relevance

1234567

/php-src/Zend/tests/
H A Dbug46241.phpt9 public function errorHandler1( $errno, $errstr )
11 echo "Caught on first level: '$errstr'\n";
15 public function errorHandler2( $errno, $errstr )
17 echo "Caught on second level: '$errstr'\n";
29 function errorHandler1( $errno, $errstr )
31 echo "Caught on first level: '$errstr'\n";
35 function errorHandler2( $errno, $errstr )
37 echo "Caught on second level: '$errstr'\n";
H A Dframeless_undefined_var.phpt5 set_error_handler(function ($errno, $errstr) {
6 throw new Exception($errstr);
/php-src/ext/standard/
H A Dfsock.c47 zend_string *errstr = NULL; in php_fsockopen_stream() local
99 STREAM_XPORT_CLIENT | STREAM_XPORT_CONNECT, hashkey, &tv, NULL, &errstr, &err); in php_fsockopen_stream()
105 …connect to %s:" ZEND_LONG_FMT " (%s)", host, port, errstr == NULL ? "Unknown error" : ZSTR_VAL(err… in php_fsockopen_stream()
116 if (errstr) { in php_fsockopen_stream()
118 ZEND_TRY_ASSIGN_REF_STR(zerrstr, errstr); in php_fsockopen_stream()
120 zend_string_release(errstr); in php_fsockopen_stream()
134 if (errstr) { in php_fsockopen_stream()
135 zend_string_release_ex(errstr, 0); in php_fsockopen_stream()
/php-src/tests/lang/
H A Dbug21094.phpt6 function hdlr($errno, $errstr, $errfile, $errline) {
7 …printf("[%d] errstr: %s, errfile: %s, errline: %d\n", $errno, $errstr, $errfile, $errline, $errstr
16 [1024] errstr: test, errfile: %s, errline: %d
H A D039.phpt12 function __construct($errstr, $errno, $errfile, $errline)
14 parent::__construct($errstr, $errno);
20 function Error2Exception($errno, $errstr, $errfile, $errline)
22 throw new MyException($errstr, $errno, $errfile, $errline);
H A D038.phpt8 function __construct($errstr, $errno=0, $errfile='', $errline=0)
10 parent::__construct($errstr, $errno);
16 function Error2Exception($errno, $errstr, $errfile, $errline)
18 throw new MyException($errstr, $errno);//, $errfile, $errline);
/php-src/ext/random/
H A Dcsprng.c74 …snprintf(errstr, errstr_size, "Failed to retrieve randomness from the operating system (BCryptGenR… in php_random_bytes_ex()
85 …snprintf(errstr, errstr_size, "Failed to retrieve randomness from the operating system (CCRandomGe… in php_random_bytes_ex()
159 snprintf(errstr, errstr_size, "Cannot open /dev/urandom: %s", strerror(errno)); in php_random_bytes_ex()
161 snprintf(errstr, errstr_size, "Cannot open /dev/urandom"); in php_random_bytes_ex()
177 snprintf(errstr, errstr_size, "Error reading from /dev/urandom: %s", strerror(errno)); in php_random_bytes_ex()
179 snprintf(errstr, errstr_size, "Error reading from /dev/urandom"); in php_random_bytes_ex()
198 snprintf(errstr, errstr_size, "Could not gather sufficient random data: %s", strerror(errno)); in php_random_bytes_ex()
200 snprintf(errstr, errstr_size, "Could not gather sufficient random data"); in php_random_bytes_ex()
215 char errstr[128]; in php_random_bytes() local
216 zend_result result = php_random_bytes_ex(bytes, size, errstr, sizeof(errstr)); in php_random_bytes()
[all …]
H A Dzend_utils.c37 char errstr[128]; in php_random_bytes_insecure_for_zend() local
38 if (php_random_bytes_ex(&t, sizeof(t), errstr, sizeof(errstr)) == FAILURE) { in php_random_bytes_insecure_for_zend()
40 fprintf(stderr, "php_random_bytes_ex: Failed to generate a random seed: %s\n", errstr); in php_random_bytes_insecure_for_zend()
/php-src/ext/openssl/tests/
H A Dtls_wrapper_with_tls_v1.3.phpt20 $server = stream_socket_server('tls://127.0.0.1:64321', $errno, $errstr, $flags, $ctx);
39 $client = stream_socket_client("tlsv1.0://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
42 $client = @stream_socket_client("sslv3://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
45 $client = @stream_socket_client("tlsv1.1://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
48 $client = @stream_socket_client("tlsv1.2://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
51 $client = @stream_socket_client("tlsv1.3://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
54 $client = @stream_socket_client("ssl://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
57 $client = @stream_socket_client("tls://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
H A Dtls_wrapper.phpt20 $server = stream_socket_server('tls://127.0.0.1:64321', $errno, $errstr, $flags, $ctx);
39 $client = stream_socket_client("tlsv1.0://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
42 $client = @stream_socket_client("sslv3://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
45 $client = @stream_socket_client("tlsv1.1://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
48 $client = @stream_socket_client("tlsv1.2://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
51 $client = @stream_socket_client("ssl://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
54 $client = @stream_socket_client("tls://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
H A Dtls_min_v1.0_max_v1.1_wrapper.phpt22 $server = stream_socket_server('tls://127.0.0.1:64321', $errno, $errstr, $flags, $ctx);
41 $client = stream_socket_client("tlsv1.0://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
44 $client = @stream_socket_client("sslv3://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
47 $client = @stream_socket_client("tlsv1.1://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
50 $client = @stream_socket_client("tlsv1.2://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
53 $client = @stream_socket_client("ssl://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
56 $client = @stream_socket_client("tls://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
H A Dtlsv1.0_wrapper.phpt20 $server = stream_socket_server('tlsv1.0://127.0.0.1:64321', $errno, $errstr, $flags, $ctx);
39 $client = stream_socket_client("tlsv1.0://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
42 $client = @stream_socket_client("sslv3://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
45 $client = @stream_socket_client("tlsv1.2://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
H A Dtlsv1.1_wrapper.phpt20 $server = stream_socket_server('tlsv1.1://127.0.0.1:64321', $errno, $errstr, $flags, $ctx);
39 $client = stream_socket_client("tlsv1.1://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
42 $client = @stream_socket_client("sslv3://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
45 $client = @stream_socket_client("tlsv1.2://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
H A Dtlsv1.2_wrapper.phpt19 $server = stream_socket_server('tlsv1.2://127.0.0.1:64321', $errno, $errstr, $flags, $ctx);
37 $client = stream_socket_client("tlsv1.2://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
40 $client = @stream_socket_client("sslv3://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
43 $client = @stream_socket_client("tlsv1.1://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
H A Dtlsv1.3_wrapper.phpt19 $server = stream_socket_server('tlsv1.3://127.0.0.1:64321', $errno, $errstr, $flags, $ctx);
37 $client = stream_socket_client("tlsv1.3://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
40 $client = @stream_socket_client("tlsv1.0://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
43 $client = @stream_socket_client("tlsv1.2://127.0.0.1:64321", $errno, $errstr, 3, $flags, $ctx);
H A Dstream_crypto_flags_002.phpt22 $server = stream_socket_server($serverUri, $errno, $errstr, $serverFlags, $serverCtx);
46 var_dump(stream_socket_client($serverUri, $errno, $errstr, 2, $clientFlags, $clientCtx));
49 var_dump(stream_socket_client($serverUri, $errno, $errstr, 2, $clientFlags, $clientCtx));
52 var_dump(stream_socket_client($serverUri, $errno, $errstr, 2, $clientFlags, $clientCtx));
55 var_dump(stream_socket_client($serverUri, $errno, $errstr, 2, $clientFlags, $clientCtx));
H A Dpeer_verification.phpt21 $server = stream_socket_server($serverUri, $errno, $errstr, $serverFlags, $serverCtx);
39 var_dump(@stream_socket_client($serverUri, $errno, $errstr, 1, $clientFlags));
45 var_dump(@stream_socket_client($serverUri, $errno, $errstr, 1, $clientFlags, $clientCtx));
52 var_dump(stream_socket_client($serverUri, $errno, $errstr, 1, $clientFlags, $clientCtx));
59 var_dump(stream_socket_client($serverUri, $errno, $errstr, 1, $clientFlags, $clientCtx));
H A Dstream_crypto_flags_004.phpt23 $server = stream_socket_server($serverUri, $errno, $errstr, $serverFlags, $serverCtx);
48 var_dump(@stream_socket_client($serverUri, $errno, $errstr, 1, $clientFlags, $clientCtx));
52 var_dump(@stream_socket_client($serverUri, $errno, $errstr, 1, $clientFlags, $clientCtx));
56 var_dump(@stream_socket_client($serverUri, $errno, $errstr, 1, $clientFlags, $clientCtx));
60 var_dump(stream_socket_client($serverUri, $errno, $errstr, 1, $clientFlags, $clientCtx));
H A Dsni_server.phpt21 $server = stream_socket_server('tls://127.0.0.1:64321', $errno, $errstr, $flags, $ctx);
40 $client = stream_socket_client("tls://127.0.0.1:64321", $errno, $errstr, 1, $flags, $ctx);
46 $client = @stream_socket_client("tls://127.0.0.1:64321", $errno, $errstr, 1, $flags, $ctx);
52 $client = @stream_socket_client("tls://127.0.0.1:64321", $errno, $errstr, 1, $flags, $ctx);
/php-src/ext/standard/tests/network/
H A Dfsockopen_error.phpt11 $errstr = null;
13 var_dump( fsockopen($hostname, $port, $errno, $errstr, $timeout) );
14 var_dump($errstr);
20 $errstr = null;
22 var_dump( fsockopen($hostname, $port, $errno, $errstr, $timeout) );
23 var_dump($errstr);
/php-src/ext/reflection/tests/
H A Dbug76936.phpt16 function ($errno, $errstr, $errfile, $errline) {
17 $this->handleError($errno, $errstr, $errfile, $errline);
22 private function handleError($errno, $errstr, $errfile, $errline, $errmodule = null) {
23 echo __METHOD__. " dealing with error $errstr\n";
/php-src/ext/bz2/tests/
H A D004.phpt66 ["errstr"]=>
74 ["errstr"]=>
83 ["errstr"]=>
92 ["errstr"]=>
101 ["errstr"]=>
110 ["errstr"]=>
/php-src/Zend/
H A Dzend_ini.c638 *errstr = NULL; in zend_ini_parse_quantity_internal()
668 *errstr = NULL; in zend_ini_parse_quantity_internal()
858 *errstr = NULL; in zend_ini_parse_quantity_internal()
877 zend_string *errstr; in zend_ini_parse_quantity_warn() local
878 zend_long retval = zend_ini_parse_quantity(value, &errstr); in zend_ini_parse_quantity_warn()
880 if (errstr) { in zend_ini_parse_quantity_warn()
882 zend_string_release(errstr); in zend_ini_parse_quantity_warn()
891 zend_string *errstr; in zend_ini_parse_uquantity_warn() local
892 zend_ulong retval = zend_ini_parse_uquantity(value, &errstr); in zend_ini_parse_uquantity_warn()
894 if (errstr) { in zend_ini_parse_uquantity_warn()
[all …]
/php-src/ext/pdo_firebird/tests/
H A Dpayload_server.php3 $socket = stream_socket_server("tcp://127.0.0.1:0", $errno, $errstr);
5 echo "Can't start server: $errstr ($errno)\n";
/php-src/ext/standard/tests/streams/
H A Dbug70198.phpt23 \$socket = stream_socket_server('$srv_addr', \$errno, \$errstr);
26 echo "\$errstr (\$errno)\\n";
44 $fp = stream_socket_client($srv_addr, $errno, $errstr, 2);
46 echo "$errstr ($errno)\n";

Completed in 27 milliseconds

1234567