Bug #14995 Updated: "new SWFBitmap()" produces Access Violation Error

From: Date: Tue, 23 Apr 2002 08:08:56 +0000
Subject: Bug #14995 Updated: "new SWFBitmap()" produces Access Violation Error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-5639@lists.php.net to get a copy of this message
ID: 14995 Updated by: chabrol@vfnm.de Reported By: reckert@informationsgesellschaft.com Status: Open Bug Type: Ming related Operating System: Windows 2000 PHP Version: 4.1.1 New Comment: I'm using php-4.1.2 and ming-0.2a (Linux). "$img = new SWFBitmap($filename);" produces "[Tue Apr 23 08:24:57 2002] [notice] child pid 30034 exit signal Segmentation fault (11)" in the apache error log." The non-bitmap functions of ming seems to work! Previous Comments: ------------------------------------------------------------------------ [2002-02-15 22:13:52] alexei@rebroff.com For PHP 4.0.8 I had function that converted .jpg in .swf ----------------- Ming_setScale(20); $fp = fopen($dram,"r"); $end=10000000; $i = fread($fp,$end); $img = new SWFBitmap($i); fclose($fp); $m = new SWFMovie(); $m->setDimension(100,100); $m->add($img); $m->save("myURL/movie.swf"); ImageDestroy($new); ---------------------------- But whan I install PHP 4.1.1 function stops working on string $img = new SWFBitmap($i); and return "Sorry, can't tell what type of file ÿØÿà is in ". I didn't change anything! I really need help in this! ------------------------------------------------------------------------ [2002-01-11 07:34:38] reckert@informationsgesellschaft.com The following php-Code produces an "Access Violation Error at 78012DBF" (in IIS5 using php4isapi.dll): <? $b = new SWFBitmap (fopen('test.jpg', 'rb')); ?> The same expamle (with the same image) does work under Linux/Apache (but on PHP 4.0.6). Other Ming functions work fine on IIS5 too, like creating shapes and adding them to a movie. I made sure that php_ming.dll and ming.dll are correct versions that came with the latest archive php-4.1.1-Win32.zip. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=14995&edit=1

« previous php.bugs (#5639) next »