ID: 33479 User updated by: rvk at au dot ru Reported By: rvk at au dot ru -Status: Bogus +Status: Closed Bug Type: Reproducible crash Operating System: Windows 2000 PHP Version: 5.0.4 New Comment:
Sorry, really it`s my own bug Previous Comments: ------------------------------------------------------------------------ [2005-06-26 13:42:17] [EMAIL PROTECTED] Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. ------------------------------------------------------------------------ [2005-06-26 13:40:37] rvk at au dot ru Description: ------------ When i use function ati_add for array of class, it reproduce crash... When i use this function for list of class only, it working correctly. Code $data[3] = ati_add($data[0], $data[1], $data[2]); working perfectly. Using PHP for Apache2 isapi module Reproduce code: --------------- <?php class ati { var $data, $flag; function ati($data = null, $flag = null) { $this->data = $data; $this->flag = $flag; } } function ati_add() { $c = new ati(); foreach(func_get_args() as $a) { if(is_a($a, 'ati')) { $c->data += $a->data; $c->flag &= $a->flag; } else { $c = ati_add($a); } } return $c; } $data[] = new ati(1,0); $data[] = new ati(2,0); $data[] = new ati(3,0); $data[3] = ati_add($data); echo $data[3]->data; ?> Expected result: ---------------- I should see 6 Actual result: -------------- Crash Apache with PHP (PHP working as isapi module) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33479&edit=1