Bug #72724 [ReO]: PHP7: session-uploadprogress kills httpd

From: Date: Thu, 18 Aug 2016 21:59:17 +0000
Subject: Bug #72724 [ReO]: PHP7: session-uploadprogress kills httpd
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-203384@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72724&edit=1 ID: 72724 Updated by: nikic@php.net Reported by: spam2 at rhsoft dot net Summary: PHP7: session-uploadprogress kills httpd Status: Re-Opened Type: Bug Package: Session related Operating System: Linux PHP Version: 7.0.9 Assigned To: nikic Block user comment: N Private report: N New Comment: The patch for this bug did not make the cut for 7.0.10, as can be discerned from the changelog: https://github.com/php/php-src/blob/PHP-7.0/NEWS Previous Comments: ------------------------------------------------------------------------ [2016-08-18 21:26:20] spam2 at rhsoft dot net congratulations - PHP 7.0.10 was released and this is still not fixed while it's an obvious bug for anybody trying PHP7 longer than 10 minutes - why in the world did pecl-uploadprogress working for many years not just made it into core instead of this session-hack so things would still work proper? ------------------------------------------------------------------------ [2016-08-09 11:39:51] spam2 at rhsoft dot net while that's a nice workaround that line should not exist because serious testsers are building their PHP with rpmbuild and have a global flag there to build php and all pecl extension-packages with or without debug ------------------------------------------------------------------------ [2016-08-09 11:36:23] yohgaki@php.net Comment out this line to disable E_NOTICE ./main/rfc1867.c:1002: sapi_module.sapi_error(E_NOTICE, "No file uploaded"); ------------------------------------------------------------------------ [2016-08-09 11:23:18] spam2 at rhsoft dot net can we PLEASE get rid of "Unknown(0) : Notice - No file uploaded" warnings with debug modes since that *breaks* sessions and output buffering without any benefit so that people can use a php-debug-build on development machines to track down all that existing memory leaks (see previous comment about one in this context) ------------------------------------------------------------------------ [2016-08-03 09:01:24] spam2 at rhsoft dot net the crash bug is gone, but in case of you have more than one upload fields (in my case 5) all of them where no file was choosed it poduces a error message "Unknown(0) : Notice - No file uploaded" which breaks output buffering is not helpful and well, there are memory leaks, see also https://bugs.php.net/bug.php?id=72734 - may i suggest that the php-developers compile a debug build at their own and call some real time code instead force users to find and debug such obvious bugs listed in the error_log? Unknown(0) : Notice - No file uploaded Unknown(0) : Notice - No file uploaded Unknown(0) : Notice - No file uploaded Unknown(0) : Notice - No file uploaded /Volumes/dune/www-servers/uploadprogress/demo/index.php(2) : Warning - session_start() [<a href='http://at.php.net/manual/de/function.session-start.php'>function.session-start.php</a>]: Cannot send session cache limiter - headers already sent [Wed Aug 3 10:35:46 2016] Script: '/Volumes/dune/www-servers/uploadprogress/demo/index.php' /home/builduser/rpmbuild/BUILD/php-7.0.9/ext/date/php_date.c(922) : Freeing 0x7F257EE01720 (56 bytes), script=/Volumes/dune/www-servers/uploadprogress/demo/index.php [Wed Aug 3 10:35:46 2016] Script: '/Volumes/dune/www-servers/uploadprogress/demo/index.php' /home/builduser/rpmbuild/BUILD/php-7.0.9/Zend/zend_hash.c(140) : Freeing 0x7F257EE032C0 (288 bytes), script=/Volumes/dune/www-servers/uploadprogress/demo/index.php [Wed Aug 3 10:35:46 2016] Script: '/Volumes/dune/www-servers/uploadprogress/demo/index.php' /home/builduser/rpmbuild/BUILD/php-7.0.9/ext/date/lib/timelib.c(132) : Freeing 0x7F257EE650C0 (160 bytes), script=/Volumes/dune/www-servers/uploadprogress/demo/index.php /home/builduser/rpmbuild/BUILD/php-7.0.9/Zend/zend_alloc.c(2518) : Actual location (location was relayed) [Wed Aug 3 10:35:46 2016] Script: '/Volumes/dune/www-servers/uploadprogress/demo/index.php' /home/builduser/rpmbuild/BUILD/php-7.0.9/ext/date/lib/parse_tz.c(120) : Freeing 0x7F257EE65180 (141 bytes), script=/Volumes/dune/www-servers/uploadprogress/demo/index.php [Wed Aug 3 10:35:46 2016] Script: '/Volumes/dune/www-servers/uploadprogress/demo/index.php' /home/builduser/rpmbuild/BUILD/php-7.0.9/ext/date/lib/parse_tz.c(161) : Freeing 0x7F257EE65240 (140 bytes), script=/Volumes/dune/www-servers/uploadprogress/demo/index.php [Wed Aug 3 10:35:46 2016] Script: '/Volumes/dune/www-servers/uploadprogress/demo/index.php' /home/builduser/rpmbuild/BUILD/php-7.0.9/Zend/zend_string.h(121) : Freeing 0x7F257EE67460 (40 bytes), script=/Volumes/dune/www-servers/uploadprogress/demo/index.php [Wed Aug 3 10:35:46 2016] Script: '/Volumes/dune/www-servers/uploadprogress/demo/index.php' /home/builduser/rpmbuild/BUILD/php-7.0.9/ext/date/lib/timelib.c(133) : Freeing 0x7F257EE68030 (14 bytes), script=/Volumes/dune/www-servers/uploadprogress/demo/index.php [Wed Aug 3 10:35:46 2016] Script: '/Volumes/dune/www-servers/uploadprogress/demo/index.php' /home/builduser/rpmbuild/BUILD/php-7.0.9/ext/date/lib/parse_tz.c(175) : Freeing 0x7F257EE68060 (13 bytes), script=/Volumes/dune/www-servers/uploadprogress/demo/index.php [Wed Aug 3 10:35:46 2016] Script: '/Volumes/dune/www-servers/uploadprogress/demo/index.php' /home/builduser/rpmbuild/BUILD/php-7.0.9/ext/date/lib/parse_tz.c(256) : Freeing 0x7F257EE69050 (1 bytes), script=/Volumes/dune/www-servers/uploadprogress/demo/index.php [Wed Aug 3 10:35:46 2016] Script: '/Volumes/dune/www-servers/uploadprogress/demo/index.php' /home/builduser/rpmbuild/BUILD/php-7.0.9/ext/date/lib/parse_tz.c(110) : Freeing 0x7F257EE6D000 (564 bytes), script=/Volumes/dune/www-servers/uploadprogress/demo/index.php === Total 10 memory leaks detected === ------------------------------------------------------------------------ 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=72724 -- Edit this bug report at https://bugs.php.net/bug.php?id=72724&edit=1

« previous php.bugs (#203384) next »