php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #202 ImageCreateFromGif() fails.
Submitted: 1998-03-26 16:42 UTC Modified: 1998-05-22 19:16 UTC
From: porter at igic dot com Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 3.0 Release Cand OS: Window95
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
13 + 39 = ?
Subscribe to this entry?

 
 [1998-03-26 16:42 UTC] porter at igic dot com
SCRIPT TO MANIPULATE GIF IMAGE.
<?
        dl("GD.dll");
        Header("CONTENT-TYPE: image/gif");
        $image = ImageCreateFromGif("images/buttemp.gif");
        $gif = ImageGif($image);
        ImageDestroy($image);
?>

ERRORS RETURNED:
Php
        This program has performed and illegal operation        Close
  X     and will be shut down.
                                                                Debug
        If the problem persists, contact the program
        vendor                                                  Details

PHP caused an invalid page fault in
module KERNEL32.DLL at 0137:bff9a3c0.
Registers:
EAX=006bdab8 CS=0137 EIP=bff9a3c0 EFLGS=00000246
EBX=00590bb8 SS=013f ESP=006bdab4 EBP=006bdb08
ECX=006be188 DS=013f ESI=0046caf0 FS=225f
EDX=00000000 ES=013f EDI=008fc100 GS=198e
Bytes at CS:EIP:
5e 8b e5 5d c2 10 00 64 a1 00 00 00 00 55 8b ec 
Stack dump:
0046caf0 c0000005 00000000 00000000 bff9a3c0 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 

And, the Browser shows the following message:

CGI Error

The specified CGI application misbehaved by not returning a complete set
of HTTP headers. The headers it did return are:


        Without any headers indicated.


PHP3.INI FILE:
[PHP_3]
engine = 1  ; enable PHP 3.0 parser

max_execution_time = 30     ; Maximum execution time of each script, in seconds


; This is a bit-field.  Add each number up to get desired error reporting level
;  1 = Normal errors
;  2 = Normal warnings
;  4 = Parser errors
;  8 = Really picky warnings - ie. using a variable before defining it
error_reporting=7
track_errors=0             ; Store the last error/warning message in $php_errmsg (boolean)

magic_quotes_gpc = 1       ; magic quotes for incoming GET/POST/Cookie data
magic_quotes_runtime = 0   ; magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
magic_quotes_sybase = 0    ; Use Sybase-style magic quotes (escape ' with '' instead of \')
track_vars=1               ; enable $PHP_GET_VARS[], $PHP_POST_VARS[] and $PHP_COOKIE_VARS[] arrays
short_open_tag=1           ; allow the <? tag.  otherwise, only <?php is recognized.

; paths and directories
include_path=
doc_root=/webshare/wwwroot    ; the document root of the web server
user_dir=public_html          ; the directory under which the web server checks when using /~username
upload_tmp_dir=\windows\temp  ; temporary directory for HTTP uploaded files
extension_dir=./              ; directory in which the loadable extensions (modules) reside


; file extensions (meaningless in UNIX)
cgi_ext=php3
isapi_ext=php3
nsapi_ext=php3


; automatically add files before or after any PHP 3.0 document
auto_prepend_file=
auto_append_file=


[mail function]
SMTP=localhost                  ;for win32 only
sendmail_from=me@localhost.com  ;for win32 only
sendmail_path=                  ;for unix only

[safemode]
safe_mode=0
safe_mode_exec_dir=

[Debugger]
debugger.host=localhost
debugger.port=7869

[Logging]
logging=0
log_DBM=0
log_DBM_dir=.
log_SQL=0

[LoadExtensions]
; if you wish to have an extension loaded automaticly, use the
; following syntax:  extension=modulename.extension
; for example, on windows,
; extension=msql.dll

[Highlight]
; Colors for Syntax Highlighting mode.  Anything that's acceptable in <font color=???> would work.
highlight.string	=	#DD0000
highlight.comment	=	#FF8000
highlight.keyword	=	#007700
highlight.bg		=	#FFFFFF
highlight.default	=	#0000BB
highlight.html		=	#000000


[SQL]
sql.safe_mode=0

[MySQL]
mysql.allow_persistent=1 ; allow or prevent persistent link
mysql.max_persistent=-1  ; maximum number of persistent links. -1 means no limit
mysql.max_links=-1       ; maximum number of links (persistent+non persistent).  -1 means no limit

[mSQL]
msql.allow_persistent=1 ; allow or prevent persistent link
msql.max_persistent=-1  ; maximum number of persistent links. -1 means no limit
msql.max_links=-1       ; maximum number of links (persistent+non persistent).  -1 means no limit

[PostgresSQL]
pgsql.allow_persistent=1 ; allow or prevent persistent link
pgsql.max_persistent=-1  ; maximum number of persistent links. -1 means no limit
pgsql.max_links=-1       ; maximum number of links (persistent+non persistent).  -1 means no limit

[Sybase]
sybase.allow_persistent=1 ; allow or prevent persistent link
sybase.max_persistent=-1  ; maximum number of persistent links. -1 means no limit
sybase.max_links=-1       ; maximum number of links (persistent+non persistent).  -1 means no limit
;sybase.interface_file = "/usr/sybase/interfaces"
sybase.min_error_severity=10   ; minimum error severity to display
sybase.min_message_severity=10 ; minimum message severity to display


[Sybase-CT]
sybct.allow_persistent=1 ; allow or prevent persistent link
sybct.max_persistent=-1  ; maximum number of persistent links. -1 means no limit
sybct.max_links=-1       ; maximum number of links (persistent+non persistent).  -1 means no limit
sybct.min_server_severity=10 ; minimum server message severity to display
sybct.min_client_severity=10 ; minimum client message severity to display


[bcmath]
bcmath.scale = 3    ; number of decimal digits for all bcmath functions

[browscap]
;browscap = extra/browscap.ini


SYSTEM CONFIG:
P200MMX, Win95 4.00.111, 128MB RAM, Personal Web Server.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-05-22 19:16 UTC] shane
Works fine with current cvs so closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 00:01:32 2024 UTC