ID:               49098
 Updated by:       srina...@php.net
 Reported By:      bugs at timj dot co dot uk
 Status:           Open
 Bug Type:         Session related
 Operating System: Linux
 PHP Version:      5.2.10
 New Comment:

i do have a wordpress running with php 5.2.11 for my site and i don't
have any issues. if you do notice with the latest php build, if you can
provide a test case to reproduce this bug that would be useful.

as i noted earlier, i was not able to reproduce this bug with the
provided test case here. 


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

[2009-09-18 19:43:06] ulf at ladb dot unm dot edu

Hi,

Is this bug still under investigation? Just wondering because 5.2.9 is
the last version of PHP that works with Wordpress/MySQL without crashing
Apache.
Thanks.

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

[2009-09-16 18:19:08] sriram dot natarajan at gmail dot com

i just took the latest php snapshot from http://snaps.php.net and tried
it out. if you notice, my script is just a completion of your script - i
just filled in some missing pieces in your script - like creating the
table etc . 

i am also using mysql 5.1.30

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

[2009-09-16 06:01:10] t...@php.net

sriram:
a) can you specify exactly which snapshot you use so that I can
confirm/deny what you say
b) did you try my test script? what does that do? why did you make up a
new one? 

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

[2009-09-16 02:26:55] sriram dot natarajan at gmail dot com

i just tried a simple php with mdb2/http_session2  with the latest php
snapshot and was not able to reproduce this issue. is there some thing
else required to reproduce this issue ?

here is the simple script that i had to try it out

<?php
require_once 'MDB2.php';
require_once 'HTTP/Session2.php';

$dsn = 'mysqli://root:@localhost/mysql';
$mdb2 =& MDB2::singleton($dsn);
$mdb2->loadModule('Manager');
$mdb2->loadModule('Extended');

$db = $mdb2->connect($dsn);
$table_fields = array
(
   'id'     =>  array(
                    'type' => 'text',
                    'length' => '32'),
   'data'   =>  array(
                    'type' => 'text',
                    'length' => '32'),
   'skey'   =>  array(
                    'type' => 'text',
                    'length' => '32'),
   'expiry' =>  array(
                    'type' => 'integer',
                    'notnull' => 1,
                    'unsigned' => 0),
);
$table_constraints = array(
    'primary' => true,
    'fields' => array (
                'id' => array()),
);
$s = $mdb2->createTable('session_data', $table_fields);
if (PEAR::isError($s)) {
   die($s->getMessage() . ', ' . $s->getDebugInfo());
}
$mdb2->createConstraint('session_data',
'primary_key',$table_constraints);
$mdb2->createSequence('primary_key');

$options = array();
$options['dsn']   = $dsn;
$options['table'] = 'session_data';

HTTP_Session2::setContainer('MDB2', $options);
HTTP_Session2::start('MySESS');
HTTP_Session2::set('variable', 'The string');

?>

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

[2009-09-04 11:30:40] t...@php.net

Further info: the crash does NOT occur if the DSN string is changed to
"mysql://..." instead of "mysqli://..." (this also seemed to be the case
in similar bug #48922)

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

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

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

Reply via email to