Skip to content

Commit a1a8d14

Browse files
committed
Update more func info information for ext/standard
1 parent e94a71b commit a1a8d14

File tree

13 files changed

+133
-133
lines changed

13 files changed

+133
-133
lines changed

ext/opcache/Optimizer/zend_func_info.c

Lines changed: 84 additions & 84 deletions
Large diffs are not rendered by default.

ext/standard/base64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ PHP_FUNCTION(base64_encode)
803803
}
804804
/* }}} */
805805

806-
/* {{{ proto string base64_decode(string str[, bool strict])
806+
/* {{{ proto string|false base64_decode(string str[, bool strict])
807807
Decodes string using MIME base64 algorithm */
808808
PHP_FUNCTION(base64_decode)
809809
{

ext/standard/dns.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static zend_string *php_gethostbyaddr(char *ip);
120120
static zend_string *php_gethostbyname(char *name);
121121

122122
#ifdef HAVE_GETHOSTNAME
123-
/* {{{ proto string gethostname()
123+
/* {{{ proto string|false gethostname()
124124
Get the host name of the current machine */
125125
PHP_FUNCTION(gethostname)
126126
{
@@ -144,7 +144,7 @@ PHP_FUNCTION(gethostname)
144144
we can have a dns.c, dns_unix.c and dns_win32.c instead of a messy dns.c full of #ifdef
145145
*/
146146

147-
/* {{{ proto string gethostbyaddr(string ip_address)
147+
/* {{{ proto string|false gethostbyaddr(string ip_address)
148148
Get the Internet host name corresponding to a given IP address */
149149
PHP_FUNCTION(gethostbyaddr)
150150
{
@@ -227,7 +227,7 @@ PHP_FUNCTION(gethostbyname)
227227
}
228228
/* }}} */
229229

230-
/* {{{ proto array gethostbynamel(string hostname)
230+
/* {{{ proto array|false gethostbynamel(string hostname)
231231
Return a list of IP addresses that a given hostname resolves to. */
232232
PHP_FUNCTION(gethostbynamel)
233233
{

ext/standard/exec.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ static void php_exec_ex(INTERNAL_FUNCTION_PARAMETERS, int mode) /* {{{ */
216216
Z_PARAM_ZVAL(ret_array)
217217
}
218218
Z_PARAM_ZVAL(ret_code)
219-
ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE);
219+
ZEND_PARSE_PARAMETERS_END();
220220

221221
if (!cmd_len) {
222222
php_error_docref(NULL, E_WARNING, "Cannot execute a blank command");
@@ -248,23 +248,23 @@ static void php_exec_ex(INTERNAL_FUNCTION_PARAMETERS, int mode) /* {{{ */
248248
}
249249
/* }}} */
250250

251-
/* {{{ proto string exec(string command [, array &output [, int &return_value]])
251+
/* {{{ proto string|false exec(string command [, array &output [, int &return_value]])
252252
Execute an external program */
253253
PHP_FUNCTION(exec)
254254
{
255255
php_exec_ex(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
256256
}
257257
/* }}} */
258258

259-
/* {{{ proto int system(string command [, int &return_value])
259+
/* {{{ proto int|false system(string command [, int &return_value])
260260
Execute an external program and display output */
261261
PHP_FUNCTION(system)
262262
{
263263
php_exec_ex(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
264264
}
265265
/* }}} */
266266

267-
/* {{{ proto void passthru(string command [, int &return_value])
267+
/* {{{ proto bool passthru(string command [, int &return_value])
268268
Execute an external program and display raw output */
269269
PHP_FUNCTION(passthru)
270270
{
@@ -515,7 +515,7 @@ PHP_FUNCTION(escapeshellarg)
515515
}
516516
/* }}} */
517517

518-
/* {{{ proto string shell_exec(string cmd)
518+
/* {{{ proto string|false shell_exec(string cmd)
519519
Execute command via shell and return complete output as string */
520520
PHP_FUNCTION(shell_exec)
521521
{

ext/standard/file.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ PHPAPI PHP_FUNCTION(fclose)
927927
}
928928
/* }}} */
929929

930-
/* {{{ proto resource popen(string command, string mode)
930+
/* {{{ proto resource|false popen(string command, string mode)
931931
Execute a command and open either a read or a write pipe to it */
932932
PHP_FUNCTION(popen)
933933
{
@@ -1463,7 +1463,7 @@ PHP_FUNCTION(unlink)
14631463
Z_PARAM_PATH(filename, filename_len)
14641464
Z_PARAM_OPTIONAL
14651465
Z_PARAM_RESOURCE_EX(zcontext, 1, 0)
1466-
ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE);
1466+
ZEND_PARSE_PARAMETERS_END();
14671467

14681468
context = php_stream_context_from_zval(zcontext, 0);
14691469

ext/standard/formatted_print.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ php_formatted_print_get_array(zval *array, int *argc)
659659
}
660660
/* }}} */
661661

662-
/* {{{ proto string sprintf(string format [, mixed arg1 [, mixed ...]])
662+
/* {{{ proto string|false sprintf(string format [, mixed arg1 [, mixed ...]])
663663
Return a formatted string */
664664
PHP_FUNCTION(user_sprintf)
665665
{
@@ -670,7 +670,7 @@ PHP_FUNCTION(user_sprintf)
670670
ZEND_PARSE_PARAMETERS_START(1, -1)
671671
Z_PARAM_ZVAL(format)
672672
Z_PARAM_VARIADIC('*', args, argc)
673-
ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE);
673+
ZEND_PARSE_PARAMETERS_END();
674674

675675
result = php_formatted_print(format, args, argc);
676676
if (result == NULL) {
@@ -680,7 +680,7 @@ PHP_FUNCTION(user_sprintf)
680680
}
681681
/* }}} */
682682

683-
/* {{{ proto string vsprintf(string format, array args)
683+
/* {{{ proto string|false vsprintf(string format, array args)
684684
Return a formatted string */
685685
PHP_FUNCTION(vsprintf)
686686
{
@@ -691,7 +691,7 @@ PHP_FUNCTION(vsprintf)
691691
ZEND_PARSE_PARAMETERS_START(2, 2)
692692
Z_PARAM_ZVAL(format)
693693
Z_PARAM_ZVAL(array)
694-
ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE);
694+
ZEND_PARSE_PARAMETERS_END();
695695

696696
args = php_formatted_print_get_array(array, &argc);
697697

@@ -704,7 +704,7 @@ PHP_FUNCTION(vsprintf)
704704
}
705705
/* }}} */
706706

707-
/* {{{ proto int printf(string format [, mixed arg1 [, mixed ...]])
707+
/* {{{ proto int|false printf(string format [, mixed arg1 [, mixed ...]])
708708
Output a formatted string */
709709
PHP_FUNCTION(user_printf)
710710
{
@@ -716,7 +716,7 @@ PHP_FUNCTION(user_printf)
716716
ZEND_PARSE_PARAMETERS_START(1, -1)
717717
Z_PARAM_ZVAL(format)
718718
Z_PARAM_VARIADIC('*', args, argc)
719-
ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE);
719+
ZEND_PARSE_PARAMETERS_END();
720720

721721
result = php_formatted_print(format, args, argc);
722722
if (result == NULL) {
@@ -728,7 +728,7 @@ PHP_FUNCTION(user_printf)
728728
}
729729
/* }}} */
730730

731-
/* {{{ proto int vprintf(string format, array args)
731+
/* {{{ proto int|false vprintf(string format, array args)
732732
Output a formatted string */
733733
PHP_FUNCTION(vprintf)
734734
{
@@ -740,7 +740,7 @@ PHP_FUNCTION(vprintf)
740740
ZEND_PARSE_PARAMETERS_START(2, 2)
741741
Z_PARAM_ZVAL(format)
742742
Z_PARAM_ZVAL(array)
743-
ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE);
743+
ZEND_PARSE_PARAMETERS_END();
744744

745745
args = php_formatted_print_get_array(array, &argc);
746746

@@ -755,7 +755,7 @@ PHP_FUNCTION(vprintf)
755755
}
756756
/* }}} */
757757

758-
/* {{{ proto int fprintf(resource stream, string format [, mixed arg1 [, mixed ...]])
758+
/* {{{ proto int|false fprintf(resource stream, string format [, mixed arg1 [, mixed ...]])
759759
Output a formatted string into a stream */
760760
PHP_FUNCTION(fprintf)
761761
{
@@ -772,7 +772,7 @@ PHP_FUNCTION(fprintf)
772772
Z_PARAM_RESOURCE(arg1)
773773
Z_PARAM_ZVAL(format)
774774
Z_PARAM_VARIADIC('*', args, argc)
775-
ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE);
775+
ZEND_PARSE_PARAMETERS_END();
776776

777777
php_stream_from_zval(stream, arg1);
778778

@@ -788,7 +788,7 @@ PHP_FUNCTION(fprintf)
788788
}
789789
/* }}} */
790790

791-
/* {{{ proto int vfprintf(resource stream, string format, array args)
791+
/* {{{ proto int|false vfprintf(resource stream, string format, array args)
792792
Output a formatted string into a stream */
793793
PHP_FUNCTION(vfprintf)
794794
{
@@ -805,7 +805,7 @@ PHP_FUNCTION(vfprintf)
805805
Z_PARAM_RESOURCE(arg1)
806806
Z_PARAM_ZVAL(format)
807807
Z_PARAM_ZVAL(array)
808-
ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE);
808+
ZEND_PARSE_PARAMETERS_END();
809809

810810
php_stream_from_zval(stream, arg1);
811811

ext/standard/http.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ PHPAPI int php_url_encode_hash_ex(HashTable *ht, smart_str *formstr,
224224
}
225225
/* }}} */
226226

227-
/* {{{ proto string http_build_query(mixed formdata [, string prefix [, string arg_separator [, int enc_type]]])
227+
/* {{{ proto string|false http_build_query(mixed formdata [, string prefix [, string arg_separator [, int enc_type]]])
228228
Generates a form-encoded query string from an associative array or object. */
229229
PHP_FUNCTION(http_build_query)
230230
{
@@ -240,7 +240,7 @@ PHP_FUNCTION(http_build_query)
240240
Z_PARAM_STRING(prefix, prefix_len)
241241
Z_PARAM_STRING(arg_sep, arg_sep_len)
242242
Z_PARAM_LONG(enc_type)
243-
ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE);
243+
ZEND_PARSE_PARAMETERS_END();
244244

245245
if (php_url_encode_hash_ex(HASH_OF(formdata), &formstr, prefix, prefix_len, NULL, 0, NULL, 0, (Z_TYPE_P(formdata) == IS_OBJECT ? formdata : NULL), arg_sep, (int)enc_type) == FAILURE) {
246246
if (formstr.s) {

ext/standard/link.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
#define VOLUME_NAME_DOS 0x0
6363
#endif
6464

65-
/* {{{ proto string readlink(string filename)
65+
/* {{{ proto string|false readlink(string filename)
6666
Return the target of a symbolic link */
6767
PHP_FUNCTION(readlink)
6868
{
@@ -96,7 +96,7 @@ PHP_FUNCTION(readlink)
9696
}
9797
/* }}} */
9898

99-
/* {{{ proto int linkinfo(string filename)
99+
/* {{{ proto int|false linkinfo(string filename)
100100
Returns the st_dev field of the UNIX C stat structure describing the link */
101101
PHP_FUNCTION(linkinfo)
102102
{
@@ -130,7 +130,7 @@ PHP_FUNCTION(linkinfo)
130130
}
131131
/* }}} */
132132

133-
/* {{{ proto int symlink(string target, string link)
133+
/* {{{ proto bool symlink(string target, string link)
134134
Create a symbolic link */
135135
PHP_FUNCTION(symlink)
136136
{
@@ -189,7 +189,7 @@ PHP_FUNCTION(symlink)
189189
}
190190
/* }}} */
191191

192-
/* {{{ proto int link(string target, string link)
192+
/* {{{ proto bool link(string target, string link)
193193
Create a hard link */
194194
PHP_FUNCTION(link)
195195
{

ext/standard/math.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ static double php_expm1(double x)
283283
}
284284
/* }}}*/
285285

286-
/* {{{ proto int abs(int number)
286+
/* {{{ proto int|float|false abs(int number)
287287
Return the absolute value of the number */
288288
PHP_FUNCTION(abs)
289289
{
@@ -308,7 +308,7 @@ PHP_FUNCTION(abs)
308308
}
309309
/* }}} */
310310

311-
/* {{{ proto float ceil(float number)
311+
/* {{{ proto float|false ceil(float number)
312312
Returns the next highest integer value of the number */
313313
PHP_FUNCTION(ceil)
314314
{
@@ -329,7 +329,7 @@ PHP_FUNCTION(ceil)
329329
}
330330
/* }}} */
331331

332-
/* {{{ proto float floor(float number)
332+
/* {{{ proto float|false floor(float number)
333333
Returns the next lowest integer value from the number */
334334
PHP_FUNCTION(floor)
335335
{
@@ -350,7 +350,7 @@ PHP_FUNCTION(floor)
350350
}
351351
/* }}} */
352352

353-
/* {{{ proto float round(float number [, int precision [, int mode]])
353+
/* {{{ proto float|false round(float number [, int precision [, int mode]])
354354
Returns the number rounded to specified precision */
355355
PHP_FUNCTION(round)
356356
{
@@ -683,7 +683,7 @@ PHP_FUNCTION(log1p)
683683
}
684684
/* }}} */
685685

686-
/* {{{ proto float log(float number, [float base])
686+
/* {{{ proto float|false log(float number, [float base])
687687
Returns the natural logarithm of the number, or the base log if base is specified */
688688
PHP_FUNCTION(log)
689689
{
@@ -1077,7 +1077,7 @@ PHP_FUNCTION(dechex)
10771077
}
10781078
/* }}} */
10791079

1080-
/* {{{ proto string base_convert(string number, int frombase, int tobase)
1080+
/* {{{ proto string|false base_convert(string number, int frombase, int tobase)
10811081
Converts a number in a string from any base <= 36 to any base <= 36 */
10821082
PHP_FUNCTION(base_convert)
10831083
{

ext/standard/microtime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ PHP_FUNCTION(gettimeofday)
100100
/* }}} */
101101

102102
#ifdef HAVE_GETRUSAGE
103-
/* {{{ proto array getrusage([int who])
103+
/* {{{ proto array|false getrusage([int who])
104104
Returns an array of usage statistics */
105105
PHP_FUNCTION(getrusage)
106106
{

ext/standard/password.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ const php_password_algo* php_password_algo_identify_ex(const zend_string* hash,
545545
return (!algo || (algo->valid && !algo->valid(hash))) ? default_algo : algo;
546546
}
547547

548-
/* {{{ proto array password_get_info(string $hash)
548+
/* {{{ proto array|null password_get_info(string $hash)
549549
Retrieves information about a given hash */
550550
PHP_FUNCTION(password_get_info)
551551
{
@@ -628,14 +628,14 @@ PHP_FUNCTION(password_verify)
628628
ZEND_PARSE_PARAMETERS_START(2, 2)
629629
Z_PARAM_STR(password)
630630
Z_PARAM_STR(hash)
631-
ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE);
631+
ZEND_PARSE_PARAMETERS_END();
632632

633633
algo = php_password_algo_identify(hash);
634634
RETURN_BOOL(algo && (!algo->verify || algo->verify(password, hash)));
635635
}
636636
/* }}} */
637637

638-
/* {{{ proto string password_hash(string password, mixed algo[, array options = array()])
638+
/* {{{ proto string|null password_hash(string password, mixed algo[, array options = array()])
639639
Hash a password */
640640
PHP_FUNCTION(password_hash)
641641
{

0 commit comments

Comments
 (0)