sniper          Wed Feb 18 20:54:22 2004 EDT

  Modified files:              
    /php-src/ext/session        session.c 
  Log:
  Improve error messages
  
http://cvs.php.net/diff.php/php-src/ext/session/session.c?r1=1.383&r2=1.384&ty=u
Index: php-src/ext/session/session.c
diff -u php-src/ext/session/session.c:1.383 php-src/ext/session/session.c:1.384
--- php-src/ext/session/session.c:1.383 Sun Feb 15 07:58:19 2004
+++ php-src/ext/session/session.c       Wed Feb 18 20:54:21 2004
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: session.c,v 1.383 2004/02/15 12:58:19 zeev Exp $ */
+/* $Id: session.c,v 1.384 2004/02/19 01:54:21 sniper Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -705,13 +705,13 @@
        int vallen;
 
        if (!PS(mod)) {
-               php_error_docref(NULL TSRMLS_CC, E_ERROR, "Failed to initialize 
session module.");
+               php_error_docref(NULL TSRMLS_CC, E_ERROR, "No storage module chosen - 
failed to initialize session.");
                return;
        }
 
        /* Open session handler first */
        if (PS(mod)->s_open(&PS(mod_data), PS(save_path), PS(session_name) TSRMLS_CC) 
== FAILURE) {
-               php_error_docref(NULL TSRMLS_CC, E_ERROR, "Failed to initialize 
session module");
+               php_error_docref(NULL TSRMLS_CC, E_ERROR, "Failed to initialize 
storage module: %s (path: %s)", PS(mod)->s_name, PS(save_path));
                return;
        }
        

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to