Skip to content

Commit 960589c

Browse files
committed
Remove proto comments
1 parent 08b9859 commit 960589c

File tree

196 files changed

+3151
-6403
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+3151
-6403
lines changed

Zend/zend_builtin_functions.c

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

Zend/zend_closures.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ static zend_bool zend_valid_closure_binding(
109109
}
110110
/* }}} */
111111

112-
/* {{{ proto mixed Closure::call(object to [, mixed parameter] [, mixed ...] )
113-
Call closure, binding to a given object with its class as the scope */
112+
/* {{{ Call closure, binding to a given object with its class as the scope */
114113
ZEND_METHOD(Closure, call)
115114
{
116115
zval *newthis, closure_result;
@@ -187,8 +186,7 @@ ZEND_METHOD(Closure, call)
187186
}
188187
/* }}} */
189188

190-
/* {{{ proto Closure Closure::bind(callable old, object to [, mixed scope])
191-
Create a closure from another one and bind to another object and scope */
189+
/* {{{ Create a closure from another one and bind to another object and scope */
192190
ZEND_METHOD(Closure, bind)
193191
{
194192
zval *newthis, *zclosure, *scope_arg = NULL;
@@ -323,8 +321,7 @@ static int zend_create_closure_from_callable(zval *return_value, zval *callable,
323321
}
324322
/* }}} */
325323

326-
/* {{{ proto Closure Closure::fromCallable(callable callable)
327-
Create a closure from a callable using the current scope. */
324+
/* {{{ Create a closure from a callable using the current scope. */
328325
ZEND_METHOD(Closure, fromCallable)
329326
{
330327
zval *callable;
@@ -591,8 +588,7 @@ static HashTable *zend_closure_get_gc(zend_object *obj, zval **table, int *n) /*
591588
}
592589
/* }}} */
593590

594-
/* {{{ proto Closure::__construct()
595-
Private constructor preventing instantiation */
591+
/* {{{ Private constructor preventing instantiation */
596592
ZEND_COLD ZEND_METHOD(Closure, __construct)
597593
{
598594
zend_throw_error(NULL, "Instantiation of 'Closure' is not allowed");

Zend/zend_exceptions.c

Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -267,17 +267,15 @@ static zend_object *zend_error_exception_new(zend_class_entry *class_type) /* {{
267267
}
268268
/* }}} */
269269

270-
/* {{{ proto Exception|Error Exception|Error::__clone()
271-
Clone the exception object */
270+
/* {{{ Clone the exception object */
272271
ZEND_COLD ZEND_METHOD(Exception, __clone)
273272
{
274273
/* Should never be executable */
275274
zend_throw_exception(NULL, "Cannot clone object using __clone()", 0);
276275
}
277276
/* }}} */
278277

279-
/* {{{ proto Exception|Error::__construct(string message, int code [, Throwable previous])
280-
Exception constructor */
278+
/* {{{ Exception constructor */
281279
ZEND_METHOD(Exception, __construct)
282280
{
283281
zend_string *message = NULL;
@@ -308,8 +306,7 @@ ZEND_METHOD(Exception, __construct)
308306
}
309307
/* }}} */
310308

311-
/* {{{ proto Exception::__wakeup()
312-
Exception unserialize checks */
309+
/* {{{ Exception unserialize checks */
313310
#define CHECK_EXC_TYPE(id, type) \
314311
pvalue = zend_read_property_ex(i_get_exception_base(object), (object), ZSTR_KNOWN(id), 1, &value); \
315312
if (Z_TYPE_P(pvalue) != IS_NULL && Z_TYPE_P(pvalue) != type) { \
@@ -329,8 +326,7 @@ ZEND_METHOD(Exception, __wakeup)
329326
}
330327
/* }}} */
331328

332-
/* {{{ proto ErrorException::__construct(string message, int code, int severity [, string filename [, int lineno [, Throwable previous]]])
333-
ErrorException constructor */
329+
/* {{{ ErrorException constructor */
334330
ZEND_METHOD(ErrorException, __construct)
335331
{
336332
zend_string *message = NULL, *filename = NULL;
@@ -380,8 +376,7 @@ ZEND_METHOD(ErrorException, __construct)
380376
#define GET_PROPERTY_SILENT(object, id) \
381377
zend_read_property_ex(i_get_exception_base(object), (object), ZSTR_KNOWN(id), 1, &rv)
382378

383-
/* {{{ proto string Exception|Error::getFile()
384-
Get the file in which the exception occurred */
379+
/* {{{ Get the file in which the exception occurred */
385380
ZEND_METHOD(Exception, getFile)
386381
{
387382
zval *prop, rv;
@@ -393,8 +388,7 @@ ZEND_METHOD(Exception, getFile)
393388
}
394389
/* }}} */
395390

396-
/* {{{ proto int Exception|Error::getLine()
397-
Get the line in which the exception occurred */
391+
/* {{{ Get the line in which the exception occurred */
398392
ZEND_METHOD(Exception, getLine)
399393
{
400394
zval *prop, rv;
@@ -406,8 +400,7 @@ ZEND_METHOD(Exception, getLine)
406400
}
407401
/* }}} */
408402

409-
/* {{{ proto string Exception|Error::getMessage()
410-
Get the exception message */
403+
/* {{{ Get the exception message */
411404
ZEND_METHOD(Exception, getMessage)
412405
{
413406
zval *prop, rv;
@@ -419,8 +412,7 @@ ZEND_METHOD(Exception, getMessage)
419412
}
420413
/* }}} */
421414

422-
/* {{{ proto int Exception|Error::getCode()
423-
Get the exception code */
415+
/* {{{ Get the exception code */
424416
ZEND_METHOD(Exception, getCode)
425417
{
426418
zval *prop, rv;
@@ -433,8 +425,7 @@ ZEND_METHOD(Exception, getCode)
433425
}
434426
/* }}} */
435427

436-
/* {{{ proto array Exception|Error::getTrace()
437-
Get the stack trace for the location in which the exception occurred */
428+
/* {{{ Get the stack trace for the location in which the exception occurred */
438429
ZEND_METHOD(Exception, getTrace)
439430
{
440431
zval *prop, rv;
@@ -447,8 +438,7 @@ ZEND_METHOD(Exception, getTrace)
447438
}
448439
/* }}} */
449440

450-
/* {{{ proto int ErrorException::getSeverity()
451-
Get the exception severity */
441+
/* {{{ Get the exception severity */
452442
ZEND_METHOD(ErrorException, getSeverity)
453443
{
454444
zval *prop, rv;
@@ -590,8 +580,7 @@ static void _build_trace_string(smart_str *str, HashTable *ht, uint32_t num) /*
590580
}
591581
/* }}} */
592582

593-
/* {{{ proto string Exception|Error::getTraceAsString()
594-
Obtain the backtrace for the exception as a string (instead of an array) */
583+
/* {{{ Obtain the backtrace for the exception as a string (instead of an array) */
595584
ZEND_METHOD(Exception, getTraceAsString)
596585
{
597586
zval *trace, *frame, rv;
@@ -631,8 +620,7 @@ ZEND_METHOD(Exception, getTraceAsString)
631620
}
632621
/* }}} */
633622

634-
/* {{{ proto Throwable Exception|Error::getPrevious()
635-
Return previous Throwable or NULL. */
623+
/* {{{ Return previous Throwable or NULL. */
636624
ZEND_METHOD(Exception, getPrevious)
637625
{
638626
zval rv;
@@ -642,8 +630,7 @@ ZEND_METHOD(Exception, getPrevious)
642630
ZVAL_COPY(return_value, GET_PROPERTY_SILENT(ZEND_THIS, ZEND_STR_PREVIOUS));
643631
} /* }}} */
644632

645-
/* {{{ proto string Exception|Error::__toString()
646-
Obtain the string representation of the Exception object */
633+
/* {{{ Obtain the string representation of the Exception object */
647634
ZEND_METHOD(Exception, __toString)
648635
{
649636
zval trace, *exception;

Zend/zend_generators.c

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -828,8 +828,7 @@ static inline void zend_generator_rewind(zend_generator *generator) /* {{{ */
828828
}
829829
/* }}} */
830830

831-
/* {{{ proto void Generator::rewind()
832-
* Rewind the generator */
831+
/* {{{ * Rewind the generator */
833832
ZEND_METHOD(Generator, rewind)
834833
{
835834
zend_generator *generator;
@@ -842,8 +841,7 @@ ZEND_METHOD(Generator, rewind)
842841
}
843842
/* }}} */
844843

845-
/* {{{ proto bool Generator::valid()
846-
* Check whether the generator is valid */
844+
/* {{{ * Check whether the generator is valid */
847845
ZEND_METHOD(Generator, valid)
848846
{
849847
zend_generator *generator;
@@ -860,8 +858,7 @@ ZEND_METHOD(Generator, valid)
860858
}
861859
/* }}} */
862860

863-
/* {{{ proto mixed Generator::current()
864-
* Get the current value */
861+
/* {{{ * Get the current value */
865862
ZEND_METHOD(Generator, current)
866863
{
867864
zend_generator *generator, *root;
@@ -881,8 +878,7 @@ ZEND_METHOD(Generator, current)
881878
}
882879
/* }}} */
883880

884-
/* {{{ proto mixed Generator::key()
885-
* Get the current key */
881+
/* {{{ * Get the current key */
886882
ZEND_METHOD(Generator, key)
887883
{
888884
zend_generator *generator, *root;
@@ -902,8 +898,7 @@ ZEND_METHOD(Generator, key)
902898
}
903899
/* }}} */
904900

905-
/* {{{ proto void Generator::next()
906-
* Advances the generator */
901+
/* {{{ * Advances the generator */
907902
ZEND_METHOD(Generator, next)
908903
{
909904
zend_generator *generator;
@@ -918,8 +913,7 @@ ZEND_METHOD(Generator, next)
918913
}
919914
/* }}} */
920915

921-
/* {{{ proto mixed Generator::send(mixed value)
922-
* Sends a value to the generator */
916+
/* {{{ * Sends a value to the generator */
923917
ZEND_METHOD(Generator, send)
924918
{
925919
zval *value;
@@ -955,8 +949,7 @@ ZEND_METHOD(Generator, send)
955949
}
956950
/* }}} */
957951

958-
/* {{{ proto mixed Generator::throw(Exception exception)
959-
* Throws an exception into the generator */
952+
/* {{{ * Throws an exception into the generator */
960953
ZEND_METHOD(Generator, throw)
961954
{
962955
zval *exception;
@@ -993,8 +986,7 @@ ZEND_METHOD(Generator, throw)
993986
}
994987
/* }}} */
995988

996-
/* {{{ proto mixed Generator::getReturn()
997-
* Retrieves the return value of the generator */
989+
/* {{{ * Retrieves the return value of the generator */
998990
ZEND_METHOD(Generator, getReturn)
999991
{
1000992
zend_generator *generator;

ext/bcmath/bcmath.c

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,7 @@ static void php_str2num(bc_num *num, char *str)
151151
}
152152
/* }}} */
153153

154-
/* {{{ proto string bcadd(string left_operand, string right_operand [, int scale])
155-
Returns the sum of two arbitrary precision numbers */
154+
/* {{{ Returns the sum of two arbitrary precision numbers */
156155
PHP_FUNCTION(bcadd)
157156
{
158157
zend_string *left, *right;
@@ -192,8 +191,7 @@ PHP_FUNCTION(bcadd)
192191
}
193192
/* }}} */
194193

195-
/* {{{ proto string bcsub(string left_operand, string right_operand [, int scale])
196-
Returns the difference between two arbitrary precision numbers */
194+
/* {{{ Returns the difference between two arbitrary precision numbers */
197195
PHP_FUNCTION(bcsub)
198196
{
199197
zend_string *left, *right;
@@ -233,8 +231,7 @@ PHP_FUNCTION(bcsub)
233231
}
234232
/* }}} */
235233

236-
/* {{{ proto string bcmul(string left_operand, string right_operand [, int scale])
237-
Returns the multiplication of two arbitrary precision numbers */
234+
/* {{{ Returns the multiplication of two arbitrary precision numbers */
238235
PHP_FUNCTION(bcmul)
239236
{
240237
zend_string *left, *right;
@@ -274,8 +271,7 @@ PHP_FUNCTION(bcmul)
274271
}
275272
/* }}} */
276273

277-
/* {{{ proto string bcdiv(string left_operand, string right_operand [, int scale])
278-
Returns the quotient of two arbitrary precision numbers (division) */
274+
/* {{{ Returns the quotient of two arbitrary precision numbers (division) */
279275
PHP_FUNCTION(bcdiv)
280276
{
281277
zend_string *left, *right;
@@ -322,8 +318,7 @@ PHP_FUNCTION(bcdiv)
322318
}
323319
/* }}} */
324320

325-
/* {{{ proto string bcmod(string left_operand, string right_operand [, int scale])
326-
Returns the modulus of the two arbitrary precision operands */
321+
/* {{{ Returns the modulus of the two arbitrary precision operands */
327322
PHP_FUNCTION(bcmod)
328323
{
329324
zend_string *left, *right;
@@ -369,8 +364,7 @@ PHP_FUNCTION(bcmod)
369364
}
370365
/* }}} */
371366

372-
/* {{{ proto string bcpowmod(string x, string y, string mod [, int scale])
373-
Returns the value of an arbitrary precision number raised to the power of another reduced by a modulus */
367+
/* {{{ Returns the value of an arbitrary precision number raised to the power of another reduced by a modulus */
374368
PHP_FUNCTION(bcpowmod)
375369
{
376370
zend_string *left, *right, *modulus;
@@ -423,8 +417,7 @@ PHP_FUNCTION(bcpowmod)
423417
}
424418
/* }}} */
425419

426-
/* {{{ proto string bcpow(string x, string y [, int scale])
427-
Returns the value of an arbitrary precision number raised to the power of another */
420+
/* {{{ Returns the value of an arbitrary precision number raised to the power of another */
428421
PHP_FUNCTION(bcpow)
429422
{
430423
zend_string *left, *right;
@@ -463,8 +456,7 @@ PHP_FUNCTION(bcpow)
463456
}
464457
/* }}} */
465458

466-
/* {{{ proto string bcsqrt(string operand [, int scale])
467-
Returns the square root of an arbitrary precision number */
459+
/* {{{ Returns the square root of an arbitrary precision number */
468460
PHP_FUNCTION(bcsqrt)
469461
{
470462
zend_string *left;
@@ -502,8 +494,7 @@ PHP_FUNCTION(bcsqrt)
502494
}
503495
/* }}} */
504496

505-
/* {{{ proto int bccomp(string left_operand, string right_operand [, int scale])
506-
Compares two arbitrary precision numbers */
497+
/* {{{ Compares two arbitrary precision numbers */
507498
PHP_FUNCTION(bccomp)
508499
{
509500
zend_string *left, *right;
@@ -545,8 +536,7 @@ PHP_FUNCTION(bccomp)
545536
}
546537
/* }}} */
547538

548-
/* {{{ proto int bcscale([int scale])
549-
Sets default scale parameter for all bc math functions */
539+
/* {{{ Sets default scale parameter for all bc math functions */
550540
PHP_FUNCTION(bcscale)
551541
{
552542
zend_long old_scale, new_scale;

0 commit comments

Comments
 (0)