Skip to content

Commit b03e59e

Browse files
committed
Revert ValueError for empty username
1 parent 9d79ad6 commit b03e59e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

ext/pdo/pdo_dbh.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,6 @@ PHP_METHOD(PDO, __construct)
242242
Z_PARAM_ARRAY_OR_NULL(options)
243243
ZEND_PARSE_PARAMETERS_END();
244244

245-
if (username && usernamelen == 0) {
246-
zend_argument_value_error(2, "cannot be empty");
247-
RETURN_THROWS();
248-
}
249-
250245
/* parse the data source name */
251246
colon = strchr(data_source, ':');
252247

0 commit comments

Comments
 (0)