[drupal-support] session_set_save_handler troubles
Hello list. I use drupal on my production box. But I have 2 test stations. I use FreeBSD 5.3 platform. On the last week I after upgrade my test boxees, I restart it, and discoverit what drupal don't work... After tests I discovered, problem with function session_set_save_handler For example: test.php <?php phpinfo(); ?> curl localhost/test.php return : 34077 bytes but on this: <?php ini_set('session.save_handler', 'user'); phpinfo(); session_set_save_handler('open_session', 'close_session', 'read_session', 'write_session', 'destroy_session', 'gc_session'); function gc_session(){ } function write_session(){ } function destroy_session(){ } function read_session(){ } function open_session($ad, $df){ } function close_session(){ } ?> curl localhost/test.php return: return 32830 bytes with message curl: (18) transfer closed with outstanding read data remaining ... So, anybody have some ideas? I played with php.ini(remove it and change it).
On Tue, 7 Jun 2005, Alexandr Kosarev wrote:
curl localhost/test.php return : 34077 bytes
curl localhost/test.php return: return 32830 bytes with message curl: (18) transfer closed with outstanding read data remaining
...
So, anybody have some ideas?
Can you look at and compare the data that was returned? Cheers, Gerhard
On Tue, 7 Jun 2005, Alexandr Kosarev wrote:
curl localhost/test.php return : 34077 bytes
curl localhost/test.php return: return 32830 bytes with message curl: (18) transfer closed with outstanding read data remaining
...
So, anybody have some ideas?
Can you look at and compare the data that was returned? Hello Cheers.
I rebild all packages on may test boxes and get some results I try to use apache13 and get some results. So, I make diff for results of scripts m.php(with session_set_save_handler) and m1.php(without session_set_save_handler) alexandr@admin - 14:23 # diff /tmp/tmp.dru /tmp/tmp1.dru 28c28 < <a href="http://www.php.net/"><img border="0" src="/m1.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42" alt="PHP Logo" /></a><h1 class="p">PHP Version 4.3.11</h1> ---
<a href="http://www.php.net/"><img border="0" src="/m.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42" alt="PHP Logo" /></a><h1 class="p">PHP Version 4.3.11</h1> 50c50 < <a href="http://www.zend.com/"><img border="0" src="/m1.php?=PHPE9568F35-D428-11d2-A769-00AA001ACF42" alt="Zend logo" /></a>
<a href="http://www.zend.com/"><img border="0" src="/m.php?=PHPE9568F35-D428-11d2-A769-00AA001ACF42" alt="Zend logo" /></a> 55c55 < <h1><a href="/m1.php?=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000">PHP Credits</a></h1>
<h1><a href="/m.php?=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000">PHP Credits</a></h1> 160,162c160,162 < <tr><td class="e">UNIQUE_ID </td><td class="v">mS4sPcCoAgIAAEzJ98QAAAAA </td></tr> < <tr><td class="e">SCRIPT_URL </td><td class="v">/m1.php </td></tr> < <tr><td class="e">SCRIPT_URI </td><td class="v">http://test/m1.php </td></tr>
<tr><td class="e">UNIQUE_ID </td><td class="v">nA3ZmsCoAgIAAEzBg6UAAAAE </td></tr> <tr><td class="e">SCRIPT_URL </td><td class="v">/m.php </td></tr> <tr><td class="e">SCRIPT_URI </td><td class="v">http://test/m.php </td></tr> 177,178c177,178 < <tr><td class="e">SCRIPT_FILENAME </td><td class="v">/hosts/test/data/www/m1.php </td></tr> < <tr><td class="e">REMOTE_PORT </td><td class="v">63956 </td></tr>
<tr><td class="e">SCRIPT_FILENAME </td><td class="v">/hosts/test/data/www/m.php </td></tr> <tr><td class="e">REMOTE_PORT </td><td class="v">63501 </td></tr> 183,184c183,184 < <tr><td class="e">REQUEST_URI </td><td class="v">/m1.php </td></tr> < <tr><td class="e">SCRIPT_NAME </td><td class="v">/m1.php </td></tr>
<tr><td class="e">REQUEST_URI </td><td class="v">/m.php </td></tr> <tr><td class="e">SCRIPT_NAME </td><td class="v">/m.php </td></tr> 189c189 < <tr><td class="e">HTTP Request </td><td class="v">GET /m1.php HTTP/1.1 </td></tr>
<tr><td class="e">HTTP Request </td><td class="v">GET /m.php HTTP/1.1 </td></tr> 351,354c351,354 < <tr><td class="e">PHP_SELF </td><td class="v">/m1.php </td></tr> < <tr><td class="e">_SERVER["UNIQUE_ID"]</td><td class="v">mS4sPcCoAgIAAEzJ98QAAAAA</td></tr> < <tr><td class="e">_SERVER["SCRIPT_URL"]</td><td class="v">/m1.php</td></tr> < <tr><td class="e">_SERVER["SCRIPT_URI"]</td><td class="v">http://test/m1.php</td></tr>
<tr><td class="e">PHP_SELF </td><td class="v">/m.php </td></tr> <tr><td class="e">_SERVER["UNIQUE_ID"]</td><td class="v">nA3ZmsCoAgIAAEzBg6UAAAAE</td></tr> <tr><td class="e">_SERVER["SCRIPT_URL"]</td><td class="v">/m.php</td></tr> <tr><td class="e">_SERVER["SCRIPT_URI"]</td><td class="v">http://test/m.php</td></tr> 369,370c369,370 < <tr><td class="e">_SERVER["SCRIPT_FILENAME"]</td><td class="v">/hosts/test/data/www/m1.php</td></tr> < <tr><td class="e">_SERVER["REMOTE_PORT"]</td><td class="v">63956</td></tr>
<tr><td class="e">_SERVER["SCRIPT_FILENAME"]</td><td class="v">/hosts/test/data/www/m.php</td></tr> <tr><td class="e">_SERVER["REMOTE_PORT"]</td><td class="v">63501</td></tr> 375,378c375,378 < <tr><td class="e">_SERVER["REQUEST_URI"]</td><td class="v">/m1.php</td></tr> < <tr><td class="e">_SERVER["SCRIPT_NAME"]</td><td class="v">/m1.php</td></tr> < <tr><td class="e">_SERVER["PHP_SELF"]</td><td class="v">/m1.php</td></tr> < <tr><td class="e">_SERVER["PATH_TRANSLATED"]</td><td class="v">/hosts/test/data/www/m1.php</td></tr>
<tr><td class="e">_SERVER["REQUEST_URI"]</td><td class="v">/m.php</td></tr> <tr><td class="e">_SERVER["SCRIPT_NAME"]</td><td class="v">/m.php</td></tr> <tr><td class="e">_SERVER["PHP_SELF"]</td><td class="v">/m.php</td></tr> <tr><td class="e">_SERVER["PATH_TRANSLATED"]</td><td class="v">/hosts/test/data/www/m.php</td></tr> 410,431c410 < <tr><td class="e">_ENV["LANG"]</td><td class="v">ru_RU.KOI8-R</td></tr> < <tr><td class="e">_ENV["XAUTHORITY"]</td><td class="v">/home/admin/.Xauthority</td></tr> < <tr><td class="e">_ENV["SHELL"]</td><td class="v">/usr/local/bin/bash</td></tr> < <tr><td class="e">_ENV["KDE_MULTIHEAD"]</td><td class="v">false</td></tr> < <tr><td class="e">_ENV["CVSROOT"]</td><td class="v">/life/cvs</td></tr> < <tr><td class="e">_ENV["PWD"]</td><td class="v">/usr/ports/lang/php4</td></tr> < <tr><td class="e">_ENV["FTP_PASSIVE_MODE"]</td><td class="v">YES</td></tr> < <tr><td class="e">_ENV["EDITOR"]</td><td class="v">ee</td></tr> < </table><br /> < <h2>PHP License</h2> < <table border="0" cellpadding="3" width="600"> < <tr class="v"><td> < <p> < This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE < </p> < <p>This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. < </p> < <p>If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net. < </p> < </td></tr> < </table><br /> < </div></body></html> \ No newline at end of file
<tr><td class="e">_ENV["LANG"]</td><td class="v"> \ No newline at end of file
participants (2)
-
Alexandr Kosarev -
Gerhard Killesreiter