| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| } catch (Error $e) { | ||
| echo $e->getMessage(), PHP_EOL; | ||
| } | ||
|
|
||
| ?> | ||
| --EXPECTF-- | ||
| Unknown or bad format (foo%0bar) at position 0 (f) while unserializing: The timezone could not be found in the database |
There was a problem hiding this comment.
| } catch (Error $e) { | |
| echo $e->getMessage(), PHP_EOL; | |
| } | |
| ?> | |
| --EXPECTF-- | |
| Unknown or bad format (foo%0bar) at position 0 (f) while unserializing: The timezone could not be found in the database | |
| } catch (Throwable $e) { | |
| echo $e::class, ': ', $e->getMessage(), "\n"; | |
| } | |
| ?> | |
| --EXPECTF-- | |
| Error: Unknown or bad format (foo%0bar) at position 0 (f) while unserializing: The timezone could not be found in the database |
Sorry, something went wrong.
| } catch (ValueError $e) { | ||
| echo $e->getMessage(), PHP_EOL; | ||
| } | ||
|
|
||
| ?> | ||
| --EXPECT-- | ||
| DatePeriod::createFromISO8601String(): Argument #1 ($specification) must not contain any null bytes No newline at end of file |
There was a problem hiding this comment.
| } catch (ValueError $e) { | |
| echo $e->getMessage(), PHP_EOL; | |
| } | |
| ?> | |
| --EXPECT-- | |
| DatePeriod::createFromISO8601String(): Argument #1 ($specification) must not contain any null bytes | |
| } catch (Throwable $e) { | |
| echo $e::class, ': ', $e->getMessage(), "\n"; | |
| } | |
| ?> | |
| --EXPECT-- | |
| ValueError: DatePeriod::createFromISO8601String(): Argument #1 ($specification) must not contain any null bytes | |
Sorry, something went wrong.
| } catch (DateMalformedStringException $e) { | ||
| echo $e->getMessage(), "\n"; | ||
| } | ||
|
|
||
| ?> | ||
| --EXPECTF-- | ||
| DateTime::modify(): Failed to parse time string (foo%0bar) at position %s |
There was a problem hiding this comment.
| } catch (DateMalformedStringException $e) { | |
| echo $e->getMessage(), "\n"; | |
| } | |
| ?> | |
| --EXPECTF-- | |
| DateTime::modify(): Failed to parse time string (foo%0bar) at position %s | |
| } catch (Throwable $e) { | |
| echo $e::class, ': ', $e->getMessage(), "\n"; | |
| } | |
| ?> | |
| --EXPECTF-- | |
| DateMalformedStringException: DateTime::modify(): Failed to parse time string (foo%0bar) at position %s |
Sorry, something went wrong.
| } catch (ValueError $e) { | ||
| echo $e->getMessage(), PHP_EOL; | ||
| } | ||
|
|
||
| ?> | ||
| --EXPECT-- | ||
| date_default_timezone_set(): Argument #1 ($timezoneId) must not contain any null bytes No newline at end of file |
There was a problem hiding this comment.
| } catch (ValueError $e) { | |
| echo $e->getMessage(), PHP_EOL; | |
| } | |
| ?> | |
| --EXPECT-- | |
| date_default_timezone_set(): Argument #1 ($timezoneId) must not contain any null bytes | |
| } catch (Throwable $e) { | |
| echo $e::class, ': ', $e->getMessage(), "\n"; | |
| } | |
| ?> | |
| --EXPECT-- | |
| ValueError: date_default_timezone_set(): Argument #1 ($timezoneId) must not contain any null bytes | |
Sorry, something went wrong.
| Stack trace: | ||
| #0 %s(%d): DateInterval->__construct('foo\x00bar') | ||
| #1 {main} | ||
| thrown in %s on line %d |
There was a problem hiding this comment.
| thrown in %s on line %d | |
| } catch (Throwable $e) { | |
| echo $e::class, ': ', $e->getMessage(), "\n"; | |
| } | |
| ?> | |
| --EXPECTF-- | |
| ValueError: DateInterval::__construct(): Argument #1 ($duration) must not contain any null bytes |
Or was there a reason for catching DateMalformedIntervalStringException?
Sorry, something went wrong.
| DateInterval::createFromDateString("foo\0bar"); | ||
|
|
||
| ?> | ||
| --EXPECTF-- | ||
| Fatal error: Uncaught ValueError: DateInterval::createFromDateString(): Argument #1 ($datetime) must not contain any null bytes in %s:%d | ||
| Stack trace: | ||
| #0 %s(%d): DateInterval::createFromDateString('foo\x00bar') | ||
| #1 {main} | ||
| thrown in %s on line %d No newline at end of file |
There was a problem hiding this comment.
| DateInterval::createFromDateString("foo\0bar"); | |
| ?> | |
| --EXPECTF-- | |
| Fatal error: Uncaught ValueError: DateInterval::createFromDateString(): Argument #1 ($datetime) must not contain any null bytes in %s:%d | |
| Stack trace: | |
| #0 %s(%d): DateInterval::createFromDateString('foo\x00bar') | |
| #1 {main} | |
| thrown in %s on line %d | |
| try { | |
| DateInterval::createFromDateString("foo\0bar"); | |
| } catch(Throwable $e) { | |
| echo $e::class, ': ', $e->getMessage(), "\n"; | |
| } | |
| ?> | |
| --EXPECTF-- | |
| ValueError: DateInterval::createFromDateString(): Argument #1 ($datetime) must not contain any null bytes | |
Or was there a reason for not catching?
Sorry, something went wrong.
| date_interval_create_from_date_string("foo\0bar"); | ||
|
|
||
| ?> | ||
| --EXPECTF-- | ||
| Fatal error: Uncaught ValueError: date_interval_create_from_date_string(): Argument #1 ($datetime) must not contain any null bytes in %s:%d | ||
| Stack trace: | ||
| #0 %s(%d): date_interval_create_from_date_string('foo\x00bar') | ||
| #1 {main} | ||
| thrown in %s on line %d No newline at end of file |
There was a problem hiding this comment.
| date_interval_create_from_date_string("foo\0bar"); | |
| ?> | |
| --EXPECTF-- | |
| Fatal error: Uncaught ValueError: date_interval_create_from_date_string(): Argument #1 ($datetime) must not contain any null bytes in %s:%d | |
| Stack trace: | |
| #0 %s(%d): date_interval_create_from_date_string('foo\x00bar') | |
| #1 {main} | |
| thrown in %s on line %d | |
| try { | |
| date_interval_create_from_date_string("foo\0bar"); | |
| } catch(Throwable $e) { | |
| echo $e::class, ': ', $e->getMessage(), "\n"; | |
| } | |
| ?> | |
| --EXPECTF-- | |
| ValueError: date_interval_create_from_date_string(): Argument #1 ($datetime) must not contain any null bytes | |
Or was there any reason for not catching?
Sorry, something went wrong.
| new DateTimeImmutable("foo\0bar"); | ||
|
|
||
| ?> | ||
| --EXPECTF-- | ||
| Fatal error: Uncaught ValueError: DateTimeImmutable::__construct(): Argument #1 ($datetime) must not contain any null bytes in %s:%d | ||
| Stack trace: | ||
| #0 %s(%d): DateTimeImmutable->__construct('foo\x00bar') | ||
| #1 {main} | ||
| thrown in %s on line %d No newline at end of file |
There was a problem hiding this comment.
| new DateTimeImmutable("foo\0bar"); | |
| ?> | |
| --EXPECTF-- | |
| Fatal error: Uncaught ValueError: DateTimeImmutable::__construct(): Argument #1 ($datetime) must not contain any null bytes in %s:%d | |
| Stack trace: | |
| #0 %s(%d): DateTimeImmutable->__construct('foo\x00bar') | |
| #1 {main} | |
| thrown in %s on line %d | |
| try { | |
| new DateTimeImmutable("foo\0bar"); | |
| } catch(Throwable $e) { | |
| echo $e::class, ': ', $e->getMessage(), "\n"; | |
| } | |
| ?> | |
| --EXPECT-- | |
| ValueError: DateTimeImmutable::__construct(): Argument #1 ($datetime) must not contain any null bytes | |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Created a separate PR: #22997