#49450 [Asn->Fbk]: Segmentation fault with ArrayObject::offsetSet()

From: Date: Thu, 03 Sep 2009 18:30:16 +0000
Subject: #49450 [Asn->Fbk]: Segmentation fault with ArrayObject::offsetSet()
References: 1  Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-5797@lists.php.net to get a copy of this message
ID: 49450 Updated by: bjori@php.net Reported By: arnold at adaniels dot nl -Status: Assigned +Status: Feedback Bug Type: Website problem Operating System: Linux / Ubuntu 9.04 PHP Version: 5.3.0 Assigned To: bjori New Comment: Why do you have MAGIC_COOKIE at all? Did you try to login as developer at some point to any php.net service? Previous Comments: ------------------------------------------------------------------------ [2009-09-03 11:58:38] arnold at adaniels dot nl The same problem occured again. I get the message: Authentication failed: Incorrect username Authentication failed: Incorrect username Warning: Cannot modify header information - headers already sent by (output started at /home/Web/sites/php-bugs-web/include/auth.inc:30) in /home/Web/sites/php-bugs-web/report.php on line 201 --- My cookies: http://bugs.php.net/report.php 2 cookies Name MAGIC_COOKIE Value OnJ1bGV6NGZy Host .php.net Path / Secure No Expires Tue, 15 Sep 2009 10:49:57 GMT Name PHPSESSID Value 276ed6ccd97d407df90fca8f38334a0c Host bugs.php.net Path / Secure No Expires At End Of Session ------------------------------------------------------------------------ [2009-09-03 10:54:12] derick@php.net Changing this one to a website issue then... #49449 is still your original report. ------------------------------------------------------------------------ [2009-09-03 10:49:54] arnold at adaniels dot nl The PHP bugs app resulted in 'Authentication failed' and appeared not to have submitted the bug. Therefor I pressed 'Submit' again. I didn't get the confirmed page until I cleared my cookies. ------------------------------------------------------------------------ [2009-09-03 10:42:19] derick@php.net Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. 49449 ------------------------------------------------------------------------ [2009-09-03 10:33:46] arnold at adaniels dot nl Description: ------------ Using array access on $this in ArrayObject::offsetSet() causes a segmentation fault. (Calling parent::offsetSet() instead, works fine) Reproduce code: --------------- class AOTest extends ArrayObject { public function offsetSet($index, $newval) { $this[$index] = (int)$newval; } } $a = new AOTest(); $a['test'] = "10 doves"; var_dump((array)$a); Expected result: ---------------- array(1) { ["test"]=> int(10) } Actual result: -------------- Segmentation fault ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49450&edit=1

« previous php.webmaster (#5797) next »