1--TEST--
2Test syslog() function : nul byte in message
3--SKIPIF--
4<?php
5if(substr(PHP_OS, 0, 3) == "WIN")
6  die("skip Won't run on Windows");
7?>
8--FILE--
9<?php
10$priority = LOG_WARNING;
11$message = "A simple \0 message";
12
13openlog('PHPT', LOG_PERROR, LOG_USER);
14syslog($priority, $message);
15
16?>
17--EXPECTF--
18%SPHPT%S%r(:|-)%r A simple \x00 message
19