[PHP-DEV] readfile() suggestion

2002-11-22 Thread Steve Alberty

Hi,

i've a small suggestion to improve the behavior of the readfile() 
function.

First, since the command use the php streams, sometimes php crashes,
especially with big files (10MB).

Also, if you output a file with readfile(), the memory consumption is
excacly the same as the reading file.

I using the readfile command to deliver files with a typical
content-disposition header, but since i have some 'big' files, i've
change the delivering to this small code:

?php
$filename='megafile.txt';

$fh=fopen($filename, 'rb');
if ($fh!=false){
while (!feof($fh)  !connection_aborted()) echo fread ($fh, 
8192);
fclose($fh);
}
?

On a 2 MB file, this script needs 35KB (test is with a php_memory log)
and the readfile version needs 2MB.

I think it is also possible to reduce the memory consume in the
readfile() command, because it is not required to read the complete
file first and than output it.

The problem is in the php_stream_passthru function. We need a
sapi_flush(TSRMLS_C) or php_end_ob_buffer(1, 1 TSRMLS_CC) call.

Not only the readfile command is affected, also the gzpassthru command.

Any comments?

Best regards,

Steve

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Changelog broken?

2002-11-11 Thread Steve Alberty
Hi,

the Changelog file in the php4 cvs tree is unchanged since 7 days.
Is the script (cvs2cl ?) broken?

Regards,

Steve

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] html_error related to phpinfo() output

2002-10-29 Thread Steve Alberty

Hi,

why result the functions phpinfo() and phpcredits() as plain text
when i set the html_error = Off.

I think this is not the correct behavior, or not?

Regards,


Steve

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] pcntl_signal problem

2002-10-25 Thread Steve Alberty

Hi,

i've a small problem with the signal handler.

These short script demonstrate my problem.

#!/usr/local/bin/php
?php

set_time_limit(0);

function signals($signo) {

switch($signo) {
case SIGTERM:
echo Termination signal;
exit;
break;
case SIGINT:
echo Interrupt from keyboard;
exit
break;
}
}

$result=pcntl_signal(SIGTERM,   'signals');
if ($result == false) echo 'could not install sighandler for TERM';
$result=pcntl_signal(SIGINT,'signals');
if ($result == false) echo 'could not install sighandler for INT';

echo goto loop ...\n;
$c=0;
while (true){
$c++;
usleep(1);
}
?

The problem is, that the script doesnt exit when i'm
sending the TERM signal or pressing CTRL-C (INT signal).

I've test it with the lastest cvs version.

Any help?

Regards,

Steve

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Upload broken?

2002-10-24 Thread Steve Alberty
Hi,

is in the cvs tree the file upload currently broken?

I miss the $_FILES['myfile'] variables.

Regards,

Steve

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] file_register_wrapper not binary safe?

2002-09-05 Thread Steve Alberty

hi,

i've made some tests with file_register_wrapper and a possible
my-own-get-from-variable-instead-of-file-handle wrapper, but i think
that the stream_open function handler is not binary safe.

Here a small code snip to demonstrate the problem:

?php
class variable_stream {
var $data;
var $data_length=0;
var $pointer;

function stream_open($path, $mode, $options, $opened_path)
{
// not really elegant, because the class don't know
// the own name
$this-data=substr($path,11);
$this-data_length=strlen($this-data);
$this-pointer=0;
return true;
}

function stream_close(){
unset($this-data, $this-pointer);
}

function stream_read($count)
{
$returnvalue=substr($this-data,$this-pointer,$count);
$this-pointer+=$count;
return $returnvalue;
}

function stream_gets()
{
$this-pointer=$this-data_length;
return $this-data;
}
}

file_register_wrapper('variable', 'variable_stream') or die('Failed to 
register protocol');

$content='foo'.chr(0).'bar';
echo strlen( file_get_contents ('variable://'.$content) );
?

results a length of 3 instead of 7.




Also when stream_read results more bytes as file_get_contents or another 
command
requested, php results a segfault.

here the backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x403ff2ad in zend_get_executed_lineno () at 
/usr/src/php4/Zend/zend_execute_API.c:260
260 return active_opline-lineno;
(gdb) bt
#0  0x403ff2ad in zend_get_executed_lineno () at 
/usr/src/php4/Zend/zend_execute_API.c:260
#1  0x4040a2e7 in zend_error (type=1, format=0x40450040 Maximum 
execution time of %d second%s exceeded)
at /usr/src/php4/Zend/zend.c:666
#2  0x40400a50 in zend_timeout (dummy=27) at 
/usr/src/php4/Zend/zend_execute_API.c:688
#3  0x4009e478 in killpg () from /lib/libc.so.6
#4  0x403f602f in _efree (ptr=0x8165cec, __zend_filename=0x404514e0 
/usr/src/php4/Zend/zend_hash.c, __zend_lineno=548, 
__zend_orig_filename=0x0, __zend_orig_lineno=0) at 
/usr/src/php4/Zend/zend_alloc.c:213
#5  0x40410d11 in zend_hash_destroy (ht=0x8161374) at 
/usr/src/php4/Zend/zend_hash.c:548
#6  0x40400306 in call_user_function_ex (function_table=0x8167440, 
object_pp=0x8167648, function_name=0xbfffcef0, 
retval_ptr_ptr=0xbfffceec, param_count=1, params=0xbfffcee8, 
no_separation=0, symbol_table=0x0)
at /usr/src/php4/Zend/zend_execute_API.c:539
#7  0x403e89c6 in php_userstreamop_read (stream=0x8161424, buf=
0x4275982d hallo, count=3044)
at /usr/src/php4/main/user_streams.c:321
#8  0x403de175 in _php_stream_read (stream=0x8161424, buf=0x4275982d 
hallo, size=3044) at /usr/src/php4/main/streams.c:313
#9  0x403dec57 in _php_stream_copy_to_mem (src=0x8161424, buf=
0xbfffd058, maxlen=0, persistent=0, __php_stream_call_depth=0, 
__zend_filename=0x4042e000 /usr/src/php4/ext/standard/file.c, 
__zend_lineno=423, __zend_orig_filename=0x0, 
__zend_orig_lineno=0) at /usr/src/php4/main/streams.c:591
#10 0x4035b14a in zif_file_get_contents (ht=1, return_value=0x816739c, 
this_ptr=0x0, return_value_used=1)
at /usr/src/php4/ext/standard/file.c:423
#11 0x4041de99 in execute (op_array=0x8161194) at 
/usr/src/php4/Zend/zend_execute.c:1602
#12 0x4040a99e in zend_execute_scripts (type=8, retval=0x0, file_count=
3) at /usr/src/php4/Zend/zend.c:814

Any helps?

Regards,

Steve

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Predefined Classes in Zend2

2002-08-17 Thread Steve Alberty

Hi,

is it possible that predefined classes no longer working
in zend2 engine ?

eg:
?php
$chk= new __PHP_Incomplete_Class;
var_dump($chk);
?

in zend1:
the incomplete message is written:
Fatal error: The script tried to execute a method or access ...

correct, but in zend2:
object(__PHP_Incomplete_Class)(0) {}


also the same example with ming:
?php
$dir= new SWFMovie;
var_dump($dir);
?

in zend1:
object(swfmovie)(1) {
  [movie]=
  resource(2) of type (SWFMovie)
}

in zend2:
object(swfmovie)(0) {}

and the PHP_FUNCTION(swfmorph_init) in ming.c is definitively not longer 
calling in zend2.

A bug or a new behavior in zend 2?


Regards,

Steve

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] zend_hash_find,Z_OBJPROP and Zend2

2002-08-15 Thread Steve Alberty

Hi,

i have problems with ming and the new zend2engine.

Is it not possible to detect zend objects about the zend_hash_find
method with the new zend engine?

e.g.:

in ming.c SWFgetProperty()  zend_hash_find cant locate the objects which 
is
defined with $movie=new SWFMovie(); (swfmovie_init())


ming.c line 138
  if (zend_hash_find(Z_OBJPROP_P(id), name, namelen+1, (void **)tmp) == 
FAILURE) {
php_error(E_WARNING, unable to find property %s, name);
return NULL;
  }
/ming.c

Is it only a problem with Z_OBJPROP ?

In this context, i have also sometimes a segfault with ming and zend 
engine2. Here is the backtrace:

#0  0x20200a3b in ?? ()
#1  0x40400119 in _object_init_ex (arg=0x409536d8, class_type=0x8168c4c, 
__zend_filename=0x4042eb82 var_unserializer.re, 
__zend_lineno=196) at /usr/src/php5/Zend/zend_API.c:610
#2  0x403b5f12 in object_common1 (rval=0xbffedbec, p=0xbffedca8, max=
0x408d9f0f , var_hash=0xbffedcac, ce=0x8168c4c)
at var_unserializer.re:196
#3  0x403b4ff2 in php_var_unserialize (rval=0xbffedbec, p=0xbffedca8, 
max=0x408d9f0f , var_hash=0xbffedcac)
at var_unserializer.re:386
#4  0x403b5d61 in process_nested_data (rval=0xbffedcc4, p=0xbffedca8, 
max=0x408d9f0f , var_hash=0xbffedcac, ht=0x409530e0, 
elements=1) at var_unserializer.re:152
#5  0x403b52df in php_var_unserialize (rval=0xbffedcc4, p=0xbffedca8, 
max=0x408d9f0f , var_hash=0xbffedcac)
at var_unserializer.re:315
#6  0x403acd94 in zif_unserialize (ht=1, return_value=0x40953268, 
this_ptr=0x0, return_value_used=1)
at /usr/src/php5/ext/standard/var.c:667
#7  0x404147a9 in execute (op_array=0x408f98f8) at 
/usr/src/php5/Zend/zend_execute.c:2079
#8  0x40414941 in execute (op_array=0x407b4f40) at 
/usr/src/php5/Zend/zend_execute.c:2103
#9  0x40414941 in execute (op_array=0x407597d8) at 
/usr/src/php5/Zend/zend_execute.c:2103
#10 0x40414941 in execute (op_array=0x8165af0) at 
/usr/src/php5/Zend/zend_execute.c:2103
#11 0x403f3579 in call_user_function_ex (function_table=0x4048cab0, 
object_pp=0x0, function_name=0x408e03a0, 
retval_ptr_ptr=0xbfff4ef4, param_count=5, params=0x408891c8, 
no_separation=1, symbol_table=0x0)
at /usr/src/php5/Zend/zend_execute_API.c:610
#12 0x403fe563 in zend_error (type=2, format=0x406cd360 unable to find 
property %s) at /usr/src/php5/Zend/zend.c:758
#13 0x4069f878 in SWFgetProperty () from 
/usr/local/lib/php/extensions/debug-non-zts-20020429/php_ming.so
#14 0x406a4b7a in getMovie () from /usr/local/lib/php/extensions/debug-
non-zts-20020429/php_ming.so
#15 0x406a4d3e in zif_swfmovie_add () from 
/usr/local/lib/php/extensions/debug-non-zts-20020429/php_ming.so
#16 0x404147a9 in execute (op_array=0x40755498) at 
/usr/src/php5/Zend/zend_execute.c:2079
#17 0x40414941 in execute (op_array=0x40634a40) at 
/usr/src/php5/Zend/zend_execute.c:2103
#18 0x403fe7d0 in zend_execute_scripts (type=8, retval=0x0, file_count=
3) at /usr/src/php5/Zend/zend.c:829
#19 0x403c5755 in php_execute_script (primary_file=0xb4c0) at 
/usr/src/php5/main/main.c:1504
#20 0x4041a5de in apache_php_module_main (r=0x81605a8, 
display_source_mode=0) at /usr/src/php5/sapi/apache/sapi_apache.c:55
#21 0x4041b52c in send_php (r=0x81605a8, display_source_mode=0, 
filename=0x8160ca0 /web/foo.php) at 
/usr/src/php5/sapi/apache/mod_php4.c:558
#22 0x4041b5b2 in send_parsed_php (r=0x81605a8) at 
/usr/src/php5/sapi/apache/mod_php4.c:573
#23 0x08055ef7 in ap_invoke_handler ()
#24 0x0806bdab in process_request_internal ()
#25 0x0806c207 in ap_internal_redirect ()
#26 0x402cae12 in handle_dir () from 
/usr/local/apache/1.3.dev/libexec/mod_dir.so
#27 0x08055ef7 in ap_invoke_handler ()
#28 0x0806bdab in process_request_internal ()
#29 0x0806be20 in ap_process_request ()
#30 0x08062932 in child_main ()
#31 0x08062b04 in make_child ()
#32 0x08062c78 in startup_children ()
#33 0x08063320 in standalone_main ()
#34 0x08063bbf in main ()
#35 0x4008c280 in __libc_start_main () from /lib/libc.so.6

Regards,

Steve

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Re: Pass by reference

2002-07-23 Thread Steve Alberty

Yes, see bug #14237

http://bugs.php.net/bug.php?id=14237
or
http://phpxpath.sourceforge.net/benchmark/phpBench.php 

Regards,

Steve

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] CVS Account Request: staybyte

2002-07-04 Thread Steve Alberty

Hi,

i need cvs access, because i'm currently in the ming developer group
and i have improve some functions in this extension and some adjustments
of ming.c are required in the near future.
Ming is currently very experimental and i hope i can improve the state.
Also i'll complete the incomplete ming documentation.

Regards,

Steve

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] callback in classes?

2002-07-03 Thread Steve Alberty

Hi,

how can i use a callback function in
preg_replace_callback or set_error_handler;
with functions in classes?

e.g:
?php
class foo{
  function bar($x){
return 'world';
  }
}

echo preg_replace_callback('/hello/','bar','hello');
?

What's the right syntax?

Regards,

Steve

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] TSRM Problem with dmalloc

2002-07-01 Thread Steve Alberty

Hi,

when i compile php with dmalloc (because i develop an own extension),
php crashes in combination with apache 2, but i think this is not a
problem with apache 2 or with dmalloc. Maybe it is a problem with the
--with-config-file-path option. I have set it to /etc/debug/php.ini ...


here is the backtrace from gdb:

--
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 30068)]
0x4043bf07 in virtual_file_ex (state=0xbfffe6d8, path=0xbfffc670 
/etc/debug/php.ini, verify_path=0)
at /usr/src/php4/TSRM/tsrm_virtual_cwd.c:362
362 state-cwd[copy_amount] = '\0';
(gdb) bt
#0  0x4043bf07 in virtual_file_ex (state=0xbfffe6d8, path=0xbfffc670 
/etc/debug/php.ini, verify_path=0)
at /usr/src/php4/TSRM/tsrm_virtual_cwd.c:362
#1  0x40442ef6 in expand_filepath (filepath=0xbfffe790 
/etc/debug/php.ini, real_path=0x0)
at /usr/src/php4/main/fopen_wrappers.c:509
#2  0x404423bf in php_fopen_and_set_opened_path (path=0xbfffe790 
/etc/debug/php.ini, mode=0x404ab1df r, opened_path=0x404ea490)
at /usr/src/php4/main/fopen_wrappers.c:237
#3  0x40442d29 in php_fopen_with_path (filename=0x404ab1e1 php.ini, 
mode=0x404ab1df r, path=0x8175024 .:/etc/debug, 
opened_path=0x404ea490) at /usr/src/php4/main/fopen_wrappers.c:446
#4  0x404437d1 in php_init_config () at /usr/src/php4/main/php_ini.c:315
#5  0x4043e7fa in php_module_startup (sf=0x404ed640) at 
/usr/src/php4/main/main.c:930
#6  0x4048cfb1 in php_apache_server_startup (pconf=0x80a2330, plog=
0x80d03e8, ptemp=0x80a4338, s=0x80d46d0)
at /usr/src/php4/sapi/apache2filter/sapi_apache2.c:492
#7  0x0806ca1f in ap_run_post_config (pconf=0x80a2330, plog=0x80d03e8, 
ptemp=0x80a4338, s=0x80d46d0) at config.c:127
#8  0x08071187 in main (argc=2, argv=0xba14) at main.c:633
#9  0x401f0280 in __libc_start_main () from /lib/libc.so.6
--

Regards,

Steve

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] compile with cURL,ming,.. and apxs2 breaks

2001-10-03 Thread Steve Alberty

compile with cURL,ming,.. and apxs2 breaks

Hi,

What's wrong? Is the development on apache2 sapi stop?

The current compile breaks if --with-apxs2 with
Apache 2.0.26dev (prefork) is use with the follow
configure options:


--with-curl=shared,/usr/local/curl/current


curl.c: In function `curl_write':
curl.c:291: `tsrm_ls' undeclared (first use in this function)
curl.c:291: (Each undeclared identifier is reported only once
curl.c:291: for each function it appears in.)
curl.c: In function `curl_write_header':
curl.c:407: `tsrm_ls' undeclared (first use in this function)
make[3]: *** [curl.slo] Error 1
make[3]: Leaving directory `/usr/src/php4/ext/curl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/php4/ext/curl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/php4/ext'
make: *** [all-recursive] Error 1



--with-ming=shared


ming.c: In function `getInput':
ming.c:231: warning: passing arg 2 of `zend_fetch_resource' makes 
pointer from integer without a cast
ming.c:231: warning: passing arg 3 of `zend_fetch_resource' makes 
integer from pointer without a cast
ming.c:231: warning: passing arg 4 of `zend_fetch_resource' from 
incompatible pointer type
ming.c:231: warning: passing arg 5 of `zend_fetch_resource' makes 
pointer from integer without a cast
ming.c:238: `tsrm_ls' undeclared (first use in this function)
ming.c:238: (Each undeclared identifier is reported only once
ming.c:238: for each function it appears in.)
ming.c: In function `zif_swfdisplayitem_addAction':
ming.c:987: too few arguments to function `getDisplayItem'
ming.c:996: too few arguments to function `getAction'
ming.c: In function `zm_startup_ming':
ming.c:3135: warning: passing arg 1 of 
`zend_register_list_destructors_ex' from incompatible pointer type
make[3]: *** [ming.slo] Error 1
make[3]: Leaving directory `/usr/src/php4/ext/ming'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/php4/ext/ming'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/php4/ext'
make: *** [all-recursive] Error 1



--with-recode


In file included from recode.c:28:
php_recode.h:35: warning: #warning Recode module has not been tested for 
thread-safety.
recode.c: In function `zm_startup_recode':
recode.c:77: `recode_globals_id' undeclared (first use in this function)
recode.c:77: (Each undeclared identifier is reported only once
recode.c:77: for each function it appears in.)
recode.c: In function `zm_shutdown_recode':
recode.c:87: `recode_globals_id' undeclared (first use in this function)
recode.c: In function `zif_recode_string':
recode.c:122: `recode_globals_id' undeclared (first use in this 
function)
recode.c: In function `zif_recode_file':
recode.c:187: `recode_globals_id' undeclared (first use in this 
function)
make[3]: *** [recode.lo] Error 1
make[3]: Leaving directory `/usr/src/php4/ext/recode'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/php4/ext/recode'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/php4/ext'
make: *** [all-recursive] Error 1
-


--with-mm

-
mod_mm.c:35: #error mm is not thread-safe
make[3]: *** [mod_mm.lo] Error 1
make[3]: Leaving directory `/usr/src/php4/ext/session'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/php4/ext/session'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/php4/ext'
make: *** [all-recursive] Error 1
-


and also the rest have some serious warnings:

-
gd.c: In function `php_imagettftext_common':
gd.c:2740: warning: passing arg 2 of `virtual_filepath' from 
incompatible pointer type
mcrypt.c: In function `zm_startup_mcrypt':
mcrypt.c:266: warning: passing arg 1 of 
`zend_register_list_destructors_ex' from incompatible pointer type
In file included from /usr/local/mysql/3.23.42/include/mysql/mysql.h:77,
 from php_mysql.c:61:
/usr/local/mysql/current/include/mysql/mysql_version.h:15: warning: 
`MYSQL_UNIX_ADDR' redefined
/usr/src/php4/TSRM/../main/php_config.h:1620: warning: this is the 
location of the previous definition
sysvsem.c: In function `zif_sem_remove':
sysvsem.c:405: warning: passing arg 2 of `semctl' makes integer from 
pointer without a cast
sysvsem.c:413: warning: passing arg 2 of `semctl' makes integer from 
pointer without a cast
sysvshm.c: In function `zm_startup_sysvshm':
sysvshm.c:87: warning: passing arg 1 of 
`zend_register_list_destructors_ex' from incompatible pointer type
zip.c: In function `zif_zip_entry_open':
zip.c:263: warning: assignment makes integer from pointer without a cast
-

Regards,

Steve

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] chunk_split seg fault: bt

2001-09-26 Thread Steve Alberty

Hi,

chunk_split in the follow code snip

?php
echo chunk_split(str_repeat('x',1024),10);
?

produces sometimes a seg. fault.

Here is the backtrace,
i hope it helps a little bit:


Program received signal SIGSEGV, Segmentation fault.
0x400cb007 in memcpy (dstpp=0x81926e0, srcpp=0x81922a8, len=135878960) 
at ../sysdeps/generic/memcpy.c:55
55  ../sysdeps/generic/memcpy.c: No such file or directory.

#0  0x400cb007 in memcpy (dstpp=0x81926e0, srcpp=0x81922a8, len=
135878960) at ../sysdeps/generic/memcpy.c:55
#1  0x4055104f in zif_chunk_split (ht=Cannot access memory at address 
0xcdc9
) at string.c:1549
Cannot access memory at address 0xcd79


Regards,

Steve

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] GD seg fault on save: (bt) - 2.gd [0/1]

2001-09-26 Thread Steve Alberty

Hi,

i have create a gd image with the gd tools and the follow code produces 
a seg fault.

?php
$im_main=ImageCreateFromGD('2.gd');
ImageJPEG($im_main);
?

The problem is _not_ ImageJPEG! You can reproduce the problem also with 
ImagePNG.

here is the backtrace:

Program received signal SIGSEGV, Segmentation fault.
gdImageJpegCtx (im=???, outfile=???, quality=???) at gd_jpeg.c:207
207   int val = im-tpixels[i][j];
(gdb) bt
#0  gdImageJpegCtx (im=???, outfile=???, quality=???) at gd_jpeg.c:207


I have attached the gd file.

Regards,

-- 
Steve

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] GD seg fault on save: (bt) - 2.gd [1/1]

2001-09-26 Thread Steve Alberty

begin 755 2.gd
M__\`%0`:`?]_?W]_?W]_?W__
M__]_=[!P']_?W]_?W]_?___
M_W]_?W]_?W]_?W]A\M+1
M+_7:V17LNKA'WHJ'=EVG]_?W]_?W]_
M?W]_?W]_?W\B\,K)`//5TP#J
MLK``VX!\/]%T'X```!NZ;N^JJ']_?W]_?___
M_W]_?W]_?W/BEY0`YJ6C`.BMJP#ADH\`UV]K
M#]5X=#39EY0IZ;2R`.:FI!W8V]GR#PV?W]_?W]_
M?W]_?V+8V\#V'9R`-EU0#49%\`T%91`-9M:0+?
MCHL`Y)V:`-I\`#,RT;KRTH?'\```!_?W]_?___
M_W]_?W+!4$L4RE)-`,]230#,2D4`RD$\`,Y/2@#275@`SU-.
M`+XQ*PF*R8)EB8B@```'P```!_?W]_?W]_
M?WXAP3\Z`,M$/@#*0CT`QS4O`,0S+0_,2L`LTH`)HH(P)
M(Q\M:!H79P```'@```!_?W]_?W?'/D-QSY#4,^
M0T_#/4$NMC8T`,@[-0#(.S4`P3(L`+8O*0G*R8`DR8A`(DC'Q-\(!Q*+PP+
M9'```!_?W][QSY#6,^0T7'/D-8QSY#,^0WO'/D-E
MEBK\R+`#`,2P`LBXH`)XI)`+)`%AB(W4T,\#PU::@```'H`
M``!_?W/'/D--QSY#5,^0WO'/D-_?W]['+$N
M*0O+2@`F2C`(DC'PF#(AX=Q\0ST1$%D```!D='T```!_
M\^0TW'/D-8QSY#?W]_?W]]19G(@:*R`
MB0@'@?T!$0\\4!@;.8@(V,6!PARP```'\```!_6,^0U3'
M/D-_?W]_?W]_2VUQ9P!^3$,S71T:2#`,
MUD```!A1X`H*U:,#-\?P```']WQSY#1^0WO'/D-_
M?W]_?W]_#72/@09F?W-=#P0#70```4```!P
M=4@6$3!/$%WNCH_?W]QSY#6,^0W]_?W__
M__]_?W]W)6'`'3A3AKA7EN;0```'0```![?P``
M`%C'/D-QSY#?W]0QSY#,^0W]_?W]_
M?W\I)6'`7B5AWX```![P```'T```!_?W#'/D--
MQSY#?W]0QSY#\^0W]_?W]_?W__
M__\%)6'$7B5AW]_?W]_?WO'/D-!QSY#?___
M_W]0QSY#?W]_?W]_?V)XE8`)6'
M:'B5AW]_?W]_?W]!QSY#?W]0
MQSY#\^0W]_?W]_?PYXE8)6'?W__
M__]_?W]_?WO'/D-!QSY#?W]0QSY#,^
M0W]_?W]_?P1XE8I)6'?W]_
M?W]_?W#'/D--QSY#?W]QSY#6,^0W]_
M?W]_?V=XE8=W)6'?W]_?W__
M__]_?UC'/D-QSY#?W]WQSY#1^0WO'/D-_?___
M_W]_?W]_?W]_?W]_
M\^0T7'/D-WQSY#?W]_6,^0U3'/D-_?W]_
M?W]_?W]_?W]_5,^0UC'
M/D-_?W]_\^0TW'/D-8QSY#?W]_?___
M_W]_?W]_?W]8QSY#3^0WO'/D-_
M?W]_?W/'/D--QSY#5,^0WO'/D-_?W]_
M?W]_\^0U3'/D--QSY#\^0W]_?W__
M__]_?W][QSY#6,^0T7'/D-8QSY#,^0WO'/D-_\^
M0W#'/D-8QSY#1^0UC'/D-[QSY#?W]_?W]_
M?W]_?W?'/D-QSY#3^0T''/D-!QSY#0^0TW'/D-
CQSY#=\^0W]_?W]_?W\
`
end

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]