ID:               24252
 Updated by:       [EMAIL PROTECTED]
 Reported By:      jpenn at cheetah-soft dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Session related
 Operating System: RHAT 7
 PHP Version:      4.3.1
 New Comment:

Please leave the personal insults out.
You still don't seem to understand what "full but short" script means
so I'll try and explain it simply:

1. It starts with <?php and ends with ?>
2. I can copy'n'paste it from this report to a file and run
without having to edit it / add to it
3. It contains ONLY the necessary lines which show the problem

Clear now?



Previous Comments:
------------------------------------------------------------------------

[2003-07-09 10:51:05] jpenn at cheetah-soft dot com

What do you want sniper. Do you want the whole 300 lines of code from
the session handler?

------------------------------------------------------------------------

[2003-07-09 10:40:03] jpenn at cheetah-soft dot com

[quote]
As long as you fail to provide a full, but short example script which
CLEARLY shows whatta hell you're talking about, this stays bogus.
[/quote]
What in gods name are you talking about? Do you not see in the 4th post
on this bug? That is as clear as it gets. Are you a kid or something
sniper? This is rediculous that you are popping in and out of this and
totally overlooking the posts on this bug.

[From 4th post in this bug]
session_set_save_handler( array( &$this, 'open' ), array( &$this,
'close' ), array( &$this, 'read' ), array( &$this, 'write' ), array(
&$this, 'destroy' ), array( &$this, 'gc' ) );

Now, this is the open method:

function open( $blah, $blah )
{
      $res = mysql_connect( 'blah', 'blah', 'blah' );
      mysql_select_db( 'blah', $res );
      return( true );
}
--------------------------------------------

Do you not see that? Do you want it emailed to you?

------------------------------------------------------------------------

[2003-07-09 08:41:59] [EMAIL PROTECTED]

As long as you fail to provide a full, but short example script which
CLEARLY shows whatta hell you're talking about, this stays bogus.


------------------------------------------------------------------------

[2003-07-07 19:59:38] jpenn at cheetah-soft dot com

Sniper - the example is in my last post. Also:

[quote]
(of course you have to
connect to the database...)
[/quote]
Where did you come up with that? Who in there right mind would think
you would not have to connect to the DB? The whole bug can be summed up
with that small quote.

If you DO NOT CONNECT TO THE DB WITHIN THE OPEN METHOD - it will not
work.

- It will not work if you connect outside of the class
- It will not work if you connect inside the class but in a method
other than the sess_open method
- It will not work if you connect with a DB commection class

It will ONLY WORK if you connect inside the open method for that
function - the session_set_save_handler() function.

Excuse me for getting fustrated - but this was almost a simple bug
report, and very understandable from my first post. This is almost as
simple to understand as anything else the langauge has to offer.

~ Thanks

------------------------------------------------------------------------

[2003-07-07 19:42:19] [EMAIL PROTECTED]

Either I don't understand what you mean with this or you're just
expecting some weird magic to happen there. (of course you have to
connect to the database...)

Provide a FULL but short example script if you still think this is some
bug.



------------------------------------------------------------------------

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/24252

-- 
Edit this bug report at http://bugs.php.net/?id=24252&edit=1

Reply via email to