Re: [PHP-DEV] Bug #11432 Updated: crash when restoring references to objects

2001-06-20 Thread Thies C. Arntzen

On Wed, Jun 20, 2001 at 04:47:43PM +0200, Thies C. Arntzen wrote:
 please try attached patch and report back!

this patch fixes the crash - the reference is still fu**ed
afetr the 2nd reload - switching my brain into 2nd gear;-)

tc

-- 
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] Bug #11432 Updated: crash when restoring references to objects

2001-06-20 Thread thies

ID: 11432
Updated by: thies
Reported By: [EMAIL PROTECTED]
Old-Status: Duplicate
Status: Closed
Bug Type: *Session related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:



Previous Comments:
---

[2001-06-19 11:21:49] [EMAIL PROTECTED]
I think this bug is strictly related to bug #8676.

I didn't look close enough to all open bugs wher reporting this one. I'll test new CVS 
when #8676 will be closed. 

---

[2001-06-15 06:59:17] [EMAIL PROTECTED]
Reclassifying (I don't think it can be reproduced with 'pure scripting' alone, so it's 
probably a session module bug

---

[2001-06-12 13:40:40] [EMAIL PROTECTED]
reproduced with 4.0.6RC3


---

[2001-06-12 08:29:39] [EMAIL PROTECTED]
Here are two scripts that operates on referenced objects. make.php creates object $b 
with reference to object $a as argument.

After serialize/unserialize show.php checks if the reference still exists.

PHP 4.0.1pl1 lost references.
PHP 4.0.4pl1 segfaults on show.php
PHP 4.0.5segfaults on show.php and(!) sometimes on make.php

Config line:
./configure --with-pgsql=shared --with-apxs --sysconfdir=/etc --prefix=/usr 
--localstatedir =/var --with-config-file-path=/etc/httpd/conf/ 
--with-gettext=/usr/share/gettext

make.php:
?
class ClassA {
 var $arg_a;
};

class ClassB {
var $arg_b;
 
function ClassB($a) {
$this - arg_b = $a;
}
};

session_start();
session_destroy();
session_register(b);
session_register(a);

$a = new ClassA();
$a - arg_a = 4;
$b = new ClassB($a);
echo done. Click a href=show.phphere/a;
?


show.php:
?
class ClassA {
 var $arg_a;
};

class ClassB {
var $arg_b;
 
function ClassB($a) {
$this - arg_b = $a;
}
};

session_start();
$a - arg_a = 6;
echo $b - arg_b - arg_a;
?

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11432edit=2


-- 
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]




Re: [PHP-DEV] Bug #11432 Updated: crash when restoring references to objects

2001-06-20 Thread Thies C. Arntzen

On Wed, Jun 20, 2001 at 06:47:46PM +0200, Jani Taskinen wrote:
 On Wed, 20 Jun 2001, Thies C. Arntzen wrote:
 
 On Wed, Jun 20, 2001 at 04:47:43PM +0200, Thies C. Arntzen wrote:
  please try attached patch and report back!
 
 this patch fixes the crash - the reference is still fu**ed
 afetr the 2nd reload - switching my brain into 2nd gear;-)
 
 You committed something to latest CVS? I guess it was the really
 working patch then? :)

yup it is.

 
 Are you going to MFH it ?? I think this should go into 4.0.6.
 It has been broken so long now.

no too sure as it really changes a few internals and needs
_good_ testing!

comments?

tc

-- 
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]




Re: [PHP-DEV] Bug #11432 Updated: crash when restoring references to objects

2001-06-20 Thread Thies C. Arntzen

On Wed, Jun 20, 2001 at 07:05:23PM +0200, Jani Taskinen wrote:
 On Wed, 20 Jun 2001, Thies C. Arntzen wrote:
 
  Are you going to MFH it ?? I think this should go into 4.0.6.
  It has been broken so long now.
 
 no too sure as it really changes a few internals and needs
 _good_ testing!
 
 comments?
 
 Nope. I can't test it. The HEAD branch doesn't work for me at all
 Not since the upgrade to libtool 1.4. That's why I asked if you're
 gonna MFH. :)

hmm - there are some more changes in the session module
between PHP_4_0_6 and HEAD. i will not merge my changes into
4.0.6 - your choices: a) use HEAD b) merge HEAD version of
session into your current PHP c) wait for 4.0.7

sorry,
tc

-- 
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]




Re: [PHP-DEV] Bug #11432 Updated: crash when restoring references to objects

2001-06-20 Thread Jon Parise

On Wed, Jun 20, 2001 at 06:51:31PM +0200, Thies C. Arntzen wrote:

  Are you going to MFH it ?? I think this should go into 4.0.6.
  It has been broken so long now.
 
 no too sure as it really changes a few internals and needs
 _good_ testing!

4.0.6 really needs to get out the door.  Save it for 4.0.7.

-- 
Jon Parise ([EMAIL PROTECTED])  .  Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/  :  Computer Science House Member

-- 
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] Bug #11432 Updated: crash when restoring references to objects

2001-06-19 Thread sniper

ID: 11432
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

reproduced with 4.0.6RC3


Previous Comments:
---

[2001-06-12 08:29:39] [EMAIL PROTECTED]
Here are two scripts that operates on referenced objects. make.php creates object $b 
with reference to object $a as argument.

After serialize/unserialize show.php checks if the reference still exists.

PHP 4.0.1pl1 lost references.
PHP 4.0.4pl1 segfaults on show.php
PHP 4.0.5segfaults on show.php and(!) sometimes on make.php

Config line:
./configure --with-pgsql=shared --with-apxs --sysconfdir=/etc --prefix=/usr 
--localstatedir =/var --with-config-file-path=/etc/httpd/conf/ 
--with-gettext=/usr/share/gettext

make.php:
?
class ClassA {
 var $arg_a;
};

class ClassB {
var $arg_b;
 
function ClassB($a) {
$this - arg_b = $a;
}
};

session_start();
session_destroy();
session_register(b);
session_register(a);

$a = new ClassA();
$a - arg_a = 4;
$b = new ClassB($a);
echo done. Click a href=show.phphere/a;
?


show.php:
?
class ClassA {
 var $arg_a;
};

class ClassB {
var $arg_b;
 
function ClassB($a) {
$this - arg_b = $a;
}
};

session_start();
$a - arg_a = 6;
echo $b - arg_b - arg_a;
?

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11432edit=2


-- 
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] Bug #11432 Updated: crash when restoring references to objects

2001-06-19 Thread zeev

ID: 11432
Updated by: zeev
Reported By: [EMAIL PROTECTED]
Status: Open
Old-Bug Type: Scripting Engine problem
Bug Type: *Session related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Reclassifying (I don't think it can be reproduced with 'pure scripting' alone, so it's 
probably a session module bug

Previous Comments:
---

[2001-06-12 13:40:40] [EMAIL PROTECTED]
reproduced with 4.0.6RC3


---

[2001-06-12 08:29:39] [EMAIL PROTECTED]
Here are two scripts that operates on referenced objects. make.php creates object $b 
with reference to object $a as argument.

After serialize/unserialize show.php checks if the reference still exists.

PHP 4.0.1pl1 lost references.
PHP 4.0.4pl1 segfaults on show.php
PHP 4.0.5segfaults on show.php and(!) sometimes on make.php

Config line:
./configure --with-pgsql=shared --with-apxs --sysconfdir=/etc --prefix=/usr 
--localstatedir =/var --with-config-file-path=/etc/httpd/conf/ 
--with-gettext=/usr/share/gettext

make.php:
?
class ClassA {
 var $arg_a;
};

class ClassB {
var $arg_b;
 
function ClassB($a) {
$this - arg_b = $a;
}
};

session_start();
session_destroy();
session_register(b);
session_register(a);

$a = new ClassA();
$a - arg_a = 4;
$b = new ClassB($a);
echo done. Click a href=show.phphere/a;
?


show.php:
?
class ClassA {
 var $arg_a;
};

class ClassB {
var $arg_b;
 
function ClassB($a) {
$this - arg_b = $a;
}
};

session_start();
$a - arg_a = 6;
echo $b - arg_b - arg_a;
?

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11432edit=2


-- 
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] Bug #11432 Updated: crash when restoring references to objects

2001-06-19 Thread zork

ID: 11432
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: *Session related
Operating system: Linux 2.2.16
PHP Version: 4.0.5
Description: crash when restoring references to objects

I think this bug is strictly related to bug #8676.

I didn't look close enough to all open bugs wher reporting this one. I'll test new CVS 
when #8676 will be closed. 

Previous Comments:
---

[2001-06-15 06:59:17] [EMAIL PROTECTED]
Reclassifying (I don't think it can be reproduced with 'pure scripting' alone, so it's 
probably a session module bug

---

[2001-06-12 13:40:40] [EMAIL PROTECTED]
reproduced with 4.0.6RC3


---

[2001-06-12 08:29:39] [EMAIL PROTECTED]
Here are two scripts that operates on referenced objects. make.php creates object $b 
with reference to object $a as argument.

After serialize/unserialize show.php checks if the reference still exists.

PHP 4.0.1pl1 lost references.
PHP 4.0.4pl1 segfaults on show.php
PHP 4.0.5segfaults on show.php and(!) sometimes on make.php

Config line:
./configure --with-pgsql=shared --with-apxs --sysconfdir=/etc --prefix=/usr 
--localstatedir =/var --with-config-file-path=/etc/httpd/conf/ 
--with-gettext=/usr/share/gettext

make.php:
?
class ClassA {
 var $arg_a;
};

class ClassB {
var $arg_b;
 
function ClassB($a) {
$this - arg_b = $a;
}
};

session_start();
session_destroy();
session_register(b);
session_register(a);

$a = new ClassA();
$a - arg_a = 4;
$b = new ClassB($a);
echo done. Click a href=show.phphere/a;
?


show.php:
?
class ClassA {
 var $arg_a;
};

class ClassB {
var $arg_b;
 
function ClassB($a) {
$this - arg_b = $a;
}
};

session_start();
$a - arg_a = 6;
echo $b - arg_b - arg_a;
?

---


Full Bug description available at: http://bugs.php.net/?id=11432


-- 
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]