You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try the following test script. (You may have to generate the fa_IR locale on your system first.)
<?phpsetlocale(LC_ALL, 'fa_IR') || die("Could not set locale!\n");
require_once('autoload.php');
echoPHP81_BC\strftime('%b', time());
You will get a fatal error message:
PHP Fatal error: Uncaught Error: Call to undefined method IntlCalendar::setGregorianChange() in /path/to/test.php:5
Stack trace:
#0 {main}
thrown in /path/to/test.php on line 5
This is because IntlGregorianCalendar::createInstance() will not return an IntlGregorianCalendar when the locale is set to something non-Gregorian. (Note that the error message says it's an IntlCalendar.)
* master:
Tests: use assertThat instead assertMatchesRegularExpression
Fix tests: PHP-7.4 on Windows
Fix tests: PHP-7.4 on Windows
Fix tests
Fix test
Action: add Windows and macOS test
Fix test locale eu
Fix test with PHP-8.3
Actions: update checkout and cache
Test only on ubuntu-latest
Test on matrix
Fix fatal error when using the default PHP locale alphp#17
Code review tweaks
alphp#15 Fix fatal error with non-Gregorian locales
splitbrain
added a commit
to splitbrain/strftime
that referenced
this issue
Jan 26, 2024
* master:
Tests: use assertThat instead assertMatchesRegularExpression
Fix tests: PHP-7.4 on Windows
Fix tests: PHP-7.4 on Windows
Fix tests
Fix test
Action: add Windows and macOS test
Fix test locale eu
Fix test with PHP-8.3
Actions: update checkout and cache
Test only on ubuntu-latest
Test on matrix
Fix fatal error when using the default PHP locale alphp#17
Code review tweaks
alphp#15 Fix fatal error with non-Gregorian locales
Try the following test script. (You may have to generate the
fa_IR
locale on your system first.)You will get a fatal error message:
This is because
IntlGregorianCalendar::createInstance()
will not return anIntlGregorianCalendar
when the locale is set to something non-Gregorian. (Note that the error message says it's anIntlCalendar
.)Pull request: #16
(Source: https://forum.pkp.sfu.ca/t/submission-files-is-not-showing-in-ojs-3-3-0-11/83976/10)
The text was updated successfully, but these errors were encountered: