Skip to content

Promote Intl warnings to standard ValueError #5669

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

Closed
wants to merge 8 commits into from
Closed
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
Fix error message
  • Loading branch information
Girgias committed Jul 29, 2020
commit cacb1433f845d55fb7c8469a553a447476e93fd0
6 changes: 3 additions & 3 deletions ext/intl/calendar/calendar_methods.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ static void _php_intlcal_before_after(

when_co = Z_INTL_CALENDAR_P(when_object);
if (when_co->ucal == NULL) {
zend_argument_error(NULL, 2, "object is not fully initialized");
zend_argument_error(NULL, 2, "is uninitialized");
RETURN_THROWS();
}

Expand Down Expand Up @@ -715,7 +715,7 @@ U_CFUNC PHP_FUNCTION(intlcal_is_equivalent_to)

other_co = Z_INTL_CALENDAR_P(other_object);
if (other_co->ucal == NULL) {
zend_argument_error(NULL, 2, "object is not fully initialized");
zend_argument_error(NULL, 2, "is uninitialized");
RETURN_THROWS();
}

Expand Down Expand Up @@ -853,7 +853,7 @@ U_CFUNC PHP_FUNCTION(intlcal_equals)
CALENDAR_METHOD_FETCH_OBJECT;
other_co = Z_INTL_CALENDAR_P(other_object);
if (other_co->ucal == NULL) {
zend_argument_error(NULL, 2, "object is not fully initialized");
zend_argument_error(NULL, 2, "is uninitialized");
RETURN_THROWS();
}

Expand Down