Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ext/uri/php_uri.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ enum UrlValidationErrorType
case InvalidUrlUnit;
case SpecialSchemeMissingFollowingSolidus;
case MissingSchemeNonRelativeUrl;
case InvalidReverseSoldius;
case InvalidReverseSolidus;
case InvalidCredentials;
case HostMissing;
case PortOutOfRange;
Expand Down
4 changes: 2 additions & 2 deletions ext/uri/php_uri_arginfo.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions ext/uri/php_uri_decl.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions ext/uri/tests/invalid_reverse_solidus_enum.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
--TEST--
Uri\WhatWg\UrlValidationErrorType uses the correct InvalidReverseSolidus spelling
--EXTENSIONS--
uri
--FILE--
<?php
$caseNames = array_map(
static fn($case) => $case->name,
Uri\WhatWg\UrlValidationErrorType::cases(),
);

var_dump(in_array('InvalidReverseSolidus', $caseNames, true));
var_dump(in_array('InvalidReverseSoldius', $caseNames, true));
?>
--EXPECT--
bool(true)
bool(false)
2 changes: 1 addition & 1 deletion ext/uri/uri_parser_whatwg.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ static const char *fill_errors(zval *errors)
ZVAL_TRUE(&failure);
break;
case LXB_URL_ERROR_TYPE_INVALID_REVERSE_SOLIDUS:
error_str = "InvalidReverseSoldius";
error_str = "InvalidReverseSolidus";
ZVAL_FALSE(&failure);
break;
case LXB_URL_ERROR_TYPE_INVALID_CREDENTIALS:
Expand Down
Loading