[PHP-DEV] Bug #15275 Updated: Apache 1.3.20 won't start with newly compiled PHP 4.1.1

2002-01-29 Thread bate

ID: 15275
Updated by: bate
Old Summary: Apache 1.3.20 won't start with newly compiled PHP 4.1.1
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Apache related
Operating System: SuSE Linux 7.1 Kernel 2.4.2
PHP Version: 4.1.1
New Comment:

Whats is the line 224 on httpd.conf?


Previous Comments:


[2002-01-29 08:15:34] [EMAIL PROTECTED]

Apache version = 1.3.20
mod_ssl version = 2.8.4 for apache 1.3.20
openssl version = 0.9.6c
C-compiler = gcc version 2.95.2 19991024 (release)

I have first installed openssl, then compiled and installed apache with
mod_ssl support and then compiled PHP 4.1.1 from the official sources,
configuring with the following options:

$ ./configure --with-apxs=/usr/local/apache/current/bin/apxs \
--with-ftp --enable-versioning \
--enable-tracking-vars --enable-url-includes \
--enable-sysvshm --enable-sysvsem \
--with-config-file-path=/etc --without-mysql \
--with-sapdb=/opt/sapdb/interfaces/odbc

This went through without problems,'make' and 'make install' worked
also, however when i call apachectl to start the server it exits with
this error message :

Syntax error on line 224 of /usr/local/apache/1.3.20/conf/httpd.conf:
Cannot load /usr/local/apache/1.3.20/libexec/libphp4.so into server:
undefined symbol: pcre_malloc


I've tried this with the latest CVS snapshot as well but no luck. Also,
I've compiled php with different options but always with the same
result...

The weird thing is that I got this to work on another SuSE box with
same kernel version (2.4.2). Am I lacking some package maybe? I
wouldn't know which one, though. I read through the configure output
carefully and it seems like everything necessary is there.

Please help me out here!





Edit this bug report at http://bugs.php.net/?id=15275edit=1


-- 
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] Bug #15253 Updated: The console version of php crashes

2002-01-28 Thread bate

ID: 15253
Updated by: bate
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Unknown/Other Function
Operating System: Linux Red Hat 7.1
PHP Version: 4.1.1
New Comment:

Please make an example script to reproduce this Coredump.

Try lates CVS Snap from http://snaps.php.net


Previous Comments:


[2002-01-28 06:42:35] [EMAIL PROTECTED]

Hello... I love PHP... = )
But now I've got a problem... when I load a lot of data from MySQL into
the Console version of PHP (around 3-400MB) the PHP krashes when the
script has ended... 

I guess it's when the PHP are freeing all data... Here is what the
output is...

br
bFatal error/b:  Maximum execution time of 30 seconds exceeded in
bUnknown/b on line b0/bbr
Segmentation fault (core dumped)

The script does what IT should... so it doesen't krash untill it's
completed... The PHP even close down the MySQL Connection before it
crashes... But I realy don't wanna have a 400MB core file afterwards...
= )

// Zydox [Erik Persson]
   Stockholm, Sweden
   (sorry about my bad english)





Edit this bug report at http://bugs.php.net/?id=15253edit=1


-- 
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] Bug #15169 Updated: ImageCreateFromPng causes Segmentation Fault

2002-01-22 Thread bate

ID: 15169
Updated by: bate
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating System: Solaris 2.6
PHP Version: 4.1.1
New Comment:

What libpng version are you using?
Try with latest version. (1.2.1

http://www.libpng.org/pub/png/libpng.html


Previous Comments:


[2002-01-22 13:04:15] [EMAIL PROTECTED]

I built httpd daemon with php-4.1.1 with the following shared
libraries

# ldd /usr/local/apache/bin/httpd
libpam.so.1 =   /usr/lib/libpam.so.1
libdl.so.1 =/usr/lib/libdl.so.1
libpdf.so.1 =   /usr/local/lib/libpdf.so.1
libtiff.so.3 =  /usr/local/lib/libtiff.so.3
libpng.so.3 =   /usr/local/lib/libpng.so.3
libz.so =   /usr/local/lib/libz.so
libmysqlclient.so.6 =  
/usr/local/mysql/lib/libmysqlclient.so.6
libmcrypt.so.4 =/usr/local/lib/libmcrypt.so.4
libltdl.so.3 =  /usr/local/lib/libltdl.so.3
libintl.so.1 =  /usr/lib/libintl.so.1
libt1.so.1 =/usr/local/lib/libt1.so.1
libX11.so.4 =   /usr/lib/libX11.so.4
libXpm.so.4.10 =/usr/lib/libXpm.so.4.10
libresolv.so.2 =/usr/lib/libresolv.so.2
libm.so.1 = /usr/lib/libm.so.1
libsocket.so.1 =/usr/lib/libsocket.so.1
libnsl.so.1 =   /usr/lib/libnsl.so.1
libc.so.1 = /usr/lib/libc.so.1
libexpat.so.0 = /usr/local/lib/libexpat.so.0
libucb.so.1 =   /usr/ucblib/libucb.so.1
libelf.so.1 =   /usr/lib/libelf.so.1
libXext.so.0 =  /usr/openwin/lib/libXext.so.0
libmp.so.2 =/usr/lib/libmp.so.2
/usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1

If I execute the following php script

?php
 $im = ImageCreateFromPng(testbild.png);
 ImagePng($im);
?

the httpd daemon died with segmentation fault:
[Tue Jan 22 18:51:36 2002] [notice] child pid 26589 exit signal
Segmentation Fault (11)

#gdb /usr/local/apache/bin/httpd
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for
details.
This GDB was configured as sparc-sun-solaris2.6...(no debugging
symbols found)...
(gdb) run -X -f /usr/local/apache/conf/httpd.conf
Starting program: /usr/local/apache/bin/httpd -X -f
/usr/local/apache/conf/httpd.conf
(no debugging symbols found)...(no debugging symbols found)...warning:
Lowest section in /usr/lib/libintl.so.1 is .dynamic at 0x74

Program received signal SIGSEGV, Segmentation fault.
0x59d3fec4 in ?? ()
(gdb) bt
#0  0x59d3fec4 in ?? ()
#1  0xef5f721c in png_create_write_struct_2 ()
#2  0xef5f7e28 in png_create_write_struct ()
#3  0x1ed6b0 in jpeg_std_error ()
#4  0x667c0 in _init ()
#5  0x68660 in _init ()
#6  0x13821c in flock ()
#7  0x116d98 in flock ()
#8  0x59f6c in _init ()
#9  0x121214 in flock ()
#10 0x564cc in _init ()
#11 0x56538 in _init ()
#12 0x19596c in flock ()
#13 0x1b3df8 in flock ()
#14 0x1b3e7c in flock ()
#15 0x1a72d0 in flock ()
#16 0x1a758c in flock ()
#17 0x1a77a8 in flock ()
#18 0x1a81dc in flock ()
#19 0x1a8e3c in flock ()
(gdb) q






Edit this bug report at http://bugs.php.net/?id=15169edit=1


-- 
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] Bug #15169 Updated: ImageCreateFromPng causes Segmentation Fault

2002-01-22 Thread bate

ID: 15169
Updated by: bate
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating System: Solaris 2.6
PHP Version: 4.1.1
New Comment:

Can you try 1.2.0? I found some major updates.


CHANGES
version 1.2.1beta1 [October 19, 2001]
  Revised makefile.std in contrib/pngminus
  Include background_1 in png_struct regardless of gamma support.
  Revised makefile.netbsd and makefile.macosx, added makefile.darwin.
  Revised example.c to provide more details about using
row_callback().
version 1.2.1beta2 [October 25, 2001]
  Added type cast to each NULL appearing in a function call, except
for
WINCE functions.
  Added makefile.so9.
version 1.2.1beta3 [October 27, 2001]
  Removed type casts from all NULLs.
  Simplified png_create_struct_2().
version 1.2.1beta4 [November 7, 2001]
  Revised png_create_info_struct() and png_creat_struct_2().
  Added error message if png_write_info() was omitted.
  Type cast NULLs appearing in function calls when _NO_PROTO or
PNG_TYPECAST_NULL is defined.
version 1.2.1rc1 [November 24, 2001]
  Type cast NULLs appearing in function calls except when
PNG_NO_TYPECAST_NULL
is defined.
  Changed typecast of size argument to png_size_t in pngmem.c calls
to
the user malloc_fn, to agree with the prototype in png.h
  Added a pop/push operation to pnggccrd.c, to preserve Eflag (Maxim
Sobolev)
  Updated makefile.sgi to recognize LIBPATH and INCPATH.
  Updated various makefiles so make clean does not remove previous
major
version of the shared library.
version 1.2.1rc2 [December 4, 2001]
  Added a pop/push operation to pngvcrd.c, to preserve Eflag.
  Always allocate 256-entry internal palette, hist, and trans arrays,
to
avoid out-of-bounds memory reference caused by invalid PNG
datastreams.
  Added a check for prefix_length  data_length in iCCP chunk handler.
version 1.2.1 [December 12, 2001]
  None.



Previous Comments:


[2002-01-22 13:24:42] [EMAIL PROTECTED]

libpng-1.2.1 is used.

# ls -lai /usr/local/lib/libpng*
 79753 -rw-r--r--   1 root other 205456 Jan 22 18:50
/usr/local/lib/libpng.a
 79886 lrwxrwxrwx   1 root other 11 Jan 22 18:50
/usr/local/lib/libpng.so - libpng.so.3
 79776 lrwxrwxrwx   1 root other 17 Jan 22 18:50
/usr/local/lib/libpng.so.3 - libpng.so.3.1.2.1
 79775 -rwxr-xr-x   1 root other 177504 Jan 22 18:50
/usr/local/lib/libpng.so.3.1.2.1




[2002-01-22 13:19:20] [EMAIL PROTECTED]

What libpng version are you using?
Try with latest version. (1.2.1

http://www.libpng.org/pub/png/libpng.html



[2002-01-22 13:04:15] [EMAIL PROTECTED]

I built httpd daemon with php-4.1.1 with the following shared
libraries

# ldd /usr/local/apache/bin/httpd
libpam.so.1 =   /usr/lib/libpam.so.1
libdl.so.1 =/usr/lib/libdl.so.1
libpdf.so.1 =   /usr/local/lib/libpdf.so.1
libtiff.so.3 =  /usr/local/lib/libtiff.so.3
libpng.so.3 =   /usr/local/lib/libpng.so.3
libz.so =   /usr/local/lib/libz.so
libmysqlclient.so.6 =  
/usr/local/mysql/lib/libmysqlclient.so.6
libmcrypt.so.4 =/usr/local/lib/libmcrypt.so.4
libltdl.so.3 =  /usr/local/lib/libltdl.so.3
libintl.so.1 =  /usr/lib/libintl.so.1
libt1.so.1 =/usr/local/lib/libt1.so.1
libX11.so.4 =   /usr/lib/libX11.so.4
libXpm.so.4.10 =/usr/lib/libXpm.so.4.10
libresolv.so.2 =/usr/lib/libresolv.so.2
libm.so.1 = /usr/lib/libm.so.1
libsocket.so.1 =/usr/lib/libsocket.so.1
libnsl.so.1 =   /usr/lib/libnsl.so.1
libc.so.1 = /usr/lib/libc.so.1
libexpat.so.0 = /usr/local/lib/libexpat.so.0
libucb.so.1 =   /usr/ucblib/libucb.so.1
libelf.so.1 =   /usr/lib/libelf.so.1
libXext.so.0 =  /usr/openwin/lib/libXext.so.0
libmp.so.2 =/usr/lib/libmp.so.2
/usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1

If I execute the following php script

?php
 $im = ImageCreateFromPng(testbild.png);
 ImagePng($im);
?

the httpd daemon died with segmentation fault:
[Tue Jan 22 18:51:36 2002] [notice] child pid 26589 exit signal
Segmentation Fault (11)

#gdb /usr/local/apache/bin/httpd
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for
details.
This GDB was configured as sparc-sun-solaris2.6...(no debugging
symbols found)...
(gdb) run -X -f /usr/local/apache/conf

[PHP-DEV] Bug #14796 Updated: error in calculating with minus

2002-01-02 Thread bate

ID: 14796
Updated by: bate
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: *General Issues
Operating System: suse linux 7.1
PHP Version: 4.1.0
New Comment:

Its tested with 4.1.1

I tested with 
128.1 - 128.0

I think this error just occours if the result 1.0 and the numbers =128.0.



Previous Comments:


[2002-01-02 07:20:10] [EMAIL PROTECTED]

php allways returns after echo 166.3 - 166.6;

-0.28

but the right result is -0.3

is there a fix for this problem?

thanx

-OLIMAC





Edit this bug report at http://bugs.php.net/?id=14796edit=1


-- 
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] Bug #14165 Updated: No way to return variables from remote include()

2001-11-21 Thread bate

ID: 14165
Updated by: bate
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Feature/Change Request
Operating System: Linux
PHP Version: 4.0.5
New Comment:

Hi,

what are you means with remote?

include(http://www.mysite.com/phpscript.php;);
Dont work. the .php are parsed befor and you cant get
source to your script. If you need content from a 
database so print's it as csv and use the output in your
script.

http://www.php.net/csv

-- Marco

Btw. Ask this type of question on the general or dev mailing list.

Previous Comments:


[2001-11-21 15:47:59] [EMAIL PROTECTED]

This is not the same as 14164.

Thanks for the quick response, Brian.
I appreciate that the remote file is
parsed remotely, and so the var spaces
are on different machines.

Here's a rephrase of 14165:
Given that it *is* possible to pass
variable values to a remotely INCLUDE()d file
using GET-style syntax, 
HOW DOES ONE GET ANYTHING BACK?
Include appears only to return a single integer,
at best.

The remotely included file is calling a database
and retrieving values.  How does the calling
file access them?





[2001-11-21 14:46:07] [EMAIL PROTECTED]

Please do not ask the same question twice in the bug system.



[2001-11-21 14:38:39] [EMAIL PROTECTED]

Related to bug 14164:

All workarounds I have tried to pass variable data
back from a remotely include()d or require()d
script have failed.

Arrays and strings don't appear to be passed back in
the include()'s return value, it will only pass back
integers.

If anyone sees another way to do this please help!

I will keep looking and post a followup here and to the
manual if I find a workaround.

Steve Rapaport





Edit this bug report at http://bugs.php.net/?id=14165edit=1


-- 
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] Bug #14164 Updated: variables set in remotely include()d file are lost upon return

2001-11-21 Thread bate

ID: 14164
Updated by: bate
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 4.0.5
New Comment:

:) but i think he want that his code executed on the remote machine. He want just an 
:resource_id #xxx to use it local.


Btw. due this way its possible to execute external code on a othersite. 
?include=myfile.php are a very high security risk.

Previous Comments:


[2001-11-21 16:08:17] [EMAIL PROTECTED]

Change your included file extensions from .php to something
which the remote server won't parse, so that you're 
including the *text* of the remote file, not its *output*.





[2001-11-21 14:45:14] [EMAIL PROTECTED]

The file that is served remotely is being parsed on that server, not the local one.  
You would have to have the remote server serve .php files as plain text to achieve 
what you want.



[2001-11-21 14:35:43] [EMAIL PROTECTED]

When using http to include() or require() a file,
the variables set within are lost when returning
to the calling file. 
Behavior is instead as expected when included or required file is local.

Example:

?php
 
echo phpversion();
 
echo brtry includebr\n;
$test1 = foo;
echo test1 = $test1;
echo brnow including change of test1br;
include(http://192.168.100.3/includechild.php;);
echo broutside: test1 = $test1;
echo brresult:  $result;
 
echo brnow try requirebr\n;
$test2 = foo;
echo test2 = $test2;
echo brnow requiring change of test2br;
require(http://192.168.100.3/requirechild.php;);
echo broutside: test2 = $test2;
?   

includechild.php:  (and similar to requirechild.php)
-

?php
$test1 = bar;
echo Inside: test1 = $test1;
?   

Results:
---

4.0.5
try include
test1 = foo
now including change of test1
Inside: test1 = bar
outside: test1 = foo

now try require
test2 = foo
now requiring change of test2
Inside: test2 = bar
outside: test2 = foo






Edit this bug report at http://bugs.php.net/?id=14164edit=1


-- 
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] Bug #14137 Updated: Request additional flag for mysql_connect

2001-11-20 Thread bate

ID: 14137
Updated by: bate
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: MySQL related
Operating System: Debian/Linux
PHP Version: 4.0CVS-2001-11-20
New Comment:

bool mysql_select_db (string database_name, resource [link_identifier])

http://www.php.net/manual/en/function.mysql-select-db.php


--Marco


P.S. Maybe you upgrade your system or you learn to read the manual pages.

Previous Comments:


[2001-11-20 04:17:22] [EMAIL PROTECTED]

Manual states:

If a second call is made to mysql_connect() with the same 
arguments, no new link will be established, but instead, 
the link identifier of the already opened link will be 
returned. 

Most of the times this is good. With one exception.

Let's describe this situation.
I have 2 databases. I have 1 user account for mysql.
I need to use both of those databases simultaneously in my
script.
Now i do:
$id1 = mysql_connect($host, $username, $password);
mysql_select_db(db1, $id1);
$id2 = mysql_connect($host, $username, $password);
mysql_select_db(db2, $id2);

And now I think why so many errors :(

Second call to mysql_connect() returns same resource, so 
my active database is db2 now. But I want to use data from 
two databases at once. So this 'reuse' feature is bad for 
me.

Now, I use a wrapper class so I could issue an 
mysql_select_db() every time I do a query. But I think 
this is not a wise thing to do.

So I ask: Shouldn't be there a flag with meaning like 'do 
not try to reuse exitsing connection'. Or may be just an 
additional string argument 'database' which when specified
automagically selects that database and subsequent calls to
mysql_connect() take that value into account when deciding
to return or not to return existing resource.







Edit this bug report at http://bugs.php.net/?id=14137edit=1


-- 
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] Bug #14137 Updated: Request additional flag for mysql_connect

2001-11-20 Thread bate

ID: 14137
Updated by: bate
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: MySQL related
Operating System: Debian/Linux
PHP Version: 4.0CVS-2001-11-20
New Comment:

Ups sorry wrong links. :)

http://www.php.net/manual/en/ref.mysql.php
http://www.php.net/manual/en/function.mysql-db-query.php

--Marco


Note: This function has been deprecated since PHP 4.0.6. Do not use this function. Use 
mysql_select_db() and mysql_query() instead. 

read the User comment's


Previous Comments:


[2001-11-20 12:34:58] [EMAIL PROTECTED]

bool mysql_select_db (string database_name, resource [link_identifier])

http://www.php.net/manual/en/function.mysql-select-db.php


--Marco


P.S. Maybe you upgrade your system or you learn to read the manual pages.



[2001-11-20 04:17:22] [EMAIL PROTECTED]

Manual states:

If a second call is made to mysql_connect() with the same 
arguments, no new link will be established, but instead, 
the link identifier of the already opened link will be 
returned. 

Most of the times this is good. With one exception.

Let's describe this situation.
I have 2 databases. I have 1 user account for mysql.
I need to use both of those databases simultaneously in my
script.
Now i do:
$id1 = mysql_connect($host, $username, $password);
mysql_select_db(db1, $id1);
$id2 = mysql_connect($host, $username, $password);
mysql_select_db(db2, $id2);

And now I think why so many errors :(

Second call to mysql_connect() returns same resource, so 
my active database is db2 now. But I want to use data from 
two databases at once. So this 'reuse' feature is bad for 
me.

Now, I use a wrapper class so I could issue an 
mysql_select_db() every time I do a query. But I think 
this is not a wise thing to do.

So I ask: Shouldn't be there a flag with meaning like 'do 
not try to reuse exitsing connection'. Or may be just an 
additional string argument 'database' which when specified
automagically selects that database and subsequent calls to
mysql_connect() take that value into account when deciding
to return or not to return existing resource.







Edit this bug report at http://bugs.php.net/?id=14137edit=1


-- 
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] Bug #14116 Updated: imageTTFtext doesnt work with ImageCreateTrueColor

2001-11-19 Thread bate

ID: 14116
Updated by: bate
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: GD related
Operating System: Slackware 8
PHP Version: 4.0.6
New Comment:

I say don't use Beta Software.
GD-2.0.1 are beta and buggy. 
It's not a PHP Problem. Use GD-1.8.4.

Previous Comments:


[2001-11-19 11:01:08] [EMAIL PROTECTED]

Looks like im getting the same problem to Jeremy BUG-ID 13197.



[2001-11-19 10:56:22] [EMAIL PROTECTED]

?php
$fontsize=11;
$angle=0;
$fontfile=./pub/fonts/ARIAL.TTF;

$image = ImageCreateTrueColor(300, 16);

$first=@imagecreatefromPNG(./pub/menuimg/$im1.png);

$white = imageColorAllocate($image, 255, 255, 255);
$black = imageColorAllocate($image, 0, 0, 0);

imageCopyResized($image,$first,1,0,0,0,ImageSX($first),ImageSY($first),ImageSX($first),ImageSY($first));


imagettftext($image, $fontsize, $angle, 23, 11, $black,$fontfile, Main Page);

Header( Content-type: image/png);
imagePNG($image);

ImageDestroy ($image); 
? 



[2001-11-19 10:44:11] [EMAIL PROTECTED]

Can you post a sample script? You might be doing something wrong...



[2001-11-19 10:40:33] [EMAIL PROTECTED]

I am using:
GD-2.0.1
FREETYPE-1.3.1

When I use the ImageCreate then the imageTTFtext works, streaming the image to the 
screen. If I use imageCreateTrueColor then the browse says document contains no data.



[2001-11-19 10:37:08] [EMAIL PROTECTED]

Luke, what do you mean by it doesn't work?  There is a known problem with 
anti-aliasing of ttf fonts on truecolor images in gd-2.0.1, but apart from looking 
rather crappy, it does work.



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/?id=14116


Edit this bug report at http://bugs.php.net/?id=14116edit=1


-- 
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] Bug #14118 Updated: Upload file more than 1 Mb doesn´t work

2001-11-19 Thread bate

ID: 14118
Updated by: bate
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Unknown/Other Function
Operating System: linux redhat 7.1
PHP Version: 4.0.4pl1
New Comment:

Which version of Apache runs you?
I note same problem with IE 5.x. Try you script with 
Netscape. I think its a problem with your Browser.

Previous Comments:


[2001-11-19 11:55:38] [EMAIL PROTECTED]

I have a little script for uploading files, all work fine with files lower than 1 mb 
but if I try to upload a higher file I get the next browser error The page cannot be 
displayed.

My script is:

? //check for file upload
if ($set==go)
{
if (is_uploaded_file($UploadedFile))
{
print(Local File: $UploadedFile BR\n);
print(Name: $UploadedFile_name BR\n);
print(Size: $UploadedFile_size BR\n);
print(Type: $UploadedFile_type BR\n);
print(HR\n);
 }
}
?

FORM ENCTYPE=multipart/form-data
ACTION=test.php METHOD=POST
INPUT TYPE=hidden name=MAX_FILE_SIZE
value=1024000
INPUT NAME=UploadedFile TYPE=file
INPUT TYPE=hidden name=set value=go
INPUT TYPE=submit VALUE=Upload
/FORM
/BODY
/HTML

My php.ini has a very higher configuration limits.

The parameters are:
max_execution_time = 3000
memory_limit = 16M
post_max_size   =   80M  

; File Uploads ;

file_uploads= On
upload_tmp_dir  = /tmp  
upload_max_filesize = 80M   


I read that the solution is upgrade php, I´m hoping that there are other solutions.

Thanks

Mauricio






Edit this bug report at http://bugs.php.net/?id=14118edit=1


-- 
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] Bug #14076 Updated: fopen() and touch() fail to create file under safe mode

2001-11-19 Thread bate

ID: 14076
Updated by: bate
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: *Directory/Filesystem functions
Operating System: Linux
PHP Version: 4.0.6
New Comment:

Post please the
mod of your directory and tell me the
user and group of your apache. Maybe the apache dont have
rights to create a new file in your directory but he owns the newfile and can 
remove/edit this file.


Previous Comments:


[2001-11-15 18:53:16] [EMAIL PROTECTED]

Under safe mode, fopen(filename, w) fails to create a file if it doesn't exist, 
complaining about open_basedir restriction.  However, the filename refers to the file 
in the directory configured in the open_basedir.  Besides, if the same file is created 
manually, fopen() can open it for writing without  any problems.  The directory is 
writeable to the web server.

$dir = '/var/www/tmp/submit';

// Fails if the file doesn't exist.
// Succeeds if the file does exist
fopen( $dir/file.txt, w ); // Fails if the file doesn't exist.
mkdir( $dir/foo, 0700 ); // SUCCEEDS!!! Notice the same path.





Edit this bug report at http://bugs.php.net/?id=14076edit=1


-- 
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] Bug #14080 Updated: The doubledoublequote strikes again

2001-11-19 Thread bate

ID: 14080
Updated by: bate
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Analyzed
Bug Type: Session related
Operating System: FreeBSD 4.4
PHP Version: 4.0.6
New Comment:

I got the same problem.
Tryed with 4.2.0-dev.


Previous Comments:


[2001-11-16 05:56:15] [EMAIL PROTECTED]

I came across the bug described in Bug-ID #8311 with 4.03pl1
on our old Server, so I transfered it to the new Server running 4.0.6 and the 
behaviour is nearly the same.
This:
?php
session_start();
$somevar = a href=\javascript:;\ 
onClick=window.open(\/hardware/somevar.php?hinfoid=.$somevar_id.\,\chgti\,\location=0,directories=0,status=0,menubar=0,scrollbars=0,toolbar=0,width=450,height=470\);Badlink/a;

echo $somevar;
?

produces this:
a href=javascript:; 
onClick=window.open(/hardware/somevar.php?hinfoid=,chgti,location=0,directories=0,status=0,menubar=0,scrollbars=0,toolbar=0,width=450,height=470);Badlink/a


Without the session, the Output is normal, both with 4.0.3pl1 and 4.06.
The only difference is that 4.0.6 does a few less quotes than 4.0.3pl1.

Trans-SID is enabled, PHP is running as an Apache-Module








Edit this bug report at http://bugs.php.net/?id=14080edit=1


-- 
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] Bug #14058 Updated: binary and

2001-11-15 Thread bate

ID: 14058
Updated by: bate
Reported By: [EMAIL PROTECTED]
Status: Closed
Bug Type: Scripting Engine problem
Operating System: Linux 2.2.14  Windows NT 5.0
PHP Version: 4.0.6
New Comment:

I tested it under 4.0.6/4.1.0/4.2.0 and i got this output:

4294967295  67633152 = 67633152

So i think its works for me.

Previous Comments:


[2001-11-14 13:47:57] [EMAIL PROTECTED]

Reproduced with 4.0.6, can't reproduce with 4.2.0-dev



[2001-11-14 12:48:53] [EMAIL PROTECTED]

echo 4294967295  67633152 = . (4294967295  67633152);
//under Windows: 4294967295  67633152 = 67633152  ok 
//under Linux:   4294967295  67633152 = 0 ???






Edit this bug report at http://bugs.php.net/?id=14058edit=1


-- 
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] Bug #14054 Updated: Error evaluating the Intval function

2001-11-15 Thread bate

ID: 14054
Updated by: bate
Reported By: [EMAIL PROTECTED]
Old Status: Bogus
Status: Duplicate
Bug Type: *Regular Expressions
Operating System: Windows 2000 Server
PHP Version: 4.0.4pl1
New Comment:

try (int)$val or use sprintf() or any other function to format you integer. Btw. 
(int)$string returns 0


Previous Comments:


[2001-11-14 12:02:38] [EMAIL PROTECTED]

This is not a bug, please ask support questions on the [EMAIL PROTECTED] 
mailinglist.

Derick



[2001-11-14 11:24:21] [EMAIL PROTECTED]

Hi,

See this simple script
?
if (intval($val) == $val)
   echo $val is equal to.intval($val);
else
   echo $val is not equal to.intval($val);
?

If i put a string in $val...for example ABC ad i run the script...PHP print:ABC is 
equal to 0

Thanks for all your work that give me a work ^_^'





Edit this bug report at http://bugs.php.net/?id=14054edit=1


-- 
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] Bug #14056 Updated: Large amounts of fileuploads in a page cause segmentation fault

2001-11-15 Thread bate

ID: 14056
Updated by: bate
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Reproducible crash
Operating System: Redhat 7.0
PHP Version: 4.0.6
New Comment:

Its now Fixed.

Previous Comments:


[2001-11-15 05:53:12] [EMAIL PROTECTED]


Yes, it is fixed in the current CVS, I used, php4-2005

I could even increase max to 300 and it worked. However, when submitting my test 
script with no files inserted for upload, the values of the file uploads were not 
none, but a temporary file. Unexpected behaviour which may lead to problems. The 
size of the (temp)files is 0, but the value of the variable should be none or .



[2001-11-14 13:13:00] [EMAIL PROTECTED]

Cannot reproduce with current CVS.



[2001-11-14 12:30:14] [EMAIL PROTECTED]

Can you try a snapshot from snaps.php.net and report back if that fixes the problem?

Derick



[2001-11-14 12:08:47] [EMAIL PROTECTED]

!-- example that causes the error --
!-- you don't need to upload any files, just clicking Submit will cause the crash --
form method=post enctype=multipart/form-data
?

if (is_array($file))
  while (list($key,$val) = each($file))
print $key = $valbr\n;

# changing max to 33 will not cause the segfault, 34 will.
$msx = 34;

for ($i=0;$i$msx;$i++) {
  print $i.'Upload file: input type=file name=file['.$i.']br';
}

?
input type=submit
/form

--end of example --

--with-mysql=/usr --enable-sysvshm=yes --enable-sysvsem=yes --enable-versioning 
--with-gd=/usr --enable-track-vars=yes --enable-force-cgi-redirect=yes 
--enable-memory-limit=yes --with-apache=../apache_1.3.19 --enable-debug=no 
--with-mcrypt

Page works if I switch back to php 4.0.4-pl1








Edit this bug report at http://bugs.php.net/?id=14056edit=1


-- 
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] Bug #14068 Updated: 2 while list each dont work

2001-11-15 Thread bate

ID: 14068
Updated by: bate
Reported By: [EMAIL PROTECTED]
Old Status: Bogus
Status: Closed
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 4.0.5
New Comment:

Andrey Hristov:

Try
reset($a); before the first while, and reset($b) just before the second in 
the body if the first.

Previous Comments:


[2001-11-15 07:29:44] [EMAIL PROTECTED]

you have to reset() the arrays before
the loops start to reset the internal
array pointer (see http://php.net/each)

or better use the foreach loop instead
of while/each



[2001-11-15 06:56:24] [EMAIL PROTECTED]

?php

$a[0]=x;
$a[1]=y;
$b[0]=z;
$b[1]=w;
$b[2]=u;

while (list($key,$val)=each($a) )
{
while (list($key2,$val2)=each($b) )
{
print $key: $val - $key2: $val2br;
}
}
?

'./configure' '--with-mysql' '--with-apache=../apache_1.3.20' '--with-gd=../gd-1.8.3' 
'--enable-track-vars'





Edit this bug report at http://bugs.php.net/?id=14068edit=1


-- 
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] Bug #14044 Updated: GD(PNG) support stops working

2001-11-13 Thread bate

ID: 14044
Updated by: bate
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: GD related
Operating System: Solaris 2.8 (Sparc)
PHP Version: 4.0.6
New Comment:

--with-png-dir=
--with-jpeg-dir=

Use this configure commands to set PNGLIB and JPEG dir.
I try'd you configure and its works nice for me under 
FreeBSD 4.4
Redhat 7.1
SuSE 7.x

Tested PHP Versions
4.0.6
4.1.0RC1 + RC2
4.2.0... works nice with all

Previous Comments:


[2001-11-13 17:02:46] [EMAIL PROTECTED]

Upgrading from PHP 4.0.5 to 4.0.6 will make gd support stop working. GD, libpng and 
libjpeg are installed under /usr/local.
The error is: No PNG support in this PHP build
I am adding the --with-gd configure option. A downgrade to 4.0.5 solved the problem 
without changing nothing else.

I am using Apache 1.3.22 and installed with --with-apache=../apache_1.3.22 configure 
option.





Edit this bug report at http://bugs.php.net/?id=14044edit=1


-- 
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] Bug #13925 Updated: SCRIPT_NAME in Apache 1.3.22 wrong (or at least different)

2001-11-13 Thread bate

ID: 13925
Updated by: bate
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Analyzed
Bug Type: Apache related
Operating System: FreeBSD 4.4-Stable
PHP Version: 4.0.6
New Comment:

Checked with latest CVS
and PHP 4.1.0RC1 + RC2

Script Output:
$PATH_INFO = /foo/bar
$SCRIPT_NAME = /script/foo/bar/script.php

I checked that too under RedHat + SuSE 7.x
with PHP 4.0.6
$PATH_INFO = /foo/bar
$SCRIPT_NAME = /script/foo/bar/script.php


Previous Comments:


[2001-11-04 21:56:07] [EMAIL PROTECTED]

Hi,

I have a website on an ISP that runs FreeBSD 4.4 with a recently upgraded Apache 
1.3.22 webserver and PHP 4.06 compiled as CGI.  My sight relies on the $SCRIPT_NAME 
PHP global variable.  It seems that this variable is getting set differently with the 
new Apache?  Here's an example:

URL:
  http://some.website.com/script/foo/bar
where
  script = script.php using Apache multiviews

Before (Apache 1.3.20 / PHP 4.06):
$PATH_INFO = /foo/bar
$SCRIPT_NAME = /script

After (Apache 1.3.22 / PHP 4.06):
$PATH_INFO = /foo/bar
$SCRIPT_NAME = /script/foo/bar/script.php

I'm sorry I won't be able to give too much detail of this bug because I don't have too 
much access to the machine (on the ISP), but let me know how I can help with this 
issue and I'd be glad to do what I can.

Thanks.

Adam Taft
[EMAIL PROTECTED]







Edit this bug report at http://bugs.php.net/?id=13925edit=1


-- 
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] Bug #13778 Updated: Layout defect...

2001-10-21 Thread bate

ID: 13778
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Closed
Bug Type: Documentation problem
Operating System: 
PHP Version: 4.0.6
New Comment:

There is one.
There is no linebreak. Some lines goes long to the right side.



Previous Comments:


[2001-10-21 10:34:52] [EMAIL PROTECTED]

There is no layout defect.



[2001-10-21 09:57:32] [EMAIL PROTECTED]

http://www.php.net/manual/de/function.crypt.php
Check this and see self. :)





Edit this bug report at http://bugs.php.net/?id=13778edit=1


-- 
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] Bug #13778 Updated: Layout defect...

2001-10-21 Thread bate

ID: 13778
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Closed
Bug Type: Documentation problem
Operating System: 
PHP Version: 4.0.6
New Comment:

Btw. i can fix this. I have CVS access. But i will first ask here for approval. :)

Previous Comments:


[2001-10-21 10:41:57] [EMAIL PROTECTED]

There is one.
There is no linebreak. Some lines goes long to the right side.





[2001-10-21 10:34:52] [EMAIL PROTECTED]

There is no layout defect.



[2001-10-21 09:57:32] [EMAIL PROTECTED]

http://www.php.net/manual/de/function.crypt.php
Check this and see self. :)





Edit this bug report at http://bugs.php.net/?id=13778edit=1


-- 
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] Bug #13361: Seg Fault

2001-09-18 Thread bate

From: [EMAIL PROTECTED]
Operating system: Linux 2.2.16
PHP version:  4.0.6
PHP Bug Type: Unknown/Other Function
Bug description:  Seg Fault

#!/usr/bin/php -q

?php

echo Ihr Name:;

if ($fp = fopen(php://stdin,r)) {
$line = fgets($fp, 100);
fclose($fp);
}

$name = ereg_replace([\n\r], '', $line);

echo Hallo $name!\n;

?

This Program makes me with my Binary a seg fault after 3 executions .. ?
-- 
Edit bug report at: http://bugs.php.net/?id=13361edit=1


-- 
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] Bug #13361 Updated: Seg Fault

2001-09-18 Thread bate

ID: 13361
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Closed
Bug Type: Unknown/Other Function
Operating System: Linux 2.2.16
PHP Version: 4.0.6
New Comment:

http://www.bate.de/bug/phpinfo.html

this is the PHPINFO from my php binary

php -i phpinfo.html

I check it with 4.0.7RC1 and 4.0.7RC2 Both makes a Seg Fault.

Previous Comments:


[2001-09-18 06:32:34] [EMAIL PROTECTED]

Not reproduceable with 4.0.6 on my machine ..

Anyway, it also works on CVS so. Try one from http://snaps.php.net/

Closed.

- Markus



[2001-09-18 05:37:12] [EMAIL PROTECTED]

#!/usr/bin/php -q

?php

echo Ihr Name:;

if ($fp = fopen(php://stdin,r)) {
$line = fgets($fp, 100);
fclose($fp);
}

$name = ereg_replace([\n\r], '', $line);

echo Hallo $name!\n;

?

This Program makes me with my Binary a seg fault after 3 executions .. ?





Edit this bug report at http://bugs.php.net/?id=13361edit=1


-- 
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] Bug #13361 Updated: Seg Fault

2001-09-18 Thread bate

ID: 13361
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: Reproducible crash
Operating System: Linux 2.2.16
PHP Version: 4.0.6
New Comment:

Stop Close this Bug Report i found the Bug.
Its a problem of the New beta Accelerator.


Bat[e]

btw. i report the problem to the zend masters :)

Previous Comments:


[2001-09-18 07:05:40] [EMAIL PROTECTED]

Please generate a GDB backtrace of that crash.
(using the 4.0.7RC2)

--Jani




[2001-09-18 07:03:15] [EMAIL PROTECTED]

http://www.bate.de/bug/phpinfo.html

this is the PHPINFO from my php binary

php -i phpinfo.html

I check it with 4.0.7RC1 and 4.0.7RC2 Both makes a Seg Fault.



[2001-09-18 06:32:34] [EMAIL PROTECTED]

Not reproduceable with 4.0.6 on my machine ..

Anyway, it also works on CVS so. Try one from http://snaps.php.net/

Closed.

- Markus



[2001-09-18 05:37:12] [EMAIL PROTECTED]

#!/usr/bin/php -q

?php

echo Ihr Name:;

if ($fp = fopen(php://stdin,r)) {
$line = fgets($fp, 100);
fclose($fp);
}

$name = ereg_replace([\n\r], '', $line);

echo Hallo $name!\n;

?

This Program makes me with my Binary a seg fault after 3 executions .. ?





Edit this bug report at http://bugs.php.net/?id=13361edit=1


-- 
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] Bug #10919: Magicquotes...

2001-05-17 Thread bate

From: [EMAIL PROTECTED]
Operating system: Linux 2.2.x
PHP version:  4.0.5
PHP Bug Type: *General Issues
Bug description:  Magicquotes...

I use QMAIL with VMAILMGR and webbased oMail-Admin 0.97.2.

The problem is that, if i have Magic Quotes Enabled he escape all html stuff like img 
src=\/images/test.gif\.

Thats bad. Is there any problem with?


Regards Bat[e]


-- 
Edit Bug report at: http://bugs.php.net/?id=10919edit=1



-- 
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] Bug #10920: bugs.php.net problem

2001-05-17 Thread bate

From: [EMAIL PROTECTED]
Operating system: ...
PHP version:  4.0.5
PHP Bug Type: *General Issues
Bug description:  bugs.php.net problem

Sorry, incorrect user id/password pair.

Warning: Supplied argument is not a valid MySQL result resource in 
/local/Web/sites/phpweb/bugs.php on line 645

Please fix that. I got this error if i would like to edit a bug report.


-- 
Edit Bug report at: http://bugs.php.net/?id=10920edit=1



-- 
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]