Skip to content

IntlDateFormatter with 'C' locale still broken on PHP 8.2 #12943

Closed
@Girgias

Description

@Girgias
<?php

$a = new IntlDateFormatter('C', IntlDateFormatter::FULL, IntlDateFormatter::FULL);
var_dump($a->getLocale(ULOC_VALID_LOCALE));
?>

Result:

Fatal error: Uncaught Error: Found unconstructed IntlDateFormatter in /in/qCifp:6
Stack trace:
#0 /in/qCifp(6): IntlDateFormatter->getLocale(1)
#1 {main}
  thrown in /in/qCifp on line 6

Process exited with code 255.

I would expect a notice or warning but not the fatal error. Please can you explain the usage?

Originally posted by @hormus in #12568 (comment)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions