[PHP-DEV] Bug #15386 Updated: Nested Objects in session crash Both Apache and IIS

2002-02-05 Thread derick

 ID:   15386
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Bogus
 Bug Type: Session related
 Operating System: Linux & Win2K
 PHP Version:  4.1.1
 New Comment:

Only set it it to bogus once, otherwise we would need a duplicate bogus
request bug state :)


Previous Comments:


[2002-02-05 07:10:20] [EMAIL PROTECTED]

Submit only once.



[2002-02-05 07:10:05] [EMAIL PROTECTED]

Submitted twice



[2002-02-05 07:06:26] [EMAIL PROTECTED]

Operating Systems: - Linux (with Apache)
   - Win2k (with both Apache and IIS)

I have a script with two object, one that has the reference to the
other. Once the objects are initialized I put them in session before
the parent and then the child.

If I reload the page, accessing the child object and modifying a
property, after 2-3 times I receive a server error on php module.

On IIS:   ACCESS VIOLATION XX
On Apache(Linux): child pid x exit signal Segmentation fault

If I invert the two session_register (registering before the child
object and then the parent), it all works perfectly.

nephew = &$n;
}

function toString() {
if($this->nephew) {
echo "The nephews are " . $this->nephew->name."";
}
else {
echo "No nephews";
}
}
}

session_start();

if(!isset($family)) {
$family = new Family();
$nephew = new Nephew();
$family->setNephew(&$nephew);

session_register('family');
session_register('nephew');
}

$nephew->name .= " - ";
?>




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


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




[PHP-DEV] Bug #15386 Updated: Nested Objects in session crash Both Apache and IIS

2002-02-05 Thread lobbin

 ID:   15386
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Bogus
 Bug Type: Session related
 Operating System: Linux & Win2K
 PHP Version:  4.1.1
 New Comment:

Submit only once.


Previous Comments:


[2002-02-05 07:10:05] [EMAIL PROTECTED]

Submitted twice



[2002-02-05 07:06:26] [EMAIL PROTECTED]

Operating Systems: - Linux (with Apache)
   - Win2k (with both Apache and IIS)

I have a script with two object, one that has the reference to the
other. Once the objects are initialized I put them in session before
the parent and then the child.

If I reload the page, accessing the child object and modifying a
property, after 2-3 times I receive a server error on php module.

On IIS:   ACCESS VIOLATION XX
On Apache(Linux): child pid x exit signal Segmentation fault

If I invert the two session_register (registering before the child
object and then the parent), it all works perfectly.

nephew = &$n;
}

function toString() {
if($this->nephew) {
echo "The nephews are " . $this->nephew->name."";
}
else {
echo "No nephews";
}
}
}

session_start();

if(!isset($family)) {
$family = new Family();
$nephew = new Nephew();
$family->setNephew(&$nephew);

session_register('family');
session_register('nephew');
}

$nephew->name .= " - ";
?>




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


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




[PHP-DEV] Bug #15386 Updated: Nested Objects in session crash Both Apache and IIS

2002-02-05 Thread derick

 ID:   15386
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: Session related
 Operating System: Linux & Win2K
 PHP Version:  4.1.1
 New Comment:

Submitted twice


Previous Comments:


[2002-02-05 07:06:26] [EMAIL PROTECTED]

Operating Systems: - Linux (with Apache)
   - Win2k (with both Apache and IIS)

I have a script with two object, one that has the reference to the
other. Once the objects are initialized I put them in session before
the parent and then the child.

If I reload the page, accessing the child object and modifying a
property, after 2-3 times I receive a server error on php module.

On IIS:   ACCESS VIOLATION XX
On Apache(Linux): child pid x exit signal Segmentation fault

If I invert the two session_register (registering before the child
object and then the parent), it all works perfectly.

nephew = &$n;
}

function toString() {
if($this->nephew) {
echo "The nephews are " . $this->nephew->name."";
}
else {
echo "No nephews";
}
}
}

session_start();

if(!isset($family)) {
$family = new Family();
$nephew = new Nephew();
$family->setNephew(&$nephew);

session_register('family');
session_register('nephew');
}

$nephew->name .= " - ";
?>




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


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