From: vermersch+php at gmail dot com Operating system: Linux Ubuntu feisty PHP version: 5.2.2 PHP Bug Type: Apache2 related Bug description: Syslog add program to the log message (not duplicate of #36808)
Description: ------------ I use syslog-ng as logging system and call it with php to log my exact message. The problem is that PHP add the ident string of my openlog to the message. My syslog-ng destination is configured like this : destination testing { file( "/server/alpha/myapp/testing.log" template("$MESSAGE\n") ); }; log { source(s_all); destination(testing); }; If I leave the ident string empty, I still have the : added Reproduce code: --------------- function syslog($logFacility = false) { $r = openlog("testing", LOG_CONS, LOG_USER); if(!$r) return false; $r = syslog(LOG_NOTICE, "my message to log"); if(!$r) return false; closelog(); } Expected result: ---------------- The result I expect is : my message to log without any garbage Actual result: -------------- The actual result is : testing: my message to log -- Edit bug report at http://bugs.php.net/?id=41526&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41526&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41526&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41526&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41526&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41526&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41526&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41526&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41526&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41526&r=support Expected behavior: http://bugs.php.net/fix.php?id=41526&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41526&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41526&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41526&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41526&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41526&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41526&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41526&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41526&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41526&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41526&r=mysqlcfg