mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

Co-authored-by: Gina Peter Banyard <girgias@php.net> Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
25 lines
704 B
PHP
25 lines
704 B
PHP
--TEST--
|
|
IntlCalendar::set() basic test
|
|
--INI--
|
|
date.timezone=Atlantic/Azores
|
|
--EXTENSIONS--
|
|
intl
|
|
--FILE--
|
|
<?php
|
|
ini_set("intl.error_level", E_WARNING);
|
|
ini_set("intl.default_locale", "nl");
|
|
|
|
$intlcal = IntlCalendar::createInstance();
|
|
var_dump($intlcal->set(IntlCalendar::FIELD_DAY_OF_MONTH, 2));
|
|
var_dump($intlcal->get(IntlCalendar::FIELD_DAY_OF_MONTH));
|
|
var_dump(intlcal_set($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH, 3));
|
|
var_dump($intlcal->get(IntlCalendar::FIELD_DAY_OF_MONTH));
|
|
|
|
?>
|
|
--EXPECTF--
|
|
bool(true)
|
|
int(2)
|
|
|
|
Deprecated: Function intlcal_set() is deprecated since 8.4, use IntlCalendar::set(), IntlCalendar::setDate(), or IntlCalendar::setDateTime() instead in %s on line %d
|
|
bool(true)
|
|
int(3)
|