ID: 22154 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Apache related Operating System: Linux 2.4.18-10 PHP Version: 4.3.0 New Comment:
I just finished building the PHP Stable 200302111630 snapshot for IBM HTTP Server, it built successfully. Thanks! Moving on to trying out my scripts again... Previous Comments: ------------------------------------------------------------------------ [2003-02-11 10:57:07] [EMAIL PROTECTED] As I said, downloads work up to about 1MB with the sessions. Larger than that, they fail. Even so, using headers, as long as I generate all my headers before displaying anything it should all work. ------------------------------------------------------------------------ [2003-02-11 09:54:17] [EMAIL PROTECTED] When you use sessions, some http headers are sent..maybe those are the ones causing the downloads to fail? ------------------------------------------------------------------------ [2003-02-10 22:47:33] [EMAIL PROTECTED] The compatibility issue with the IBM HTTP Server has been resolved. Appropiate solutions are available as part of all main branches. ------------------------------------------------------------------------ [2003-02-10 22:33:28] [EMAIL PROTECTED] Try this: <?php session_start(); $fp = fopen('SOMELARGETEXTFILE','r'); if ($fp) { fpassthru($fp); } else { echo "file not found\n"; } ?> The reproducable error that fails for me no matter what. ------------------------------------------------------------------------ [2003-02-10 22:11:57] [EMAIL PROTECTED] After a whole lot more testing tonight, I've discovered a few nasty annoying things. Outline of what I'm trying to do: A self serve support center for users. Users login into a session Session checkes user credentials in an LDAP directory Session variables stored in MySQL database >From the support site users may download patches & updates Users can open a support request. So, nothing too weird. If I comment out all of my session material it works. Using any session handling functions downloads work up to 1MB. If I comment out the LDAP authentication, the behavior is the same. If I comment out the MySQL handler and use the PHP default file handler, the behavior is the same. If I comment out the session handling, the LDAP authentication and the DBMS stuff the downloads work. I've gotten the Apache thread to exit and dump all the contents of all the script variables to the web browser screen with no core dump. All this indicates to me something in the PHP session handling is stampling memory allocations. Especially since I've gotten the same results using an fread() loop instead of fpassthru(). ------------------------------------------------------------------------ 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/22154 -- Edit this bug report at http://bugs.php.net/?id=22154&edit=1