[PHP-DEV] Bug #11590 Updated: Segmentation fault when using an empty string as an array

2001-06-21 Thread zeev

ID: 11590
Updated by: zeev
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Reproducible crash
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Should be fixed in the latest CVS (and probably merged into 4.0.6).

Thanks for the report!

Previous Comments:
---

[2001-06-20 22:54:03] [EMAIL PROTECTED]
Crashes with current cvs for me too - needs to be fixed

---

[2001-06-20 17:41:49] [EMAIL PROTECTED]
- Linux 2.4.4 i686 / PHP 4.0.7-dev (21.05.01) / Apache
2.0.19-dev (21.05.01)  --  crashes too

- Linux 2.2.16-22 i686 / PHP 4.0.3pl1 / Apache 1.3.14  -- works

---

[2001-06-20 17:20:19] [EMAIL PROTECTED]
When i try this Script under FreeBSD 4.3-STABLE with PHP
4.0.5, and Apache 1.3.20 it run's without errors, or
segfaults...

---

[2001-06-20 17:13:37] [EMAIL PROTECTED]
Script:

parse($a);
}

function parse($string,$result="") {
for($i=0;$i<50;$i++) {
$result_[$i]["threadid"]=
$result[$i]["threadid"];
$result_[$i]["readcount"]   =
$result[$i]["readcount"];
}
return $result_;
}

}

class test2 {

function output() {
echo "hi";
$test = new test;
return $test->call();
}
}

$test2 = new test2;
print_r($test2->output());   
?>   

And Apache crashes with a Segfault:

Wed Jun 20 23:12:17 2001] [notice] child pid 28682 exit
signal Segmentation fault (11)
[Wed Jun 20 23:12:47 2001] [notice] child pid 28692 exit
signal Segmentation fault (11)


Greetings Olli


---

[2001-06-20 16:54:03] [EMAIL PROTECTED]
Please include a complete but short script into this report
which demonstrates this problem.
 

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


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


-- 
PHP Development Mailing List 
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 #11590 Updated: Segmentation fault when using an empty string as an array

2001-06-21 Thread rasmus

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

Crashes with current cvs for me too - needs to be fixed

Previous Comments:
---

[2001-06-20 17:41:49] [EMAIL PROTECTED]
- Linux 2.4.4 i686 / PHP 4.0.7-dev (21.05.01) / Apache
2.0.19-dev (21.05.01)  --  crashes too

- Linux 2.2.16-22 i686 / PHP 4.0.3pl1 / Apache 1.3.14  -- works

---

[2001-06-20 17:20:19] [EMAIL PROTECTED]
When i try this Script under FreeBSD 4.3-STABLE with PHP
4.0.5, and Apache 1.3.20 it run's without errors, or
segfaults...

---

[2001-06-20 17:13:37] [EMAIL PROTECTED]
Script:

parse($a);
}

function parse($string,$result="") {
for($i=0;$i<50;$i++) {
$result_[$i]["threadid"]=
$result[$i]["threadid"];
$result_[$i]["readcount"]   =
$result[$i]["readcount"];
}
return $result_;
}

}

class test2 {

function output() {
echo "hi";
$test = new test;
return $test->call();
}
}

$test2 = new test2;
print_r($test2->output());   
?>   

And Apache crashes with a Segfault:

Wed Jun 20 23:12:17 2001] [notice] child pid 28682 exit
signal Segmentation fault (11)
[Wed Jun 20 23:12:47 2001] [notice] child pid 28692 exit
signal Segmentation fault (11)


Greetings Olli


---

[2001-06-20 16:54:03] [EMAIL PROTECTED]
Please include a complete but short script into this report
which demonstrates this problem.
 

---

[2001-06-20 16:46:03] [EMAIL PROTECTED]
A Function in a class:

function mParseStatisticData ($ids,$result="" ) {

  // some stuff inside;

  $result_[$pos]["threadid"]= $result[$pos]["threadid"];M
  $result_[$pos]["readcount"]   = $result[$pos]["readcount"];M

}

I call these function with:

$result_ = $this->mParseStatisticData($a);

And the apache processes stops with a segmentation fault:
[Wed Jun 20 17:46:20 2001] [notice] child pid 28697 exit
signal Segmentation fault (11)

How to fix it:


function mParseStatisticData ($ids,$result=array() ) {


Ok, it's wrong to use a string as an array... my fault..
but.. why my apache (1.3.20) crashes with a segfault? ;-)

Greetings Olli

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


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


-- 
PHP Development Mailing List 
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 #11590 Updated: Segmentation fault when using an empty string as an array

2001-06-20 Thread phpbugs

ID: 11590
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating system: Linux 2.4.3 i686
PHP Version: 4.0.5
Description: Segmentation fault when using an empty string as an array

- Linux 2.4.4 i686 / PHP 4.0.7-dev (21.05.01) / Apache
2.0.19-dev (21.05.01)  --  crashes too

- Linux 2.2.16-22 i686 / PHP 4.0.3pl1 / Apache 1.3.14  -- works

Previous Comments:
---

[2001-06-20 17:20:19] [EMAIL PROTECTED]
When i try this Script under FreeBSD 4.3-STABLE with PHP
4.0.5, and Apache 1.3.20 it run's without errors, or
segfaults...

---

[2001-06-20 17:13:37] [EMAIL PROTECTED]
Script:

parse($a);
}

function parse($string,$result="") {
for($i=0;$i<50;$i++) {
$result_[$i]["threadid"]=
$result[$i]["threadid"];
$result_[$i]["readcount"]   =
$result[$i]["readcount"];
}
return $result_;
}

}

class test2 {

function output() {
echo "hi";
$test = new test;
return $test->call();
}
}

$test2 = new test2;
print_r($test2->output());   
?>   

And Apache crashes with a Segfault:

Wed Jun 20 23:12:17 2001] [notice] child pid 28682 exit
signal Segmentation fault (11)
[Wed Jun 20 23:12:47 2001] [notice] child pid 28692 exit
signal Segmentation fault (11)


Greetings Olli


---

[2001-06-20 16:54:03] [EMAIL PROTECTED]
Please include a complete but short script into this report
which demonstrates this problem.
 

---

[2001-06-20 16:46:03] [EMAIL PROTECTED]
A Function in a class:

function mParseStatisticData ($ids,$result="" ) {

  // some stuff inside;

  $result_[$pos]["threadid"]= $result[$pos]["threadid"];M
  $result_[$pos]["readcount"]   = $result[$pos]["readcount"];M

}

I call these function with:

$result_ = $this->mParseStatisticData($a);

And the apache processes stops with a segmentation fault:
[Wed Jun 20 17:46:20 2001] [notice] child pid 28697 exit
signal Segmentation fault (11)

How to fix it:


function mParseStatisticData ($ids,$result=array() ) {


Ok, it's wrong to use a string as an array... my fault..
but.. why my apache (1.3.20) crashes with a segfault? ;-)

Greetings Olli

---


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


-- 
PHP Development Mailing List 
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 #11590 Updated: Segmentation fault when using an empty string as an array

2001-06-20 Thread phpbugs

ID: 11590
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating system: Linux 2.4.3 i686
PHP Version: 4.0.5
Description: Segmentation fault when using an empty string as an array

When i try this Script under FreeBSD 4.3-STABLE with PHP
4.0.5, and Apache 1.3.20 it run's without errors, or
segfaults...

Previous Comments:
---

[2001-06-20 17:13:37] [EMAIL PROTECTED]
Script:

parse($a);
}

function parse($string,$result="") {
for($i=0;$i<50;$i++) {
$result_[$i]["threadid"]=
$result[$i]["threadid"];
$result_[$i]["readcount"]   =
$result[$i]["readcount"];
}
return $result_;
}

}

class test2 {

function output() {
echo "hi";
$test = new test;
return $test->call();
}
}

$test2 = new test2;
print_r($test2->output());   
?>   

And Apache crashes with a Segfault:

Wed Jun 20 23:12:17 2001] [notice] child pid 28682 exit
signal Segmentation fault (11)
[Wed Jun 20 23:12:47 2001] [notice] child pid 28692 exit
signal Segmentation fault (11)


Greetings Olli


---

[2001-06-20 16:54:03] [EMAIL PROTECTED]
Please include a complete but short script into this report
which demonstrates this problem.
 

---

[2001-06-20 16:46:03] [EMAIL PROTECTED]
A Function in a class:

function mParseStatisticData ($ids,$result="" ) {

  // some stuff inside;

  $result_[$pos]["threadid"]= $result[$pos]["threadid"];M
  $result_[$pos]["readcount"]   = $result[$pos]["readcount"];M

}

I call these function with:

$result_ = $this->mParseStatisticData($a);

And the apache processes stops with a segmentation fault:
[Wed Jun 20 17:46:20 2001] [notice] child pid 28697 exit
signal Segmentation fault (11)

How to fix it:


function mParseStatisticData ($ids,$result=array() ) {


Ok, it's wrong to use a string as an array... my fault..
but.. why my apache (1.3.20) crashes with a segfault? ;-)

Greetings Olli

---


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


-- 
PHP Development Mailing List 
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 #11590 Updated: Segmentation fault when using an empty string as an array

2001-06-20 Thread phpbugs

ID: 11590
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Reproducible crash
Operating system: Linux 2.4.3 i686
PHP Version: 4.0.5
Description: Segmentation fault when using an empty string as an array

Script:

parse($a);
}

function parse($string,$result="") {
for($i=0;$i<50;$i++) {
$result_[$i]["threadid"]=
$result[$i]["threadid"];
$result_[$i]["readcount"]   =
$result[$i]["readcount"];
}
return $result_;
}

}

class test2 {

function output() {
echo "hi";
$test = new test;
return $test->call();
}
}

$test2 = new test2;
print_r($test2->output());   
?>   

And Apache crashes with a Segfault:

Wed Jun 20 23:12:17 2001] [notice] child pid 28682 exit
signal Segmentation fault (11)
[Wed Jun 20 23:12:47 2001] [notice] child pid 28692 exit
signal Segmentation fault (11)


Greetings Olli


Previous Comments:
---

[2001-06-20 16:54:03] [EMAIL PROTECTED]
Please include a complete but short script into this report
which demonstrates this problem.
 

---

[2001-06-20 16:46:03] [EMAIL PROTECTED]
A Function in a class:

function mParseStatisticData ($ids,$result="" ) {

  // some stuff inside;

  $result_[$pos]["threadid"]= $result[$pos]["threadid"];M
  $result_[$pos]["readcount"]   = $result[$pos]["readcount"];M

}

I call these function with:

$result_ = $this->mParseStatisticData($a);

And the apache processes stops with a segmentation fault:
[Wed Jun 20 17:46:20 2001] [notice] child pid 28697 exit
signal Segmentation fault (11)

How to fix it:


function mParseStatisticData ($ids,$result=array() ) {


Ok, it's wrong to use a string as an array... my fault..
but.. why my apache (1.3.20) crashes with a segfault? ;-)

Greetings Olli

---


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


-- 
PHP Development Mailing List 
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 #11590 Updated: Segmentation fault when using an empty string as an array

2001-06-20 Thread sniper

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

Please include a complete but short script into this report
which demonstrates this problem.
 

Previous Comments:
---

[2001-06-20 16:46:03] [EMAIL PROTECTED]
A Function in a class:

function mParseStatisticData ($ids,$result="" ) {

  // some stuff inside;

  $result_[$pos]["threadid"]= $result[$pos]["threadid"];M
  $result_[$pos]["readcount"]   = $result[$pos]["readcount"];M

}

I call these function with:

$result_ = $this->mParseStatisticData($a);

And the apache processes stops with a segmentation fault:
[Wed Jun 20 17:46:20 2001] [notice] child pid 28697 exit
signal Segmentation fault (11)

How to fix it:


function mParseStatisticData ($ids,$result=array() ) {


Ok, it's wrong to use a string as an array... my fault..
but.. why my apache (1.3.20) crashes with a segfault? ;-)

Greetings Olli

---



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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]