Bug #18238 Updated: Apache segfaults on Ming code
| From: | derick@php.net | Date: | Tue, 09 Jul 2002 10:27:48 +0000 |
| Subject: | Bug #18238 Updated: Apache segfaults on Ming code | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-13585@lists.php.net to get a copy of this message | ||
ID: 18238
Updated by: derick@php.net
Reported By: twan@bitpress.nl
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Debian/GNU Linux
PHP Version: 4.2.1
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2002-07-09 06:25:36] twan@bitpress.nl
L.S.,
In a futile attempt to make a clickable image in a Flash movie, I
encountered something I think should not happen at all. While I may be
unexperienced using Ming and am probably doing something wrong in my
efforts, a segmentation fault I think is not appropriate :)
[Tue Jul 9 11:45:18 2002] [notice] child pid 6277 exit signal
Segmentation fault (11)
I am running Apache 1.3.26-1, PHP 4.2.1-3 and Ming 0.2a.cvs20020110-3
on a Debian/GNU Linux system. Each time the following script is
executed, the Apache childe crashes with a segmentation fault:
<?php
$filename = "result.jpg";
$fp = fopen($filename,"r");
$i = fread($fp,999999);
$img = new SWFBitmap($i); #don't give "fread(...)" as argument, but
buffer it.
fclose($fp);
$s = new SWFShape();
#$s->setRightFill($s->addFill(0xff, 0, 0));
#$s->drawLine(100,0);
#$s->drawLine(0,100);
#$s->drawLine(-100,0);
#$s->drawLine(0,-100);
$s->setLeftFill($s->addFill($img));
$b = new SWFButton();
$b->addShape($s, SWFBUTTON_HIT | SWFBUTTON_UP | SWFBUTTON_DOWN |
SWFBUTTON_OVER);
$b->addAction(new SWFAction("startDrag('/test', 0);"), // '0' means
don't lock to mouse
SWFBUTTON_MOUSEDOWN);
$b->addAction(new SWFAction("stopDrag();"),
SWFBUTTON_MOUSEUP | SWFBUTTON_MOUSEUPOUTSIDE);
$p = new SWFSprite();
$p->add($b);
$p->nextFrame();
$swf = new SWFMovie();
$swf->setDimension(504, 501);
$i = $swf->add($p);
$i->setName('test');
$i->moveTo(100,100);
$swf->nextframe();
$swf->add($img); #this will create a shape with perfect proportions
and fills it
header('Content-type: application/x-shockwave-flash');
$swf->output();
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18238&edit=1