8000 Fixing incorrect error message when passing null to join/implode's array parameter by CViniciusSDias · Pull Request #12683 · php/php-src · GitHub
[go: up one dir, main page]

Skip to content

Fixing incorrect error message when passing null to join/implode's array parameter #12683

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Dec 1, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Removing deprecation test
  • Loading branch information
CViniciusSDias committed Nov 22, 2023
commit b56c486a1797f71ea598f0e74cdeae37e2262644
11 changes: 0 additions & 11 deletions ext/standard/tests/strings/implode_error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,7 @@ try {
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}

/* NULL as glue */
try {
var_dump( implode(NULL, "abcd") );
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECTF--
implode(): Argument #2 ($array) must be of type array, null given
implode(): Argument #2 ($array) must be of type array, null given
implode(): Argument #2 ($array) must be of type array, string given

Deprecated: implode(): Passing null to parameter #1 ($separator) of type array|string is deprecated in %s on line %d
implode(): Argument #2 ($array) must be of type array, string given
0