<?php
new DatePeriod(new DateTime('yesterday'), new DateInterval('P1D'), 'foo');
} catch (Exception $exception) {
echo $exception->getMessage(), "\n";
}
try {
new DatePeriod(new DateTime('yesterday'), new DateInterval('P1D'), 'bar');
} catch (Exception $exception) {
echo $exception->getMessage(), "\n";
}
- Output for 7.1.25 - 7.1.28, 7.2.0 - 7.2.17, 7.3.0 - 7.3.4
- Parse error: syntax error, unexpected '}', expecting end of file in /in/2jGLG on line 4
Process exited with code 255.
preferences:
199.07 ms | 1395 KiB | 34 Q