Skip to content

Commit a370c3f

Browse files
committed
Fix UNKNOWN default values in stubs
1 parent fc8cfb1 commit a370c3f

27 files changed

+185
-216
lines changed

ext/gd/gd.c

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3135,19 +3135,18 @@ static void php_imagettftext_common(INTERNAL_FUNCTION_PARAMETERS, int mode, int
31353135
double ptsize, angle;
31363136
char *str = NULL, *fontname = NULL;
31373137
char *error = NULL;
3138-
int argc = ZEND_NUM_ARGS();
31393138
gdFTStringExtra strex = {0};
31403139

31413140
if (mode == TTFTEXT_BBOX) {
3142-
if (argc < 4 || argc > ((extended) ? 5 : 4)) {
3143-
ZEND_WRONG_PARAM_COUNT();
3144-
} else if (zend_parse_parameters(argc, "ddss|a", &ptsize, &angle, &fontname, &fontname_len, &str, &str_len, &EXT) == FAILURE) {
3141+
if (extended && zend_parse_parameters(ZEND_NUM_ARGS(), "ddss|a!", &ptsize, &angle, &fontname, &fontname_len, &str, &str_len, &EXT) == FAILURE) {
3142+
RETURN_THROWS();
3143+
} else if (zend_parse_parameters(ZEND_NUM_ARGS(), "ddss", &ptsize, &angle, &fontname, &fontname_len, &str, &str_len) == FAILURE) {
31453144
RETURN_THROWS();
31463145
}
31473146
} else {
3148-
if (argc < 8 || argc > ((extended) ? 9 : 8)) {
3149-
ZEND_WRONG_PARAM_COUNT();
3150-
} else if (zend_parse_parameters(argc, "Oddlllss|a", &IM, gd_image_ce, &ptsize, &angle, &x, &y, &col, &fontname, &fontname_len, &str, &str_len, &EXT) == FAILURE) {
3147+
if (extended && zend_parse_parameters(ZEND_NUM_ARGS(), "Oddlllss|a!", &IM, gd_image_ce, &ptsize, &angle, &x, &y, &col, &fontname, &fontname_len, &str, &str_len, &EXT) {
3148+
RETURN_THROWS();
3149+
} else if (zend_parse_parameters(ZEND_NUM_ARGS(), "Oddlllss", &IM, gd_image_ce, &ptsize, &angle, &x, &y, &col, &fontname, &fontname_len, &str, &str_len) == FAILURE) {
31513150
RETURN_THROWS();
31523151
}
31533152
im = php_gd_libgdimageptr_from_zval_p(IM);
@@ -3819,7 +3818,7 @@ PHP_FUNCTION(imageaffinematrixget)
38193818
zval *tmp;
38203819
int res = GD_FALSE, i;
38213820

3822-
if (zend_parse_parameters(ZEND_NUM_ARGS(), "l|z", &type, &options) == FAILURE) {
3821+
if (zend_parse_parameters(ZEND_NUM_ARGS(), "lz", &type, &options) == FAILURE) {
38233822
RETURN_THROWS();
38243823
}
38253824

@@ -3859,11 +3858,6 @@ PHP_FUNCTION(imageaffinematrixget)
38593858
case GD_AFFINE_SHEAR_VERTICAL: {
38603859
double angle;
38613860

3862-
if (!options) {
3863-
zend_argument_type_error(2, "must be of type int|float when using rotate or shear");
3864-
RETURN_THROWS();
3865-
}
3866-
38673861
angle = zval_get_double(options);
38683862

38693863
if (type == GD_AFFINE_SHEAR_HORIZONTAL) {

ext/gd/gd.stub.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,9 @@ function imagesetclip(GdImage $im, int $x1, int $x2, int $y1, int $y2): bool {}
215215
function imagegetclip(GdImage $im): array {}
216216

217217
#ifdef HAVE_GD_FREETYPE
218-
function imageftbbox(float $size, float $angle, string $font_file, string $text, array $extrainfo = UNKNOWN): array|false {}
218+
function imageftbbox(float $size, float $angle, string $font_file, string $text, ?array $extrainfo = null): array|false {}
219219

220-
function imagefttext(GdImage $im, float $size, float $angle, int $x, int $y, int $col, string $font_file, string $text, array $extrainfo = UNKNOWN): array|false {}
220+
function imagefttext(GdImage $im, float $size, float $angle, int $x, int $y, int $col, string $font_file, string $text, ?array $extrainfo = null): array|false {}
221221

222222
function imagettfbbox(float $size, float $angle, string $font_file, string $text): array|false {}
223223

@@ -241,8 +241,8 @@ function imagescale(GdImage $im, int $new_width, int $new_height = -1, int $mode
241241

242242
function imageaffine(GdImage $im, array $affine, ?array $clip = null): GdImage|false {}
243243

244-
/** @param array|int|float $options */
245-
function imageaffinematrixget(int $type, $options = UNKNOWN): array|false {}
244+
/** @param array|float $options */
245+
function imageaffinematrixget(int $type, $options): array|false {}
246246

247247
function imageaffinematrixconcat(array $m1, array $m2): array|false {}
248248

ext/gd/gd_arginfo.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 540beb37f18b81102e7977447399757e865285c2 */
2+
* Stub hash: 0fa62602a13cbcdcabfd37d6ffc6f5079eeb0838 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gd_info, 0, 0, IS_ARRAY, 0)
55
ZEND_END_ARG_INFO()
@@ -459,7 +459,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imageftbbox, 0, 4, MAY_BE_ARRAY|
459459
ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0)
460460
ZEND_ARG_TYPE_INFO(0, font_file, IS_STRING, 0)
461461
ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0)
462-
ZEND_ARG_TYPE_INFO(0, extrainfo, IS_ARRAY, 0)
462+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, extrainfo, IS_ARRAY, 1, "null")
463463
ZEND_END_ARG_INFO()
464464
#endif
465465

@@ -473,7 +473,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imagefttext, 0, 8, MAY_BE_ARRAY|
473473
ZEND_ARG_TYPE_INFO(0, col, IS_LONG, 0)
474474
ZEND_ARG_TYPE_INFO(0, font_file, IS_STRING, 0)
475475
ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0)
476-
ZEND_ARG_TYPE_INFO(0, extrainfo, IS_ARRAY, 0)
476+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, extrainfo, IS_ARRAY, 1, "null")
477477
ZEND_END_ARG_INFO()
478478
#endif
479479

@@ -547,7 +547,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_imageaffine, 0, 2, GdImage,
547547
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, clip, IS_ARRAY, 1, "null")
548548
ZEND_END_ARG_INFO()
549549

550-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imageaffinematrixget, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
550+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imageaffinematrixget, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
551551
ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0)
552552
ZEND_ARG_INFO(0, options)
553553
ZEND_END_ARG_INFO()

ext/oci8/oci8.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ void php_oci_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent, int exclus
877877
Z_PARAM_STRING(username, username_len)
878878
Z_PARAM_STRING(password, password_len)
879879
Z_PARAM_OPTIONAL
880-
Z_PARAM_STRING(dbname, dbname_len)
880+
Z_PARAM_STRING_OR_NULL(dbname, dbname_len)
881881
Z_PARAM_STRING(charset, charset_len)
882882
Z_PARAM_LONG(session_mode)
883883
ZEND_PARSE_PARAMETERS_END();

ext/oci8/oci8.stub.php

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -69,31 +69,31 @@ function oci_lob_seek(OCILob $lob_descriptor, int $offset, int $whence = OCI_SEE
6969

7070
function oci_lob_size(OCILob $lob_descriptor): int|false {}
7171

72-
function oci_lob_write(OCILob $lob_descriptor, string $string, int $length = UNKNOWN): int|false {}
72+
function oci_lob_write(OCILob $lob_descriptor, string $string, ?int $length = null): int|false {}
7373

7474
function oci_lob_append(OCILob $lob_descriptor_to, OCILob $lob_descriptor_from): bool {}
7575

7676
function oci_lob_truncate(OCILob $lob_descriptor, int $length = 0): bool {}
7777

78-
function oci_lob_erase(OCILob $lob_descriptor, int $offset = UNKNOWN, int $length = UNKNOWN): int|false {}
78+
function oci_lob_erase(OCILob $lob_descriptor, ?int $offset = null, ?int $length = null): int|false {}
7979

8080
function oci_lob_flush(OCILob $lob_descriptor, int $flag = 0): bool {}
8181

8282
function ocisetbufferinglob(OCILob $lob_descriptor, bool $mode): bool {}
8383

8484
function ocigetbufferinglob(OCILob $lob_descriptor): bool {}
8585

86-
function oci_lob_copy(OCILob $lob_descriptor_to, OCILob $lob_descriptor_from, int $length = UNKNOWN): bool {}
86+
function oci_lob_copy(OCILob $lob_descriptor_to, OCILob $lob_descriptor_from, ?int $length = null): bool {}
8787

8888
function oci_lob_is_equal(OCILob $lob_descriptor_first, OCILob $lob_descriptor_second): bool {}
8989

90-
function oci_lob_export(OCILob $lob_descriptor, string $path, int $start = UNKNOWN, int $length = UNKNOWN): bool {}
90+
function oci_lob_export(OCILob $lob_descriptor, string $path, ?int $start = null, ?int $length = null): bool {}
9191

9292
/**
9393
* @alias oci_lob_export
9494
* @deprecated
9595
*/
96-
function ociwritelobtofile(OCILob $lob_descriptor, string $path, int $start = UNKNOWN, int $length = UNKNOWN): bool {}
96+
function ociwritelobtofile(OCILob $lob_descriptor, string $path, ?int $start = null, ?int $length = null): bool {}
9797

9898
/**
9999
* @param resource $connection_resource
@@ -332,50 +332,50 @@ function ocilogoff($connection_resource): bool|null {}
332332
/**
333333
* @return resource|false
334334
*/
335-
function oci_new_connect(string $username, string $password, string $connection_string = UNKNOWN, string $character_set = '', int $session_mode = OCI_DEFAULT) {}
335+
function oci_new_connect(string $username, string $password, ?string $connection_string = null, string $character_set = '', int $session_mode = OCI_DEFAULT) {}
336336

337337
/**
338338
* @return resource|false
339339
* @alias oci_new_connect
340340
* @deprecated
341341
*/
342-
function ocinlogon(string $username, string $password, string $connection_string = UNKNOWN, string $character_set = '', int $session_mode = OCI_DEFAULT) {}
342+
function ocinlogon(string $username, string $password, ?string $connection_string = null, string $character_set = '', int $session_mode = OCI_DEFAULT) {}
343343

344344
/**
345345
* @return resource|false
346346
*/
347-
function oci_connect(string $username, string $password, string $connection_string = UNKNOWN, string $character_set = '', int $session_mode = OCI_DEFAULT) {}
347+
function oci_connect(string $username, string $password, ?string $connection_string = null, string $character_set = '', int $session_mode = OCI_DEFAULT) {}
348348

349349
/**
350350
* @return resource|false
351351
* @alias oci_connect
352352
* @deprecated
353353
*/
354-
function ocilogon(string $username, string $password, string $connection_string = UNKNOWN, string $character_set = '', int $session_mode = OCI_DEFAULT) {}
354+
function ocilogon(string $username, string $password, ?string $connection_string = null, string $character_set = '', int $session_mode = OCI_DEFAULT) {}
355355

356356
/**
357357
* @return resource|false
358358
*/
359-
function oci_pconnect(string $username, string $password, string $connection_string = UNKNOWN, string $character_set = '', int $session_mode = OCI_DEFAULT) {}
359+
function oci_pconnect(string $username, string $password, ?string $connection_string = null, string $character_set = '', int $session_mode = OCI_DEFAULT) {}
360360

361361
/**
362362
* @return resource|false
363363
* @alias oci_pconnect
364364
* @deprecated
365365
*/
366-
function ociplogon(string $username, string $password, string $connection_string = UNKNOWN, string $character_set = '', int $session_mode = OCI_DEFAULT) {}
366+
function ociplogon(string $username, string $password, ?string $connection_string = null, string $character_set = '', int $session_mode = OCI_DEFAULT) {}
367367

368368
/**
369-
* @param resource $connection_or_statement_resource
369+
* @param resource|null $connection_or_statement_resource
370370
*/
371-
function oci_error($connection_or_statement_resource = UNKNOWN): array|false {}
371+
function oci_error($connection_or_statement_resource = null): array|false {}
372372

373373
/**
374374
* @param resource|null $connection_or_statement_resource
375375
* @alias oci_error
376376
* @deprecated
377377
*/
378-
function ocierror($connection_or_statement_resource = UNKNOWN): array|false {}
378+
function ocierror($connection_or_statement_resource = null): array|false {}
379379

380380
/**
381381
* @param resource $statement_resource
@@ -592,14 +592,14 @@ function ocicolltrim(OCICollection $collection, int $number): bool {}
592592
/**
593593
* @param resource $connection_resource
594594
*/
595-
function oci_new_collection($connection_resource, string $type_name, string $schema_name = UNKNOWN): OCICollection|false {}
595+
function oci_new_collection($connection_resource, string $type_name, ?string $schema_name = null): OCICollection|false {}
596596

597597
/**
598598
* @param resource $connection_resource
599599
* @alias oci_new_collection
600600
* @deprecated
601601
*/
602-
function ocinewcollection($connection_resource, string $type_name, string $schema_name = UNKNOWN): OCICollection|false {}
602+
function ocinewcollection($connection_resource, string $type_name, ?string $schema_name = null): OCICollection|false {}
603603

604604
/**
605605
* @param resource $connection_resource
@@ -676,7 +676,7 @@ public function size() {}
676676
* @alias oci_lob_write
677677
* @return int|false
678678
*/
679-
public function write(string $string, int $length = UNKNOWN) {}
679+
public function write(string $string, ?int $length = null) {}
680680

681681
/**
682682
* @alias oci_lob_append
@@ -694,7 +694,7 @@ public function truncate(int $length = 0) {}
694694
* @alias oci_lob_erase
695695
* @return int|false
696696
*/
697-
public function erase(int $offset = UNKNOWN, int $length = UNKNOWN) {}
697+
public function erase(?int $offset = null, ?int $length = null) {}
698698

699699
/**
700700
* @alias oci_lob_flush
@@ -718,13 +718,13 @@ public function getbuffering() {}
718718
* @alias oci_lob_export
719719
* @return bool
720720
*/
721-
public function writetofile(string $path, int $start = UNKNOWN, int $length = UNKNOWN) {}
721+
public function writetofile(string $path, ?int $start = null, ?int $length = null) {}
722722

723723
/**
724724
* @alias oci_lob_export
725725
* @return bool
726726
*/
727-
public function export(string $path, int $start = UNKNOWN, int $length = UNKNOWN) {}
727+
public function export(string $path, ?int $start = null, ?int $length = null) {}
728728

729729
/**
730730
* @alias oci_lob_write_temporary

ext/oci8/oci8_arginfo.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 447880a4bc4add36beab835cc07c09a254dc0c2b */
2+
* Stub hash: 2d553815c21edd58bc29b1ca8d294d5750fd7312 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_oci_define_by_name, 0, 3, _IS_BOOL, 0)
55
ZEND_ARG_INFO(0, statement_resource)
@@ -80,7 +80,7 @@ ZEND_END_ARG_INFO()
8080
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_oci_lob_write, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
8181
ZEND_ARG_OBJ_INFO(0, lob_descriptor, OCILob, 0)
8282
ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
83-
ZEND_ARG_TYPE_INFO(0, length, IS_LONG, 0)
83+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, length, IS_LONG, 1, "null")
8484
ZEND_END_ARG_INFO()
8585

8686
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_oci_lob_append, 0, 2, _IS_BOOL, 0)
@@ -95,8 +95,8 @@ ZEND_END_ARG_INFO()
9595

9696
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_oci_lob_erase, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
9797
ZEND_ARG_OBJ_INFO(0, lob_descriptor, OCILob, 0)
98-
ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
99-
ZEND_ARG_TYPE_INFO(0, length, IS_LONG, 0)
98+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, offset, IS_LONG, 1, "null")
99+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, length, IS_LONG, 1, "null")
100100
ZEND_END_ARG_INFO()
101101

102102
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_oci_lob_flush, 0, 1, _IS_BOOL, 0)
@@ -114,7 +114,7 @@ ZEND_END_ARG_INFO()
114114
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_oci_lob_copy, 0, 2, _IS_BOOL, 0)
115115
ZEND_ARG_OBJ_INFO(0, lob_descriptor_to, OCILob, 0)
116116
ZEND_ARG_OBJ_INFO(0, lob_descriptor_from, OCILob, 0)
117-
ZEND_ARG_TYPE_INFO(0, length, IS_LONG, 0)
117+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, length, IS_LONG, 1, "null")
118118
ZEND_END_ARG_INFO()
119119

120120
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_oci_lob_is_equal, 0, 2, _IS_BOOL, 0)
@@ -125,8 +125,8 @@ ZEND_END_ARG_INFO()
125125
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_oci_lob_export, 0, 2, _IS_BOOL, 0)
126126
ZEND_ARG_OBJ_INFO(0, lob_descriptor, OCILob, 0)
127127
ZEND_ARG_TYPE_INFO(0, path, IS_STRING, 0)
128-
ZEND_ARG_TYPE_INFO(0, start, IS_LONG, 0)
129-
ZEND_ARG_TYPE_INFO(0, length, IS_LONG, 0)
128+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, start, IS_LONG, 1, "null")
129+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, length, IS_LONG, 1, "null")
130130
ZEND_END_ARG_INFO()
131131

132132
#define arginfo_ociwritelobtofile arginfo_oci_lob_export
@@ -254,7 +254,7 @@ ZEND_END_ARG_INFO()
254254
ZEND_BEGIN_ARG_INFO_EX(arginfo_oci_new_connect, 0, 0, 2)
255255
ZEND_ARG_TYPE_INFO(0, username, IS_STRING, 0)
256256
ZEND_ARG_TYPE_INFO(0, password, IS_STRING, 0)
257-
ZEND_ARG_TYPE_INFO(0, connection_string, IS_STRING, 0)
257+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, connection_string, IS_STRING, 1, "null")
258258
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, character_set, IS_STRING, 0, "\'\'")
259259
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, session_mode, IS_LONG, 0, "OCI_DEFAULT")
260260
ZEND_END_ARG_INFO()
@@ -270,7 +270,7 @@ ZEND_END_ARG_INFO()
270270
#define arginfo_ociplogon arginfo_oci_new_connect
271271

272272
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_oci_error, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE)
273-
ZEND_ARG_INFO(0, connection_or_statement_resource)
273+
ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, connection_or_statement_resource, "null")
274274
ZEND_END_ARG_INFO()
275275

276276
#define arginfo_ocierror arginfo_oci_error
@@ -426,7 +426,7 @@ ZEND_END_ARG_INFO()
426426
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_oci_new_collection, 0, 2, OCICollection, MAY_BE_FALSE)
427427
ZEND_ARG_INFO(0, connection_resource)
428428
ZEND_ARG_TYPE_INFO(0, type_name, IS_STRING, 0)
429-
ZEND_ARG_TYPE_INFO(0, schema_name, IS_STRING, 0)
429+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, schema_name, IS_STRING, 1, "null")
430430
ZEND_END_ARG_INFO()
431431

432432
#define arginfo_ocinewcollection arginfo_oci_new_collection
@@ -471,7 +471,7 @@ ZEND_END_ARG_INFO()
471471

472472
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_OCILob_write, 0, 0, 1)
473473
ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
474-
ZEND_ARG_TYPE_INFO(0, length, IS_LONG, 0)
474+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, length, IS_LONG, 1, "null")
475475
ZEND_END_ARG_INFO()
476476

477477
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_OCILob_append, 0, 0, 1)
@@ -483,8 +483,8 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_OCILob_truncate, 0, 0, 0)
483483
ZEND_END_ARG_INFO()
484484

485485
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_OCILob_erase, 0, 0, 0)
486-
ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
487-
ZEND_ARG_TYPE_INFO(0, length, IS_LONG, 0)
486+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, offset, IS_LONG, 1, "null")
487+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, length, IS_LONG, 1, "null")
488488
ZEND_END_ARG_INFO()
489489

490490
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_OCILob_flush, 0, 0, _IS_BOOL, 0)
@@ -499,8 +499,8 @@ ZEND_END_ARG_INFO()
499499

500500
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_OCILob_writetofile, 0, 0, 1)
501501
ZEND_ARG_TYPE_INFO(0, path, IS_STRING, 0)
502-
ZEND_ARG_TYPE_INFO(0, start, IS_LONG, 0)
503-
ZEND_ARG_TYPE_INFO(0, length, IS_LONG, 0)
502+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, start, IS_LONG, 1, "null")
503+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, length, IS_LONG, 1, "null")
504504
ZEND_END_ARG_INFO()
505505

506506
#define arginfo_class_OCILob_export arginfo_class_OCILob_writetofile

0 commit comments

Comments
 (0)