#50280 [NEW]: XSLT generates strange result
From: jiangcat at gmail dot com Operating system: Centos 5.2 PHP version: 5.2.11 PHP Bug Type: XSLT related Bug description: XSLT generates strange result Description: XSLT processor occasionally generates improper result with the XML and XSL data inputted. Even worse, it happens with out any sign or regular operation, which means I can't reproduce this bug. With the same XML + XSL, it gives a perfect result sometimes, but occationally, a buggy result. The reproduce code is just an idea of what's happening, cuz the actual code I'm running is way too long to submit here. Please ask for it if you could identify this as a BUG, and I'll submit further info. Reproduce code: --- XML: ... 1 2 ... XSL: ... <for-each select="/root/*"> SomeHash.set('<xsl:value-of select="name()" />', <xsl:value-of select="." />); </for-each> ... Expected result: SomeHash.set('a', 1); SomeHash.set('b', 2); Actual result: -- The result could be such a mass SOMETIMES: SomeHash.set('a', 1b2; -- Edit bug report at http://bugs.php.net/?id=50280&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50280&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50280&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50280&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50280&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50280&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50280&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50280&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50280&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50280&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50280&r=support Expected behavior: http://bugs.php.net/fix.php?id=50280&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50280&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50280&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50280&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50280&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=50280&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50280&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50280&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50280&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50280&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50280&r=mysqlcfg
#50281 [NEW]: Socket shuts down automatically after X seconds of idling
From: jiangcat at gmail dot com Operating system: Centos 5.2 PHP version: 5.2.11 PHP Bug Type: Sockets related Bug description: Socket shuts down automatically after X seconds of idling Description: I've made a chat server using php socket features, and it works pretty well as I've expected. However, the server shuts down automatically after about 3 hours of idling (no connections). I've set the php execution time limit to 0, and running this script from shell in the background. Can't think of any other reason causing this strange behavior. Reproduce code: --- The code is too long to submit. -- Edit bug report at http://bugs.php.net/?id=50281&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50281&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50281&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50281&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50281&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50281&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50281&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50281&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50281&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50281&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50281&r=support Expected behavior: http://bugs.php.net/fix.php?id=50281&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50281&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50281&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50281&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50281&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=50281&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50281&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50281&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50281&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50281&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50281&r=mysqlcfg
#50281 [Fbk->Csd]: Socket shuts down automatically after X seconds of idling
ID: 50281 User updated by: jiangcat at gmail dot com Reported By: jiangcat at gmail dot com -Status: Feedback +Status: Closed Bug Type: Sockets related Operating System: Centos 5.2 PHP Version: 5.2.11 New Comment: Hi guys. Thanks for your attention and hints. After running a strace program, I've found the real issue with in it. It was a mysql connection timeout causing the PHP encountering a fatal error, and shuts down the server. This ticket is closed now, and thank you all again for your time. Previous Comments: [2009-11-24 19:03:31] srina...@php.net cool you are running it on linux. now, to help us debug this issue, provide a strace(1) output (just before the socket timeout happens). say, you see that socket times out at 3 hours or some thing like that, then you could do some thing like start the strace collection output around this time and paste the last few hundred lines some where. this should help us understand why did the socket time out when it happens [2009-11-24 17:22:29] ka...@php.net Please somehow attach the code to the bug report else theres not really anything we can do to analyze the issue. Try upload a zip somewhere if its many files or use a paste service like Pastie. Also keep the reproduce code as short as possible, when you have attached the code to this report then change the status back to 'Open' [2009-11-24 09:46:07] jiangcat at gmail dot com Description: I've made a chat server using php socket features, and it works pretty well as I've expected. However, the server shuts down automatically after about 3 hours of idling (no connections). I've set the php execution time limit to 0, and running this script from shell in the background. Can't think of any other reason causing this strange behavior. Reproduce code: --- The code is too long to submit. -- Edit this bug report at http://bugs.php.net/?id=50281&edit=1