Req #52569 [Com]: Implement ondemand process-manager (to allow zero children)
Edit report at https://bugs.php.net/bug.php?id=52569edit=1 ID: 52569 Comment by: dbetz at df dot eu Reported by:mplomer at gmx dot de Summary:Implement ondemand process-manager (to allow zero children) Status: Analyzed Type: Feature/Change Request Package:FPM related PHP Version:5.3.3 Assigned To:fat Block user comment: N Private report: N New Comment: If i can help you with debug informations, pls tell me what information you need. eg traces or gdb ? Greetings, Previous Comments: [2011-07-07 02:34:46] dbetz at df dot eu Hello, i know, but when i make an request, no child gets spawned. My PHP-FPM has more pools. Every pool is listening to an different socket. The mod_fastcgi 2.4.6 is patched, that it connects to the socket for the domain. Example: Hostname: www.domain.com has PHP Version 5.3.6 FPM Config for Pool is: [domain.com] listen = /etc/httpd/fastcgi/5.3.6-domain.com user = u12345 group = nobody pm = ondemand pm.process_idle_timeout = 10 pm.min_delay_between_fork = 1 pm.max_children = 5 When now an request for www.domain.com to the apache arrives, the apache looks in the ldap for the PHP Version, then mod_fastcgi searches for socket /etc/httpd/fastcgi/5.3.6-www.domain.com, if not existent for /etc/httpd/fastcgi/5.3.6-domain.com (snips www. ). Now Apache connects over mod_fastcgi to the correct socket, but no child gets spawned with pm = ondemand With dynamic and static all works fine. Any suggestions ? Greetings, Daniel [2011-07-06 12:12:34] f...@php.net This is normal. the ONDEMAND pm has been made to avoid forking unnecessary children. Children are forked when requests arrives. Here is what I have on my side: ## conf: pm = ondemand pm.process_idle_timeout = 10 pm.min_delay_between_fork = 1 # this to avoid the known bug pm.max_children = 5 ## log [06-Jul-2011 18:05:42.236929] NOTICE: pid 2579, fpm_event_loop(), line 267: ready to handle connections [06-Jul-2011 18:05:43.237287] DEBUG: pid 2579, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 active children, 0 spare children ## at start, no children have been forked [06-Jul-2011 18:05:44.237661] DEBUG: pid 2579, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 active children, 0 spare children ## I request a page and a child is forked to serve the page [06-Jul-2011 18:05:44.902976] DEBUG: pid 2579, fpm_children_make(), line 411: [pool direct] child 2580 started [06-Jul-2011 18:05:44.902987] DEBUG: pid 2579, fpm_pctl_on_socket_accept(), line 543: [pool direct] got accept without idle child available I forked, now=1970813.831429 [06-Jul-2011 18:05:45.238081] DEBUG: pid 2579, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 active children, 1 spare children [06-Jul-2011 18:05:46.238388] DEBUG: pid 2579, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 active children, 1 spare children [06-Jul-2011 18:05:47.238889] DEBUG: pid 2579, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 active children, 1 spare children [06-Jul-2011 18:05:48.239385] DEBUG: pid 2579, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 active children, 1 spare children [06-Jul-2011 18:05:49.239671] DEBUG: pid 2579, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 active children, 1 spare children [06-Jul-2011 18:05:50.240080] DEBUG: pid 2579, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 active children, 1 spare children [06-Jul-2011 18:05:51.240520] DEBUG: pid 2579, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 active children, 1 spare children [06-Jul-2011 18:05:52.241133] DEBUG: pid 2579, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 active children, 1 spare children [06-Jul-2011 18:05:53.241648] DEBUG: pid 2579, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 active children, 1 spare children [06-Jul-2011 18:05:54.242040] DEBUG: pid 2579, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 active children, 1 spare children [06-Jul-2011 18:05:55.242414] DEBUG: pid 2579, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 active children, 1 spare children ## 10s (pm.process_idle_timeout) later, the child has been killed. [06-Jul-2011 18:05:55.243492] DEBUG: pid 2579, fpm_got_signal(), line 76: received SIGCHLD [06-Jul-2011 18:05:55.243514] DEBUG: pid 2579, fpm_children_bury(), line 254: [pool direct] child 2580 has been
Req #52569 [Com]: Implement ondemand process-manager (to allow zero children)
Edit report at https://bugs.php.net/bug.php?id=52569edit=1 ID: 52569 Comment by: f...@php.net Reported by:mplomer at gmx dot de Summary:Implement ondemand process-manager (to allow zero children) Status: Analyzed Type: Feature/Change Request Package:FPM related PHP Version:5.3.3 Assigned To:fat Block user comment: N Private report: N New Comment: You can strace to see what happens: set log_level to debug set daemonize to no then run something like strace -f -s 1024 -o /tmp/php-fpm.strace.log /path/to/php-fpm Previous Comments: [2011-07-08 05:38:31] dbetz at df dot eu If i can help you with debug informations, pls tell me what information you need. eg traces or gdb ? Greetings, [2011-07-07 02:34:46] dbetz at df dot eu Hello, i know, but when i make an request, no child gets spawned. My PHP-FPM has more pools. Every pool is listening to an different socket. The mod_fastcgi 2.4.6 is patched, that it connects to the socket for the domain. Example: Hostname: www.domain.com has PHP Version 5.3.6 FPM Config for Pool is: [domain.com] listen = /etc/httpd/fastcgi/5.3.6-domain.com user = u12345 group = nobody pm = ondemand pm.process_idle_timeout = 10 pm.min_delay_between_fork = 1 pm.max_children = 5 When now an request for www.domain.com to the apache arrives, the apache looks in the ldap for the PHP Version, then mod_fastcgi searches for socket /etc/httpd/fastcgi/5.3.6-www.domain.com, if not existent for /etc/httpd/fastcgi/5.3.6-domain.com (snips www. ). Now Apache connects over mod_fastcgi to the correct socket, but no child gets spawned with pm = ondemand With dynamic and static all works fine. Any suggestions ? Greetings, Daniel [2011-07-06 12:12:34] f...@php.net This is normal. the ONDEMAND pm has been made to avoid forking unnecessary children. Children are forked when requests arrives. Here is what I have on my side: ## conf: pm = ondemand pm.process_idle_timeout = 10 pm.min_delay_between_fork = 1 # this to avoid the known bug pm.max_children = 5 ## log [06-Jul-2011 18:05:42.236929] NOTICE: pid 2579, fpm_event_loop(), line 267: ready to handle connections [06-Jul-2011 18:05:43.237287] DEBUG: pid 2579, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 active children, 0 spare children ## at start, no children have been forked [06-Jul-2011 18:05:44.237661] DEBUG: pid 2579, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 active children, 0 spare children ## I request a page and a child is forked to serve the page [06-Jul-2011 18:05:44.902976] DEBUG: pid 2579, fpm_children_make(), line 411: [pool direct] child 2580 started [06-Jul-2011 18:05:44.902987] DEBUG: pid 2579, fpm_pctl_on_socket_accept(), line 543: [pool direct] got accept without idle child available I forked, now=1970813.831429 [06-Jul-2011 18:05:45.238081] DEBUG: pid 2579, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 active children, 1 spare children [06-Jul-2011 18:05:46.238388] DEBUG: pid 2579, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 active children, 1 spare children [06-Jul-2011 18:05:47.238889] DEBUG: pid 2579, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 active children, 1 spare children [06-Jul-2011 18:05:48.239385] DEBUG: pid 2579, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 active children, 1 spare children [06-Jul-2011 18:05:49.239671] DEBUG: pid 2579, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 active children, 1 spare children [06-Jul-2011 18:05:50.240080] DEBUG: pid 2579, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 active children, 1 spare children [06-Jul-2011 18:05:51.240520] DEBUG: pid 2579, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 active children, 1 spare children [06-Jul-2011 18:05:52.241133] DEBUG: pid 2579, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 active children, 1 spare children [06-Jul-2011 18:05:53.241648] DEBUG: pid 2579, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 active children, 1 spare children [06-Jul-2011 18:05:54.242040] DEBUG: pid 2579, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 active children, 1 spare children [06-Jul-2011 18:05:55.242414] DEBUG: pid 2579, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 active children, 1 spare children
Req #52569 [Com]: Implement ondemand process-manager (to allow zero children)
Edit report at https://bugs.php.net/bug.php?id=52569edit=1 ID: 52569 Comment by: dbetz at df dot eu Reported by:mplomer at gmx dot de Summary:Implement ondemand process-manager (to allow zero children) Status: Analyzed Type: Feature/Change Request Package:FPM related PHP Version:5.3.3 Assigned To:fat Block user comment: N Private report: N New Comment: Hm .. i can only see tons of: 20983 poll([{fd=4, events=POLLIN}], 1, 108) = 0 (Timeout) 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 852647570}) = 0 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 852702140}) = 0 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 852754708}) = 0 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 852807040}) = 0 20983 poll([{fd=4, events=POLLIN}], 1, 130) = 0 (Timeout) 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 983213866}) = 0 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 983267442}) = 0 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 983323753}) = 0 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 983368483}) = 0 and then thousands of: 20983 munmap(0xae151000, 1040) = 0 20983 munmap(0xae15, 1040) = 0 20983 munmap(0xae14f000, 1040) = 0 20983 munmap(0xae14e000, 1040) = 0 20983 munmap(0xae14d000, 1040) = 0 The socket gets created here: 20983 socket(PF_FILE, SOCK_STREAM, 0) = 6 20983 setsockopt(6, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 20983 unlink(/etc/httpd/fastcgi/dynamic/5-53LATEST-wordpressmit.imageupgrade2.domainfactory-kunde.de) = -1 ENOENT (No such file or directory) 20983 umask(0111) = 027 20983 bind(6, {sa_family=AF_FILE, path=/etc/httpd/fastcgi/dynamic/5-53LATEST-wordpressmit.imageupgrade2.domainfactory-kunde.de}, 110) = 0 20983 umask(027)= 0111 20983 listen(6, 128)= 0 When making an request nothing happens in the strace :-( Previous Comments: [2011-07-08 05:43:44] f...@php.net You can strace to see what happens: set log_level to debug set daemonize to no then run something like strace -f -s 1024 -o /tmp/php-fpm.strace.log /path/to/php-fpm [2011-07-08 05:38:31] dbetz at df dot eu If i can help you with debug informations, pls tell me what information you need. eg traces or gdb ? Greetings, [2011-07-07 02:34:46] dbetz at df dot eu Hello, i know, but when i make an request, no child gets spawned. My PHP-FPM has more pools. Every pool is listening to an different socket. The mod_fastcgi 2.4.6 is patched, that it connects to the socket for the domain. Example: Hostname: www.domain.com has PHP Version 5.3.6 FPM Config for Pool is: [domain.com] listen = /etc/httpd/fastcgi/5.3.6-domain.com user = u12345 group = nobody pm = ondemand pm.process_idle_timeout = 10 pm.min_delay_between_fork = 1 pm.max_children = 5 When now an request for www.domain.com to the apache arrives, the apache looks in the ldap for the PHP Version, then mod_fastcgi searches for socket /etc/httpd/fastcgi/5.3.6-www.domain.com, if not existent for /etc/httpd/fastcgi/5.3.6-domain.com (snips www. ). Now Apache connects over mod_fastcgi to the correct socket, but no child gets spawned with pm = ondemand With dynamic and static all works fine. Any suggestions ? Greetings, Daniel [2011-07-06 12:12:34] f...@php.net This is normal. the ONDEMAND pm has been made to avoid forking unnecessary children. Children are forked when requests arrives. Here is what I have on my side: ## conf: pm = ondemand pm.process_idle_timeout = 10 pm.min_delay_between_fork = 1 # this to avoid the known bug pm.max_children = 5 ## log [06-Jul-2011 18:05:42.236929] NOTICE: pid 2579, fpm_event_loop(), line 267: ready to handle connections [06-Jul-2011 18:05:43.237287] DEBUG: pid 2579, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 active children, 0 spare children ## at start, no children have been forked [06-Jul-2011 18:05:44.237661] DEBUG: pid 2579, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 active children, 0 spare children ## I request a page and a child is forked to serve the page [06-Jul-2011 18:05:44.902976] DEBUG: pid 2579, fpm_children_make(), line 411: [pool direct] child 2580 started [06-Jul-2011 18:05:44.902987] DEBUG: pid 2579, fpm_pctl_on_socket_accept(), line 543: [pool direct] got accept without idle child available I forked, now=1970813.831429 [06-Jul-2011 18:05:45.238081] DEBUG: pid 2579, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 active children, 1 spare children
[PHP-BUG] Bug #55160 [NEW]: Unexpected result on bccomp when using any decimal comma locale
From: Operating system: Linux Ubuntu PHP version: trunk-SVN-2011-07-08 (snap) Package: BC math related Bug Type: Bug Bug description:Unexpected result on bccomp when using any decimal comma locale Description: Unexpected result on bccomp when using any decimal comma locale. If an operand is a fraction, and the other is zero, the result seems to be wrong. Test script: --- ?php print setlocale(LC_ALL, C).\n; print 1.1.\n; print bccomp(1.1, 0).\n; //changing locale to a country which uses decimal comma print setlocale(LC_ALL, en_DK.UTF-8).\n; print 1.1.\n; print bccomp(1.1, 0).\n; print setlocale(LC_ALL, pt_BR.UTF-8).\n; print 1.1.\n; print bccomp(1.1, 0).\n; ? Expected result: C 1.1 1 en_DK.UTF-8 1,1 1 pt_BR.UTF-8 1,1 1 Actual result: -- C 1.1 1 en_DK.UTF-8 1,1 0 pt_BR.UTF-8 1,1 0 -- Edit bug report at https://bugs.php.net/bug.php?id=55160edit=1 -- Try a snapshot (PHP 5.2): https://bugs.php.net/fix.php?id=55160r=trysnapshot52 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55160r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55160r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=55160r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55160r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=55160r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=55160r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=55160r=needscript Try newer version: https://bugs.php.net/fix.php?id=55160r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=55160r=support Expected behavior: https://bugs.php.net/fix.php?id=55160r=notwrong Not enough info: https://bugs.php.net/fix.php?id=55160r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=55160r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=55160r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55160r=php4 Daylight Savings:https://bugs.php.net/fix.php?id=55160r=dst IIS Stability: https://bugs.php.net/fix.php?id=55160r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=55160r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=55160r=float No Zend Extensions: https://bugs.php.net/fix.php?id=55160r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=55160r=mysqlcfg Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55160r=trysnapshot54
Bug #55160 [Opn]: Unexpected result on bccomp when using any decimal comma locale
Edit report at https://bugs.php.net/bug.php?id=55160edit=1 ID: 55160 User updated by:everton at faccat dot br Reported by:everton at faccat dot br Summary:Unexpected result on bccomp when using any decimal comma locale Status: Open Type: Bug Package:BC math related -Operating System: Linux Ubuntu +Operating System: Ubuntu 10.04 LTS 64bits PHP Version:trunk-SVN-2011-07-08 (snap) Block user comment: N Private report: N New Comment: added OS additional information Previous Comments: [2011-07-08 08:27:56] everton at faccat dot br Description: Unexpected result on bccomp when using any decimal comma locale. If an operand is a fraction, and the other is zero, the result seems to be wrong. Test script: --- ?php print setlocale(LC_ALL, C).\n; print 1.1.\n; print bccomp(1.1, 0).\n; //changing locale to a country which uses decimal comma print setlocale(LC_ALL, en_DK.UTF-8).\n; print 1.1.\n; print bccomp(1.1, 0).\n; print setlocale(LC_ALL, pt_BR.UTF-8).\n; print 1.1.\n; print bccomp(1.1, 0).\n; ? Expected result: C 1.1 1 en_DK.UTF-8 1,1 1 pt_BR.UTF-8 1,1 1 Actual result: -- C 1.1 1 en_DK.UTF-8 1,1 0 pt_BR.UTF-8 1,1 0 -- Edit this bug report at https://bugs.php.net/bug.php?id=55160edit=1
Bug #48507 [Com]: fgetcsv() ignoring special characters
Edit report at https://bugs.php.net/bug.php?id=48507edit=1 ID: 48507 Comment by: php-bug-48507 at bsrealm dot net Reported by:krynble at yahoo dot com dot br Summary:fgetcsv() ignoring special characters Status: Bogus Type: Bug Package:Filesystem function related Operating System: Unix PHP Version:5.* Block user comment: N Private report: N New Comment: This IS a bug. Whatever locale is, I expect this function to read everything between delimiter characters without stripping the contents. Besides, docs say that files in one-byte encoding would read wrong, and there is a different case. This bug causes serious portability issue. In my case, this function was used to read custom database that was storing descriptions entered by users. Some descriptions were in utf-8 enconding. Function just had to read whatever was between delimiter characters and it worked like that on Windows hosting and stopped working after moving to Unix hosting. Note, file itself is not utf-8 encoded and it should not be. It is not related to locale. It must read data, even if it's binary, between delimiters. Previous Comments: [2011-02-26 02:46:32] gjorgjioski at gmail dot com This is short example: kategorija Å¡irina platiÅ¡Ä Å¡tevilo read: kategorija irina platiÅ¡Ä tevilo expected: kategorija Å¡irina platiÅ¡Ä Å¡tevilo [2011-02-26 02:36:32] gjorgjioski at gmail dot com This bug occurs also when file is in UTF8 (tab delimited file using Å¡,Ä characters). I can provide an example. [2010-05-19 13:39:52] pahan at hubbitus dot spb dot su Quote from the docs: Note: Locale setting is taken into account by this function. If LANG is e.g. en_US.UTF-8, files in one-byte encoding are read wrong by this function. Ok, bug documented as are read wrong by this function is better then nothing. But do you plan fix this wrong behaviour? [2010-05-18 11:03:42] m...@php.net Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Quote from the docs: Note: Locale setting is taken into account by this function. If LANG is e.g. en_US.UTF-8, files in one-byte encoding are read wrong by this function. [2009-12-12 11:40:29] pahan at hubbitus dot spb dot su Sorry for duplicate (#50456 is my), but in it, additionally to there described problem in fgetcsv I also suggest fix fputcvs to allow [force] enclosing single words in field. Off course it does *not* solve this problem of incorrect fgetcsv parsing, because RFC allow not quoted values ( http://www.faqs.org/rfcs/rfc4180.html , section 2.5 ), but, it is make pair fputcsv/fgetcsv as minimum compatible in PHP implementation. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=48507 -- Edit this bug report at https://bugs.php.net/bug.php?id=48507edit=1
Bug #55159 [Opn-Csd]: fopen encodes ampersand '' as 'amp;'
Edit report at https://bugs.php.net/bug.php?id=55159edit=1 ID: 55159 User updated by:knappster_1 at hotmail dot com Reported by:knappster_1 at hotmail dot com Summary:fopen encodes ampersand '' as 'amp;' -Status: Open +Status: Closed Type: Bug Package:Unknown/Other Function Operating System: Unix PHP Version:5.2.17 Block user comment: N Private report: N New Comment: I have tried your script on 2 Windows machines with Apache 2.2.11 and PHP 5.2.17 and my results match yours. I was sure I saw it when I first upgraded to 5.2.17 on my machine, but this now seems to be an issue with the web host rather than a bug in php. Sorry for the red herring. I am changing the status to closed. Previous Comments: [2011-07-07 20:24:23] lonnyk at gmail dot com I tested this on the 5.4 alpha and did not have this problem. Here is my test script: -- ?php error_reporting(E_ALL); $fh = fopen(http://finance.yahoo.com/d/quotes.csv? s=ABTf=sl1d1t1c1ohgvpnbaejkro=t, r); while( !feof( $fh ) ){ echo fgets( $fh ) . \n; } Result: - ABT,53.54,7/7/2011,4:01pm,+0.26,53.49,53.60,53.24,4932482,53.28,Abbott Laboratori,N/A,N/A,2.87,44.59,54.24,18.56 [2011-07-07 16:32:41] knappster_1 at hotmail dot com Description: --- From manual page: http://www.php.net/function.fopen%23Parameters --- The function used to return a csv file with a stock quote with PHP 5.2.9. However, now with 5.2.17 the function will replace '' with 'amp;' and it returns a csv file with just the text: Missing Format Variable. It is easy to verify by using a malformed URL with '' in it and on the resulting html, view source and the error message will show 'amp;' where '' should be. I have been unable to locate a workaround. Test script: --- fopen(http://finance.yahoo.com/d/quotes.csv?s=ABTf=sl1d1t1c1ohgvpnbaejkro=t;, r); -- Edit this bug report at https://bugs.php.net/bug.php?id=55159edit=1
Bug #50374 [Com]: .user.ini subdirectory not working and problem with [PATH] in php.ini
Edit report at https://bugs.php.net/bug.php?id=50374edit=1 ID: 50374 Comment by: carsten_sttgt at gmx dot de Reported by:tom_borgo at hotmail dot com Summary:.user.ini subdirectory not working and problem with [PATH] in php.ini Status: Assigned Type: Bug Package:Scripting Engine problem Operating System: XP SP3 PHP Version:5.3.1 Assigned To:pajoye Block user comment: N Private report: N New Comment: /www/phpinfo.php - take into account the /www/.user.ini /www/administrator/phpinfo.php - take NOT into account the /www/.user.ini Just found out: The same problem exists in PHP 5.3.6-NTS-VC9; Apache/2.2.19 (CGI setup); Windows 7 32bit Even I can read in the manual: | In addition to the main php.ini file, PHP scans for INI files in each | directory, starting with the directory of the requested PHP file, and working | its way up to the current document root I have a DOCUMENT_ROOT = D:\Webserver\Apache2.2\htdocs And the files: D:\Webserver\Apache2.2\htdocs\.user.ini D:\Webserver\Apache2.2\htdocs\phpinfo.php (working) D:\Webserver\Apache2.2\htdocs\test\phpinfo.php (not working) Regards, Carsten Previous Comments: [2010-06-13 20:56:31] tom_borgo at hotmail dot com Thanks Pajoye for your fast answer. I really hope you can fix it ! :) Yes htscanner is an alternative solution, i never try it. I prefer rely on PHP itself. And htscanner is in alpha stage and last release is more one year old, i mean for system in real production it is necessary to have stable version. Htscanner seems ok for leisure purpose but I will not use it for bussiness application. [2010-06-13 20:32:37] paj...@php.net Assigned means someone (me) will work on it, not it is fixed :) Btw, htscanner allows htaccess-like file for 5.x, for the record. [2010-06-13 20:19:49] tom_borgo at hotmail dot com Hello, Yes, the problem has not been resolved, or the documentation has not been updated to say that it is normal that it doesn't affect the subdirectory. It is a shame because .user.ini is very important to use php directive by directory (because htaccess cannot be used in this way like PHP in apache module). I hope problem will be taken really into consideration. And it is really easy to test it. Thanks. Thomas. [2010-06-10 21:15:49] jirka at pbox dot cz Same issue with php 5.3.2 (CGI) on WinXP SP3. Build date Apr 1 2010 17:13:20. .user.ini custom setting works in the directory where the ini file is located, but has no effect in any of subdirectories. [2009-12-11 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to Open. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=50374 -- Edit this bug report at https://bugs.php.net/bug.php?id=50374edit=1
Bug #55111 [Com]: Make fails with --enable-sockets
Edit report at https://bugs.php.net/bug.php?id=55111edit=1 ID: 55111 Comment by: me at sumardi dot net Reported by:manuel at bouza dot ch Summary:Make fails with --enable-sockets Status: Assigned Type: Bug Package:Compile Failure Operating System: Mac OSX 10.6.7 PHP Version:5.4SVN-2011-07-02 (SVN) Assigned To:cataphract Block user comment: N Private report: N New Comment: I have the same issue on Mac OS X. SVN rev. 313075 Previous Comments: [2011-07-02 12:45:36] manuel at bouza dot ch Thank you for looking into this. Just tries with svn branches/PHP_5_4, rev 312814 and make now stops with the following error: /bin/sh /Users/mbouza/tmp/php-5.4-sock/libtool --silent --preserve-dup-deps -- mode=compile cc -Iext/sockets/ -I/Users/mbouza/tmp/php-5.4-sock/ext/sockets/ - DPHP_ATOM_INC -I/Users/mbouza/tmp/php-5.4-sock/include -I/Users/mbouza/tmp/php- 5.4-sock/main -I/Users/mbouza/tmp/php-5.4-sock -I/Users/mbouza/tmp/php-5.4- sock/ext/date/lib -I/Users/mbouza/tmp/php-5.4-sock/ext/ereg/regex - I/usr/include/libxml2 -I/usr/local/include -I/opt/local/include/postgresql90 - I/Users/mbouza/tmp/php-5.4-sock/ext/sqlite3/libsqlite -I/Users/mbouza/tmp/php- 5.4-sock/TSRM -I/Users/mbouza/tmp/php-5.4-sock/Zend -no-cpp-precomp - I/usr/local/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS -c /Users/mbouza/tmp/php-5.4-sock/ext/sockets/sockets.c -o ext/sockets/sockets.lo /Users/mbouza/tmp/php-5.4-sock/ext/sockets/sockets.c: In function âzif_socket_connectâ: /Users/mbouza/tmp/php-5.4-sock/ext/sockets/sockets.c:1556: warning: cast from pointer to integer of different size /bin/sh /Users/mbouza/tmp/php-5.4-sock/libtool --silent --preserve-dup-deps -- mode=compile cc -Iext/sockets/ -I/Users/mbouza/tmp/php-5.4-sock/ext/sockets/ - DPHP_ATOM_INC -I/Users/mbouza/tmp/php-5.4-sock/include -I/Users/mbouza/tmp/php- 5.4-sock/main -I/Users/mbouza/tmp/php-5.4-sock -I/Users/mbouza/tmp/php-5.4- sock/ext/date/lib -I/Users/mbouza/tmp/php-5.4-sock/ext/ereg/regex - I/usr/include/libxml2 -I/usr/local/include -I/opt/local/include/postgresql90 - I/Users/mbouza/tmp/php-5.4-sock/ext/sqlite3/libsqlite -I/Users/mbouza/tmp/php- 5.4-sock/TSRM -I/Users/mbouza/tmp/php-5.4-sock/Zend -no-cpp-precomp - I/usr/local/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS -c /Users/mbouza/tmp/php-5.4-sock/ext/sockets/multicast.c -o ext/sockets/multicast.lo /Users/mbouza/tmp/php-5.4-sock/ext/sockets/multicast.c: In function âphp_if_index_to_addr4â: /Users/mbouza/tmp/php-5.4-sock/ext/sockets/multicast.c:426: error: âstruct ifreqâ has no member named âifr_ifindexâ /Users/mbouza/tmp/php-5.4-sock/ext/sockets/multicast.c: In function âphp_add4_to_if_indexâ: /Users/mbouza/tmp/php-5.4-sock/ext/sockets/multicast.c:506: error: âSIOCGIFINDEXâ undeclared (first use in this function) /Users/mbouza/tmp/php-5.4-sock/ext/sockets/multicast.c:506: error: (Each undeclared identifier is reported only once /Users/mbouza/tmp/php-5.4-sock/ext/sockets/multicast.c:506: error: for each function it appears in.) /Users/mbouza/tmp/php-5.4-sock/ext/sockets/multicast.c:513: error: âstruct ifreqâ has no member named âifr_ifindexâ make: *** [ext/sockets/multicast.lo] Error 1 [2011-07-02 08:04:14] cataphr...@php.net Committed fix to SVN. Could you try to compile now? [2011-07-02 08:03:33] cataphr...@php.net Automatic comment from SVN on behalf of cataphract Revision: http://svn.php.net/viewvc/?view=revisionamp;revision=312810 Log: - Fixed bug #55111 (sockets extension fails to compile on Mac OSX). [2011-07-02 06:12:54] cataphr...@php.net I thought this has been fixed (though I couldn't confirm myself because I don't have Mac OSX). Assigning to me. [2011-07-02 03:15:21] manuel at bouza dot ch Description: PHP Version: 5.4.0alpha2-dev Make fails with --enable-sockets configuration option. Without --enable-sockets, make make install is successful. Test script: --- I used the following configuration options: sudo ./configure \ --prefix=/opt/local/php-5.4-dev \ --with-config-file-path=/opt/local/php-5.4-dev/etc \ --with-fpm-user=_www \ --with-fpm-group=_www \ --enable-fpm \ --with-mysql=mysqlnd \ --with-mysqli=mysqlnd \ --with-pdo-mysql=mysqlnd \ --with-pdo-pgsql=/opt/local/lib/postgresql90/bin \ --enable-sockets Expected result: PHP should compile successfully with --enable-sockets. Socket function should be available in PHP after successful compilation. Actual result: -- Confuguration runs ok, but make
Req #55152 [Opn]: Mysql relative seek
Edit report at https://bugs.php.net/bug.php?id=55152edit=1 ID: 55152 Updated by: ka...@php.net Reported by:lenzai2004-dev at yahoo dot fr Summary:Mysql relative seek Status: Open Type: Feature/Change Request Package:MySQL related Operating System: all PHP Version:trunk-SVN-2011-07-06 (SVN) Block user comment: N Private report: N New Comment: Hi, don't the mysqli module support this already, or with the MySQLi result iterator from 5.4? Previous Comments: [2011-07-06 15:01:55] lenzai2004-dev at yahoo dot fr Description: There is currently a function to do absolute seek in Mysql API. When you need to to relative seek , you have to implement integer counter to keep track of the current cursor position. Then call seek here is a sample code: //iterating over rows for/while{ mysql_fetch_(); $current_row++; [...] // call relative seek $current_row+= $seek_offset; mysql_data_seek($id, $current_row); This quite simple but when the code gets complicated, it s easy to miss on $current_row update. The only only solution is to encapsulate php mysql function in additional abstraction layer to handle counter updates safely. I suppose the internal counter is already available in mysql module. What I am suggesting, is to expose this internal counter by adding a new function to mysql API. -- Edit this bug report at https://bugs.php.net/bug.php?id=55152edit=1
Bug #55144 [Opn-Fbk]: Program not generating error giving blank pages
Edit report at https://bugs.php.net/bug.php?id=55144edit=1 ID: 55144 Updated by: ka...@php.net Reported by:singhkumardinesh at gmail dot com Summary:Program not generating error giving blank pages -Status: Open +Status: Feedback Type: Bug Package:*General Issues Operating System: Ububtu 10.4 PHP Version:5.3.6 Block user comment: N Private report: N New Comment: Did you check your error verbosity in error_reporting and display_errors being correctly defined for the script? Previous Comments: [2011-07-06 06:08:27] singhkumardinesh at gmail dot com Description: When i m running below code (on php 5.3.2) that time it not giving me any error but it should generate error. that program have 2-3 error but not generating it giving me error on lower version of php 5.3 like 5.2 etc. Test script: --- final class A{ function foo($a){ if (isset($this)) { echo If; } else { echo Else; } } } class b extends A {} $a = new A(); $a-foo(); Expected result: Should give fatal error for class a should not extand and warning argument missing in function foo Actual result: -- blank pages -- Edit this bug report at https://bugs.php.net/bug.php?id=55144edit=1
Req #55129 [Opn]: LOG_ level constants don't comply with RFC 3164 on Windows
Edit report at https://bugs.php.net/bug.php?id=55129edit=1 ID: 55129 Updated by: ka...@php.net Reported by:sun at unleashedmind dot com Summary:LOG_ level constants don't comply with RFC 3164 on Windows Status: Open Type: Feature/Change Request Package:Win32API related Operating System: Windows PHP Version:Irrelevant Block user comment: N Private report: N New Comment: Hi I like the idea, perhaps we should cook something like this up together with @fat's patch for multiple connections to syslog() and confront the RFC in and interoperability way in 5.4. Previous Comments: [2011-07-04 11:51:21] sun at unleashedmind dot com Description: On Windows, the LOG_* constant values differ from the values defined in RFC 3164. The values are correct on Unix platforms. Previously discussed in https://bugs.php.net/bug.php?id=18090 and closed as bogus back in 2002. Over at Drupal, we replaced custom log level constants with PHP's native LOG_* constants: http://drupal.org/node/1136130 -- and had to learn the hard way that the constant values differ on Windows. (undocumented: http://php.net/manual/en/network.constants.php) Drupal uses these severity levels for application-level logging. The logger is pluggable, so messages may be stored in a database, third-party system, or simply passed to syslog(). Depending on the logger implementation, messages may also be listed/read. Therefore, consistent log severity level constant values are required. The question arose why PHP overrides the LOG_* constant values on Windows, kinda violating the RFC, and whether the reduction to values supported by Windows' event log could not happen in a Windows-specific syslog() implementation instead, not affecting the global run-time constants. I understand that it's Windows that's to blame. However, I don't see why PHP has to follow Windows' bogus lead on not respecting the RFC. Conforming to industry standards would be a huge benefit for interoperability with other systems. Concrete change request: - Make PHP's LOG_* constant values always conform to RFC 3164. - Move the platform-specific mapping/reduction into a syslog() implementation for Windows. Test script: --- ?php var_dump(LOG_EMERG, LOG_ALERT, LOG_CRIT, LOG_ERR, LOG_WARNING, LOG_NOTICE, LOG_INFO, LOG_DEBUG); ? Expected result: int(0) int(1) int(2) int(3) int(4) int(5) int(6) int(7) Actual result: -- int(1) int(1) int(1) int(4) int(5) int(6) int(6) int(6) -- Edit this bug report at https://bugs.php.net/bug.php?id=55129edit=1
Bug #55070 [Opn-Fbk]: SHMOP not working / crash
Edit report at https://bugs.php.net/bug.php?id=55070edit=1 ID: 55070 Updated by: ka...@php.net Reported by:ricardo dot nuno dot rodrigues at hotmail dot com Summary:SHMOP not working / crash -Status: Open +Status: Feedback Type: Bug Package:Semaphore related Operating System: Windows 7 64bit PHP Version:5.3.6 Block user comment: N Private report: N New Comment: Can you try to disable xdebug and re-generate the backtrace if it still happens? Previous Comments: [2011-06-29 19:15:04] ricardo dot nuno dot rodrigues at hotmail dot com I tried on CLI mode and have the following error (in attach complete): Function Arg 1 Arg 2 Arg 3 Source msvcr90!memcpy+158 02ed3cd80004 php_shmop!get_module+37f000302ed38f8 php5ts!execute_internal+3a 02f00080000102eb1bc0 php_xdebug_2_1_1_5_3_vc9!get_module+20bc02f000800001 php5ts!execute+1122 02f0008002eb1b0002eb1bc0 php5ts!execute+583a 02ed3600038c2ef0 php5ts!execute+2e8 More: Analysis Summary TypeDescription Recommendation Error In php__PID__10980__Date__06_14_2011__Time_10_59_20PM__98__First chance exception 0XC005.dmp the assembly instruction at msvcr90!memcpy+158 in C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.5570_none_50 9463cabcb6ef2a\msvcr90.dll from Microsoft Corporation has caused an access violation exception (0xC005) when trying to read from memory location 0x on thread 0 Please follow up with the vendor Microsoft Corporation for C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.5570_none_50 9463cabcb6ef2a\msvcr90.dll Error In php__PID__10276__Date__06_14_2011__Time_10_57_54PM__835__Second_Chance_Exception _C005.dmp the assembly instruction at msvcr90!memcpy+158 in C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.5570_none_50 9463cabcb6ef2a\msvcr90.dll from Microsoft Corporation has caused an access violation exception (0xC005) when trying to read from memory location 0x on thread 0 Please follow up with the vendor Microsoft Corporation for C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.5570_none_50 9463cabcb6ef2a\msvcr90.dll Error In php__PID__10980__Date__06_14_2011__Time_10_59_25PM__862__Second_Chance_Exception _C005.dmp the assembly instruction at msvcr90!memcpy+158 in C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.5570_none_50 9463cabcb6ef2a\msvcr90.dll from Microsoft Corporation has caused an access violation exception (0xC005) when trying to read from memory location 0x on thread 0 Please follow up with the vendor Microsoft Corporation for C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.5570_none_50 9463cabcb6ef2a\msvcr90.dll Error In php__PID__10276__Date__06_14_2011__Time_10_57_48PM__990__First chance exception 0XC005.dmp the assembly instruction at msvcr90!memcpy+158 in C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.5570_none_50 9463cabcb6ef2a\msvcr90.dll from Microsoft Corporation has caused an access violation exception (0xC005) when trying to read from memory location 0x on thread 0 Please follow up with the vendor Microsoft Corporation for C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.5570_none_50 9463cabcb6ef2a\msvcr90.dll Information DebugDiag determined that this dump file (php__PID__10980__Date__06_14_2011__Time_10_59_25PM__862__Second_Chance_Exceptio n_C005.dmp) is a crash dump and did not perform any hang analysis. If you wish to enable combined crash and hang analysis for crash dumps, edit the CrashHangAnalysis.asp script (located in the DebugDiag\Scripts folder) and set the g_DoCombinedAnalysis constant to True. [2011-06-29 18:42:28] fel...@php.net Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to Open. Thank you for helping us make PHP better. [2011-06-29 16:52:56] ricardo dot nuno dot rodrigues at hotmail dot com Description: If I make such a intensive
Req #52569 [Com]: Implement ondemand process-manager (to allow zero children)
Edit report at https://bugs.php.net/bug.php?id=52569edit=1 ID: 52569 Comment by: f...@php.net Reported by:mplomer at gmx dot de Summary:Implement ondemand process-manager (to allow zero children) Status: Analyzed Type: Feature/Change Request Package:FPM related PHP Version:5.3.3 Assigned To:fat Block user comment: N Private report: N New Comment: On what OS/version are you testing ? Previous Comments: [2011-07-08 06:00:36] dbetz at df dot eu Hm .. i can only see tons of: 20983 poll([{fd=4, events=POLLIN}], 1, 108) = 0 (Timeout) 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 852647570}) = 0 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 852702140}) = 0 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 852754708}) = 0 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 852807040}) = 0 20983 poll([{fd=4, events=POLLIN}], 1, 130) = 0 (Timeout) 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 983213866}) = 0 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 983267442}) = 0 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 983323753}) = 0 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 983368483}) = 0 and then thousands of: 20983 munmap(0xae151000, 1040) = 0 20983 munmap(0xae15, 1040) = 0 20983 munmap(0xae14f000, 1040) = 0 20983 munmap(0xae14e000, 1040) = 0 20983 munmap(0xae14d000, 1040) = 0 The socket gets created here: 20983 socket(PF_FILE, SOCK_STREAM, 0) = 6 20983 setsockopt(6, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 20983 unlink(/etc/httpd/fastcgi/dynamic/5-53LATEST-wordpressmit.imageupgrade2.domainfactory-kunde.de) = -1 ENOENT (No such file or directory) 20983 umask(0111) = 027 20983 bind(6, {sa_family=AF_FILE, path=/etc/httpd/fastcgi/dynamic/5-53LATEST-wordpressmit.imageupgrade2.domainfactory-kunde.de}, 110) = 0 20983 umask(027)= 0111 20983 listen(6, 128)= 0 When making an request nothing happens in the strace :-( [2011-07-08 05:43:44] f...@php.net You can strace to see what happens: set log_level to debug set daemonize to no then run something like strace -f -s 1024 -o /tmp/php-fpm.strace.log /path/to/php-fpm [2011-07-08 05:38:31] dbetz at df dot eu If i can help you with debug informations, pls tell me what information you need. eg traces or gdb ? Greetings, [2011-07-07 02:34:46] dbetz at df dot eu Hello, i know, but when i make an request, no child gets spawned. My PHP-FPM has more pools. Every pool is listening to an different socket. The mod_fastcgi 2.4.6 is patched, that it connects to the socket for the domain. Example: Hostname: www.domain.com has PHP Version 5.3.6 FPM Config for Pool is: [domain.com] listen = /etc/httpd/fastcgi/5.3.6-domain.com user = u12345 group = nobody pm = ondemand pm.process_idle_timeout = 10 pm.min_delay_between_fork = 1 pm.max_children = 5 When now an request for www.domain.com to the apache arrives, the apache looks in the ldap for the PHP Version, then mod_fastcgi searches for socket /etc/httpd/fastcgi/5.3.6-www.domain.com, if not existent for /etc/httpd/fastcgi/5.3.6-domain.com (snips www. ). Now Apache connects over mod_fastcgi to the correct socket, but no child gets spawned with pm = ondemand With dynamic and static all works fine. Any suggestions ? Greetings, Daniel [2011-07-06 12:12:34] f...@php.net This is normal. the ONDEMAND pm has been made to avoid forking unnecessary children. Children are forked when requests arrives. Here is what I have on my side: ## conf: pm = ondemand pm.process_idle_timeout = 10 pm.min_delay_between_fork = 1 # this to avoid the known bug pm.max_children = 5 ## log [06-Jul-2011 18:05:42.236929] NOTICE: pid 2579, fpm_event_loop(), line 267: ready to handle connections [06-Jul-2011 18:05:43.237287] DEBUG: pid 2579, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 active children, 0 spare children ## at start, no children have been forked [06-Jul-2011 18:05:44.237661] DEBUG: pid 2579, fpm_pctl_perform_idle_server_maintenance(), line 362: [pool direct] currently 0 active children, 0 spare children ## I request a page and a child is forked to serve the page [06-Jul-2011 18:05:44.902976] DEBUG: pid 2579, fpm_children_make(), line 411: [pool direct] child 2580 started [06-Jul-2011 18:05:44.902987] DEBUG: pid 2579, fpm_pctl_on_socket_accept(), line 543: [pool direct] got accept without idle child available I forked, now=1970813.831429 [06-Jul-2011
[PHP-BUG] Req #55163 [NEW]: Retain EXIF data in images
From: Operating system: All PHP version: 5.3.6 Package: GD related Bug Type: Feature/Change Request Bug description:Retain EXIF data in images Description: When using GD library functions, the EXIF data is stripped from images. It would be useful to retain this information and implement a strip function, similar to Imagick::stripImage(), for cases where this data is not required. Expected result: Image with EXIF data intact Actual result: -- Image with EXIF data stripped -- Edit bug report at https://bugs.php.net/bug.php?id=55163edit=1 -- Try a snapshot (PHP 5.2): https://bugs.php.net/fix.php?id=55163r=trysnapshot52 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55163r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55163r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=55163r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55163r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=55163r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=55163r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=55163r=needscript Try newer version: https://bugs.php.net/fix.php?id=55163r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=55163r=support Expected behavior: https://bugs.php.net/fix.php?id=55163r=notwrong Not enough info: https://bugs.php.net/fix.php?id=55163r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=55163r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=55163r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55163r=php4 Daylight Savings:https://bugs.php.net/fix.php?id=55163r=dst IIS Stability: https://bugs.php.net/fix.php?id=55163r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=55163r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=55163r=float No Zend Extensions: https://bugs.php.net/fix.php?id=55163r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=55163r=mysqlcfg Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55163r=trysnapshot54
Req #52569 [PATCH]: Implement ondemand process-manager (to allow zero children)
Edit report at https://bugs.php.net/bug.php?id=52569edit=1 ID: 52569 Patch added by: f...@php.net Reported by:mplomer at gmx dot de Summary:Implement ondemand process-manager (to allow zero children) Status: Analyzed Type: Feature/Change Request Package:FPM related PHP Version:5.3.3 Assigned To:fat Block user comment: N Private report: N New Comment: The following patch has been added/updated: Patch Name: fpm-ondemand.v8.patch Revision: 1310170902 URL: https://bugs.php.net/patch-display.php?bug=52569patch=fpm-ondemand.v8.patchrevision=1310170902 Previous Comments: [2011-07-08 19:38:06] f...@php.net On what OS/version are you testing ? [2011-07-08 06:00:36] dbetz at df dot eu Hm .. i can only see tons of: 20983 poll([{fd=4, events=POLLIN}], 1, 108) = 0 (Timeout) 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 852647570}) = 0 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 852702140}) = 0 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 852754708}) = 0 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 852807040}) = 0 20983 poll([{fd=4, events=POLLIN}], 1, 130) = 0 (Timeout) 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 983213866}) = 0 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 983267442}) = 0 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 983323753}) = 0 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 983368483}) = 0 and then thousands of: 20983 munmap(0xae151000, 1040) = 0 20983 munmap(0xae15, 1040) = 0 20983 munmap(0xae14f000, 1040) = 0 20983 munmap(0xae14e000, 1040) = 0 20983 munmap(0xae14d000, 1040) = 0 The socket gets created here: 20983 socket(PF_FILE, SOCK_STREAM, 0) = 6 20983 setsockopt(6, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 20983 unlink(/etc/httpd/fastcgi/dynamic/5-53LATEST-wordpressmit.imageupgrade2.domainfactory-kunde.de) = -1 ENOENT (No such file or directory) 20983 umask(0111) = 027 20983 bind(6, {sa_family=AF_FILE, path=/etc/httpd/fastcgi/dynamic/5-53LATEST-wordpressmit.imageupgrade2.domainfactory-kunde.de}, 110) = 0 20983 umask(027)= 0111 20983 listen(6, 128)= 0 When making an request nothing happens in the strace :-( [2011-07-08 05:43:44] f...@php.net You can strace to see what happens: set log_level to debug set daemonize to no then run something like strace -f -s 1024 -o /tmp/php-fpm.strace.log /path/to/php-fpm [2011-07-08 05:38:31] dbetz at df dot eu If i can help you with debug informations, pls tell me what information you need. eg traces or gdb ? Greetings, [2011-07-07 02:34:46] dbetz at df dot eu Hello, i know, but when i make an request, no child gets spawned. My PHP-FPM has more pools. Every pool is listening to an different socket. The mod_fastcgi 2.4.6 is patched, that it connects to the socket for the domain. Example: Hostname: www.domain.com has PHP Version 5.3.6 FPM Config for Pool is: [domain.com] listen = /etc/httpd/fastcgi/5.3.6-domain.com user = u12345 group = nobody pm = ondemand pm.process_idle_timeout = 10 pm.min_delay_between_fork = 1 pm.max_children = 5 When now an request for www.domain.com to the apache arrives, the apache looks in the ldap for the PHP Version, then mod_fastcgi searches for socket /etc/httpd/fastcgi/5.3.6-www.domain.com, if not existent for /etc/httpd/fastcgi/5.3.6-domain.com (snips www. ). Now Apache connects over mod_fastcgi to the correct socket, but no child gets spawned with pm = ondemand With dynamic and static all works fine. Any suggestions ? Greetings, Daniel The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=52569 -- Edit this bug report at https://bugs.php.net/bug.php?id=52569edit=1
Req #52569 [PATCH]: Implement ondemand process-manager (to allow zero children)
Edit report at https://bugs.php.net/bug.php?id=52569edit=1 ID: 52569 Patch added by: f...@php.net Reported by:mplomer at gmx dot de Summary:Implement ondemand process-manager (to allow zero children) Status: Analyzed Type: Feature/Change Request Package:FPM related PHP Version:5.3.3 Assigned To:fat Block user comment: N Private report: N New Comment: The following patch has been added/updated: Patch Name: fpm-ondemand.v8-5.3.patch Revision: 1310170920 URL: https://bugs.php.net/patch-display.php?bug=52569patch=fpm-ondemand.v8-5.3.patchrevision=1310170920 Previous Comments: [2011-07-08 20:21:43] f...@php.net The following patch has been added/updated: Patch Name: fpm-ondemand.v8.patch Revision: 1310170902 URL: https://bugs.php.net/patch-display.php?bug=52569patch=fpm-ondemand.v8.patchrevision=1310170902 [2011-07-08 19:38:06] f...@php.net On what OS/version are you testing ? [2011-07-08 06:00:36] dbetz at df dot eu Hm .. i can only see tons of: 20983 poll([{fd=4, events=POLLIN}], 1, 108) = 0 (Timeout) 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 852647570}) = 0 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 852702140}) = 0 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 852754708}) = 0 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 852807040}) = 0 20983 poll([{fd=4, events=POLLIN}], 1, 130) = 0 (Timeout) 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 983213866}) = 0 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 983267442}) = 0 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 983323753}) = 0 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 983368483}) = 0 and then thousands of: 20983 munmap(0xae151000, 1040) = 0 20983 munmap(0xae15, 1040) = 0 20983 munmap(0xae14f000, 1040) = 0 20983 munmap(0xae14e000, 1040) = 0 20983 munmap(0xae14d000, 1040) = 0 The socket gets created here: 20983 socket(PF_FILE, SOCK_STREAM, 0) = 6 20983 setsockopt(6, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 20983 unlink(/etc/httpd/fastcgi/dynamic/5-53LATEST-wordpressmit.imageupgrade2.domainfactory-kunde.de) = -1 ENOENT (No such file or directory) 20983 umask(0111) = 027 20983 bind(6, {sa_family=AF_FILE, path=/etc/httpd/fastcgi/dynamic/5-53LATEST-wordpressmit.imageupgrade2.domainfactory-kunde.de}, 110) = 0 20983 umask(027)= 0111 20983 listen(6, 128)= 0 When making an request nothing happens in the strace :-( [2011-07-08 05:43:44] f...@php.net You can strace to see what happens: set log_level to debug set daemonize to no then run something like strace -f -s 1024 -o /tmp/php-fpm.strace.log /path/to/php-fpm [2011-07-08 05:38:31] dbetz at df dot eu If i can help you with debug informations, pls tell me what information you need. eg traces or gdb ? Greetings, The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=52569 -- Edit this bug report at https://bugs.php.net/bug.php?id=52569edit=1
Req #52569 [Com]: Implement ondemand process-manager (to allow zero children)
Edit report at https://bugs.php.net/bug.php?id=52569edit=1 ID: 52569 Comment by: f...@php.net Reported by:mplomer at gmx dot de Summary:Implement ondemand process-manager (to allow zero children) Status: Analyzed Type: Feature/Change Request Package:FPM related PHP Version:5.3.3 Assigned To:fat Block user comment: N Private report: N New Comment: I've submitted a new revision of the patch which patch fpm_events so that it won't trigger an FD event if it's been triggered less than 500µs. See if it corrects the previous bug. Please remember to clean your source tree (make clean) before compiling otherwise you may experience segfault or strange behaviors. Previous Comments: [2011-07-08 20:22:00] f...@php.net The following patch has been added/updated: Patch Name: fpm-ondemand.v8-5.3.patch Revision: 1310170920 URL: https://bugs.php.net/patch-display.php?bug=52569patch=fpm-ondemand.v8-5.3.patchrevision=1310170920 [2011-07-08 20:21:43] f...@php.net The following patch has been added/updated: Patch Name: fpm-ondemand.v8.patch Revision: 1310170902 URL: https://bugs.php.net/patch-display.php?bug=52569patch=fpm-ondemand.v8.patchrevision=1310170902 [2011-07-08 19:38:06] f...@php.net On what OS/version are you testing ? [2011-07-08 06:00:36] dbetz at df dot eu Hm .. i can only see tons of: 20983 poll([{fd=4, events=POLLIN}], 1, 108) = 0 (Timeout) 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 852647570}) = 0 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 852702140}) = 0 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 852754708}) = 0 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 852807040}) = 0 20983 poll([{fd=4, events=POLLIN}], 1, 130) = 0 (Timeout) 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 983213866}) = 0 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 983267442}) = 0 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 983323753}) = 0 20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 983368483}) = 0 and then thousands of: 20983 munmap(0xae151000, 1040) = 0 20983 munmap(0xae15, 1040) = 0 20983 munmap(0xae14f000, 1040) = 0 20983 munmap(0xae14e000, 1040) = 0 20983 munmap(0xae14d000, 1040) = 0 The socket gets created here: 20983 socket(PF_FILE, SOCK_STREAM, 0) = 6 20983 setsockopt(6, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 20983 unlink(/etc/httpd/fastcgi/dynamic/5-53LATEST-wordpressmit.imageupgrade2.domainfactory-kunde.de) = -1 ENOENT (No such file or directory) 20983 umask(0111) = 027 20983 bind(6, {sa_family=AF_FILE, path=/etc/httpd/fastcgi/dynamic/5-53LATEST-wordpressmit.imageupgrade2.domainfactory-kunde.de}, 110) = 0 20983 umask(027)= 0111 20983 listen(6, 128)= 0 When making an request nothing happens in the strace :-( [2011-07-08 05:43:44] f...@php.net You can strace to see what happens: set log_level to debug set daemonize to no then run something like strace -f -s 1024 -o /tmp/php-fpm.strace.log /path/to/php-fpm The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=52569 -- Edit this bug report at https://bugs.php.net/bug.php?id=52569edit=1
Req #55152 [Com]: Mysql relative seek
Edit report at https://bugs.php.net/bug.php?id=55152edit=1 ID: 55152 Comment by: lenzai2004-dev at yahoo dot com Reported by:lenzai2004-dev at yahoo dot fr Summary:Mysql relative seek Status: Open Type: Feature/Change Request Package:MySQL related Operating System: all PHP Version:trunk-SVN-2011-07-06 (SVN) Block user comment: N Private report: N New Comment: Yes Indeed. Well if mysql API is considered deprecated in PHP 5 the I should drop my request. If not, I believe it is a nice a simple addition. Previous Comments: [2011-07-08 18:12:17] ka...@php.net Hi, don't the mysqli module support this already, or with the MySQLi result iterator from 5.4? [2011-07-06 15:01:55] lenzai2004-dev at yahoo dot fr Description: There is currently a function to do absolute seek in Mysql API. When you need to to relative seek , you have to implement integer counter to keep track of the current cursor position. Then call seek here is a sample code: //iterating over rows for/while{ mysql_fetch_(); $current_row++; [...] // call relative seek $current_row+= $seek_offset; mysql_data_seek($id, $current_row); This quite simple but when the code gets complicated, it s easy to miss on $current_row update. The only only solution is to encapsulate php mysql function in additional abstraction layer to handle counter updates safely. I suppose the internal counter is already available in mysql module. What I am suggesting, is to expose this internal counter by adding a new function to mysql API. -- Edit this bug report at https://bugs.php.net/bug.php?id=55152edit=1