#37577 [NEW]: Much Memory Usage while copy big files
From: petrich at tronic-media dot com Operating system: Linux + Windows PHP version: 5.1.4 PHP Bug Type: *General Issues Bug description: Much Memory Usage while copy big files Description: Not sure if it's a "bug or a feature", but when copying a 70MB file via PHP's copy() function, the php process will use nearly the same Memory. I found a (closed) Bug Report (#29922) relatet to this Issue (http://bugs.php.net/bug.php?id=29922), it seems to be fixed long time ago, but in PHP 5.1.4 it is not. Testet with PHP 5.1.4 (on Win-XP and Linux) as Apache2 Module. (All extentins disabled + default php.ini-dist settings) This Bug/Feature does'nt occur in php 4.3.3 (Win-XP as Apache2 Module). Reproduce code: --- Expected result: Less Memory Usage in the top listing. Actual result: -- Much Memory Usage in the top listing. -- Edit bug report at http://bugs.php.net/?id=37577&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37577&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37577&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37577&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37577&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37577&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37577&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=37577&r=needscript Try newer version:http://bugs.php.net/fix.php?id=37577&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37577&r=support Expected behavior:http://bugs.php.net/fix.php?id=37577&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37577&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37577&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37577&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37577&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37577&r=dst IIS Stability:http://bugs.php.net/fix.php?id=37577&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37577&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37577&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37577&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=37577&r=mysqlcfg
#25840 [NEW]: ob_start("ob_gzhandler") in combination with flush(): wrong HTTP header output?
From: petrich at tronic-media dot com Operating system: Linux (Kernel 2.4.20) PHP version: 4.3.4RC1 PHP Bug Type: Output Control Bug description: ob_start("ob_gzhandler") in combination with flush(): wrong HTTP header output? Description: Hi, if using ob_start("ob_gzhandler") in combination with flush() it seems php send wrong HTTP header to the Browser (see Reproduce code). Thank you Hans-Jürgen Petrich Tested with Linux OS (Kernel 2.4.20) Apache2 (2.0.47) PHP 4.3.4RC1 (as Apache2 Handler) './configure' '--with-mysql=/usr' '--with-zlib' '--with-apxs2' default php.ini-dist is used Reproduce code: --- This should be a compressed page. Expected result: HTTP/1.1 200 OK Date: Sat, 11 Oct 2003 16:53:06 GMT Server: Apache/2.0.47 (Unix) mod_ssl/2.0.47 OpenSSL/0.9.6b DAV/2 PHP/4.3.4RC1 X-Powered-By: PHP/4.3.4RC1 Content-Encoding: gzip Vary: Accept-Encoding Connection: close Content-Type: text/html; charset=ISO-8859-1 Actual result: -- HTTP/1.1 200 OK Date: Sat, 11 Oct 2003 16:53:36 GMT Server: Apache/2.0.47 (Unix) mod_ssl/2.0.47 OpenSSL/0.9.6b DAV/2 PHP/4.3.4RC1 X-Powered-By: PHP/4.3.4RC1 Connection: close Content-Type: text/html; charset=ISO-8859-1 -- Edit bug report at http://bugs.php.net/?id=25840&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25840&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25840&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25840&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25840&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25840&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25840&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=25840&r=support Expected behavior: http://bugs.php.net/fix.php?id=25840&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=25840&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=25840&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25840&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25840&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25840&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25840&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=25840&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25840&r=float
#24401 [Com]: register globals does not work correctly??!!
ID: 24401 Comment by: petrich at tronic-media dot com Reported By: eero at jlug dot org Status: Open Bug Type: *General Issues Operating System: Linux PHP Version: 5.0.0b1 (beta1) New Comment: Hi, still have the problem; (register_globals = On in php.ini are ignored, ServerApi = Apache2) Configure String: ./configure --disable-all --with-apxs2=/mnt/60giga/samba/public/www/apache2/bin/apxs Hans-Jürgen Petrich Previous Comments: [2003-06-30 06:22:57] eero at jlug dot org Now compiled with ./configure --with-mysql --with-apxs=/home/apache/bin/apxs and problems still exists. [2003-06-30 06:01:28] [EMAIL PROTECTED] 1. Drop this: export CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer" 2. Using /usr/lib as path to ANY php configure option is incorrect (use /usr instead) 3. Remove following configure options: --enable-versioning --enable-inline-optimization 4. Try this configure line instead: # rm config.cache # ./configure --disable-all --with-apxs=home/apache/bin/apxs [2003-06-30 05:43:07] eero at jlug dot org and following settings are also on: register_globals = On register_long_arrays = On register_argc_argv = On echo $QUERY_STRING also stops working and so. [2003-06-30 05:34:33] eero at jlug dot org php5 compiled with following on Linux, Linux lnx 2.4.18-18.7.x with athlon 1400 processor export CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer" ./configure --with-mysql --with-bz2 --with-gd --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-gettext --enable-inline-optimization \ --with-apxs=/home/apache/bin/apxs --with-pgsql --with-zlib-dir=/usr/lib --enable-ftp --enable-sockets --with-ming --with-mm --with-pdflib \ --enable-mime-magic --enable-dio --enable-calendar --enable-bcmath --enable-wddx --with-xmlrpc --with-expat --with-dom --with-unixODBC \ --with-freetype --enable-gd-native-ttf --with-gettext --with-gmp --enable-mbstring --enable-mbregex --enable-xslt --with-xslt-sablot \ --with-sablot-js --enable-shmop --enable-versioning And register_globals is on and showing in phpinfo() [2003-06-30 05:25:36] petrich at tronic-media dot com Upsss, >on my machine (linux 7.2 / Kernel 2.4.9-21) with php5b1 the same linux 7.2 == Red-Hat 7.2 Hans-Jürgen Petrich 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 http://bugs.php.net/24401 -- Edit this bug report at http://bugs.php.net/?id=24401&edit=1
#24401 [Com]: register globals does not work correctly??!!
ID: 24401 Comment by: petrich at tronic-media dot com Reported By: eero at jlug dot org Status: Feedback Bug Type: *General Issues Operating System: Linux PHP Version: 5.0.0b1 (beta1) New Comment: Upsss, >on my machine (linux 7.2 / Kernel 2.4.9-21) with php5b1 the same linux 7.2 == Red-Hat 7.2 Hans-Jürgen Petrich Previous Comments: [2003-06-30 05:23:41] petrich at tronic-media dot com Hi, on my machine (linux 7.2 / Kernel 2.4.9-21) with php5b1 the same Problem. In php.ini register_globals = On and in .htaccess also php_flag register_globals on phpinfo() says: register_globals On On Configured with: './configure' '--prefix=/usr' '--with-mysql=/usr' '--with-prefix=/usr' '--with-zlib' --enable-force-cgi-redirect Perhaps that will help... Greetings Hans-Jürgen Petrich [2003-06-30 04:43:06] [EMAIL PROTECTED] Works fine here... what does phpinfo() say about register_globals? [2003-06-30 04:39:04] eero at jlug dot org ilmoitustaulu.php contains like that: if($action == "add") do_something(); else do_something2(); But $action contains is not passed to to ilmoitustaulu.php [2003-06-30 04:13:55] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. [2003-06-30 03:38:14] eero at jlug dot org Description: Compiled php5 on my machine, and setted register_globals=On and this kind of urls does not work http://server.foo/ilmoitustaulu.php?action=foo $action is not visible in ilmoitustaulu.php. -- Edit this bug report at http://bugs.php.net/?id=24401&edit=1
#24401 [Com]: register globals does not work correctly??!!
ID: 24401 Comment by: petrich at tronic-media dot com Reported By: eero at jlug dot org Status: Feedback Bug Type: *General Issues Operating System: Linux PHP Version: 5.0.0b1 (beta1) New Comment: Hi, on my machine (linux 7.2 / Kernel 2.4.9-21) with php5b1 the same Problem. In php.ini register_globals = On and in .htaccess also php_flag register_globals on phpinfo() says: register_globals On On Configured with: './configure' '--prefix=/usr' '--with-mysql=/usr' '--with-prefix=/usr' '--with-zlib' --enable-force-cgi-redirect Perhaps that will help... Greetings Hans-Jürgen Petrich Previous Comments: [2003-06-30 04:43:06] [EMAIL PROTECTED] Works fine here... what does phpinfo() say about register_globals? [2003-06-30 04:39:04] eero at jlug dot org ilmoitustaulu.php contains like that: if($action == "add") do_something(); else do_something2(); But $action contains is not passed to to ilmoitustaulu.php [2003-06-30 04:13:55] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. [2003-06-30 03:38:14] eero at jlug dot org Description: Compiled php5 on my machine, and setted register_globals=On and this kind of urls does not work http://server.foo/ilmoitustaulu.php?action=foo $action is not visible in ilmoitustaulu.php. -- Edit this bug report at http://bugs.php.net/?id=24401&edit=1