1--TEST--
2time_nanosleep — Delay for a number of seconds and nanoseconds
3--SKIPIF--
4<?php if (!function_exists('time_nanosleep')) die("skip"); ?>
5--CREDITS--
6Àlex Corretgé - alex@corretge.cat
7--FILE--
8<?php
9
10time_nanosleep(0, 1000000000);
11
12?>
13--EXPECTF--
14Fatal error: Uncaught ValueError: Nanoseconds was not in the range 0 to 999 999 999 or seconds was negative in %s:%d
15Stack trace:
16#0 %s(%d): time_nanosleep(0, 1000000000)
17#1 {main}
18  thrown in %s on line %d
19