[PHP-DEV] CVS Account Request: fab
In order to add Cache/HTTP_Request.php, I need an access to pear repository. Sponsor : Richard Heyes on the pear-dev list Thanks ! -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Bug #13808: Session vars not saved
From: [EMAIL PROTECTED] Operating system: Windows 2000 Pro PHP version: 4.0.6 PHP Bug Type: Session related Bug description: Session vars not saved I use a class to manage member on my site (login, logout, register, ...). When a user login, I want to save a unique id to identify the user. But the token is never save in the session. When I use a cookie to remember user, the session works. The token is set in a class function and just after, I redirect the user with a header(Location: $HTTP_REFERER); There is the script I use for login user: session_start(); ... $res = $user-login($nickname,$passwd,$rem); if ($res) { header(Location: index.php?module=homecontent=default..session_name().=.session_id()); exit; } The class function login: function login($username,$passwd,$remember=false) { ... if ($remember) setcookie(token_cook,$token,time()+(365*24*60*60)); session_register('token_sess'); $token_sess = $token_cook = $token; $this-errno = 0; return true; } I would like to know what is wrong in my script. Thanks. Fab -- Edit bug report at: http://bugs.php.net/?id=13808edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: [Patch for sybase_connect (segfault) problem on win32]
Hi, I compiled sybase module for php, but I have now an other problem... Yes, if I use the new extension (the same as Tor-Egil), Apache exits with an application Fault !!! Apache with php4module.dll. If you configure Apache to use php.exe, It's work ! So, I tried to compile the whole php4 and apache on win32 (yes, yes I do it - hard job), but it's still the same. Let me now if you have a solution to solve it. You must use OpenClient 11.1.1 at least. And this problem doesn't exist on unix platform. A case is still open at sybase support. Fabien Reygrobellet I'm a former sybase professional services senior consultant. Tor-Egil Nygaard [EMAIL PROTECTED] wrote: It seems like the declaration of the "_client_message_handler" (line 197) and the "_server_message_handler" (line 220) in "ext/sybase_ct/sybase_ct.c" are wrong. According to the sybase sample code, found in "/sybase/sample/exutils.h" they are supposed to be declared not only as CS_RETCOD, but also as CS_PUBLIC. This has also been mention by [EMAIL PROTECTED] in bug report http://bugs.php.net/?id=8836 Which would make the statement on line 197 look like extern CS_RETCODE CS_PUBLIC _client_message_handler(CS_CONTEXT *context, CS_CONNECTION *connection, CS_CLIENTMSG *errmsg) instead of static CS_RETCODE _client_message_handler(CS_CONTEXT *context, CS_CONNECTION *connection, CS_CLIENTMSG *errmsg) and the statement on line 220 should look like extern CS_RETCODE CS_PUBLIC _server_message_handler(CS_CONTEXT *context, CS_CONNECTION *connection, CS_SERVERMSG *srvmsg) instead of static CS_RETCODE _server_message_handler(CS_CONTEXT *context, CS_CONNECTION *connection, CS_SERVERMSG *srvmsg) I have tested this change on Windows NT/2000 and SuSE Linux without experiencing any problems. Without the change php gives a memory fault on Windows NT/2000 after sybase_(p)connect if you are using llibct.dll version 11.x.x. If you are using libct.dll version 10.04 it works ok, but this is a version sybase is about to stop supporting. Could someone please put this into the cvs so it will be for PHP version 4.0.5. TIA Regards Tor-Egil Nygaard Get free email and a permanent address at http://www.netaddress.com/?N=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #8836: memory fault after sybase_connect
From: [EMAIL PROTECTED] Operating system: Win32 PHP version: 4.0.4pl1 PHP Bug Type: Sybase-ct (ctlib) related Bug description: memory fault after sybase_connect memory fault after sybase_connect in order to connect to sybase server with PHP4 and Sybase openclient 11.1.1, you need to change some lines in php_sybase_ct.c all sybase message handler must be declared with CS_PUBLIC : CS_RETCODE CS_PUBLIC _client_message_handler(CS_CONTEXT *context, CS_CONNECTION *connection, CS_CLIENTMSG *errmsg) and CS_RETCODE CS_PUBLIC _server_message_handler(CS_CONTEXT *context, CS_CONNECTION *connection, CS_SERVERMSG *srvmsg) please change these lines. thanks -- Edit Bug report at: http://bugs.php.net/?id=8836edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]