#14995 [Com]: "new SWFBitmap()" produces Access Violation Error
| From: | freexe at gmail dot com | Date: | Thu, 03 May 2007 10:24:09 +0000 |
| Subject: | #14995 [Com]: "new SWFBitmap()" produces Access Violation Error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-112194@lists.php.net to get a copy of this message | ||
ID: 14995
Comment by: freexe at gmail dot com
Reported By: reckert at informationsgesellschaft dot com
Status: No Feedback
Bug Type: Ming related
Operating System: Windows 2000
PHP Version: 4.1.1
New Comment:
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);
SWFBitmap($var);
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
Previous Comments:
------------------------------------------------------------------------
[2002-12-06 19:22:51] 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 php-4.3.0RC2-Win32.zip is doing the
same... HELP PLEASE!!!
try The glyph.php example of the ming library
Enrique Motilla (emotilla@ipicyt.edu.mx)
------------------------------------------------------------------------
[2002-05-24 00:00:05] 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-04-23 04:11:19] mfischer@php.net
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 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".
------------------------------------------------------------------------
[2002-04-23 04:08:55] chabrol at vfnm dot de
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!
------------------------------------------------------------------------
[2002-02-15 22:13:52] alexei at rebroff dot 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!
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/14995
--
Edit this bug report at http://bugs.php.net/?id=14995&edit=1