|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14995 "new SWFBitmap()" produces Access Violation Error
Submitted: 2002-01-11 07:34 UTC Modified: 2002-05-24 00:00 UTC
Avg. Score:4.7 ± 0.5
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:2 (66.7%)
From: reckert at informationsgesellschaft dot com Assigned:
Status: No Feedback Package: Ming related
PHP Version: 4.1.1 OS: Windows 2000
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-01-11 07:34 UTC] reckert at informationsgesellschaft dot 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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-15 22:13 UTC] alexei at rebroff dot com
For PHP 4.0.8 I had function that converted .jpg in .swf
	$fp = fopen($dram,"r"); 
	$i = fread($fp,$end); 
	$img = new SWFBitmap($i); 
	$m = new SWFMovie();
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-04-23 04:08 UTC] chabrol at vfnm dot de
I'm using php-4.1.2 and ming-0.2a (Linux).
"$img = new SWFBitmap($filename);"
"[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!
 [2002-04-23 04:11 UTC]
To properly diagnose this bug, we need a backtrace to see what is
happening behind the scenes. To find out how to generate a backtrace,
please read

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open".

 [2002-05-24 00:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2002-12-06 19:22 UTC] emotilla at ipicyt dot edu dot mx
Any access to the Ming that outputs a Text-like object in the resulting SWF makes the php to crash...
This is using the Win2000 and Apache with the ming extension as it came with the binary Distribution.. This is not Working since version >= 4.0.6
And even with the newest Version is doing the same... HELP PLEASE!!!
try The glyph.php example of the ming library

Enrique Motilla (
 [2007-05-03 10:24 UTC] freexe at gmail dot com
The variable that contains the binary need to exist to aviod this bug

so SWFBitmap(fread($fp,99999)); wont work but:

$var = fread($fp,99999);

does work. This gets alittle tricky in a loop, so it's best to store the binaries in an array.

This happens in Windows/Apache
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun May 28 23:03:39 2023 UTC