Skip to content

Conversation

fisharebest
Copy link
Contributor

See https://bugs.php.net/bug.php?id=67960

We reverse the definitions of the constants, so that CAL_DOW_LONG is now 1 and CAL_DOW_SHORT is now 2 so that they correspond with the definitions given in the documentation at http://www.php.net/function.jddayofweek

This means we need to reverse their usage in the code. Note here that previously, CAL_DOW_LONG selected the short names daynames and CAL_DOW_SHORT selected the long names daynamel!

The test script is now driven from the constants - and since we test their numeric values in the expected output, we are checking that they are set consistently.

@smalyshev smalyshev added the Bug label Nov 24, 2014
@php-pulls
Copy link

Comment on behalf of tyrael at php.net:

merged to 5.5 and upwards.

@php-pulls php-pulls closed this Jan 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants