Re: [PHP-DEV] DOM/XML in 4.0.7

2001-06-28 Thread Colin Viebrock

 For 4.0.6 I rolled back the DOM/XML changes. It seems as if the current
 upgrade isn't being fixed. Maybe we should revert it back to what it was
 in 4.0.6 until it gets a thorough make over?

You love to make me work, huh?  :)

Seriously, if we stick with the 4.0.6 version, that's fine.  However, I've
heard various reports of major memory leaks in it.  I'd rather have a
leak-free version with a new syntax than a leaky version with the old
syntax.  Whichever makes more sense is fine with me.

- Colin


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




Re: [PHP-DEV] Apache coredumps with php4 with runtime modules ldap and imap loaded

2001-06-28 Thread Petr Cech

On Wed, Jun 27, 2001 at 12:34:31AM -0300 , Sergio Bruder wrote:
 I have the following situation:
 
 I have a linux 2.2.x with the following configuration:
 GLIBC 2.2.3
 OpenLDAP 2.0.11 (with SSL)
 imap-2000c (with SSL)
 Apache 1.3.19 (with SSL enabled by default)


 build_ext imap ext/imap/php_imap.c -limap -DHAVE_IMAP2000 -DHAVE_IMAP_SSL
 build_ext ldap ext/ldap/ldap.c -lldap -llber
 
 Apache doesnt coredumps if I load only php4-imap or only php4-ldap
 modules (php4 cgi version works).

welcom to the club :))

 Anybody have any clue for that?

read README.Debian :)) I have two problems with this combination. First is
that dynamicly linked c-client is a Bad Thing(TM). It works, but from time
to time is segfaults. The second problems is, if you use ldap before imap I
think (or the other way around). It triggers a bug in ld-linux, so apache
won't even start

Petr Cech
-- 
Debian GNU/Linux maintainer - www.debian.{org,cz}
   [EMAIL PROTECTED]

vaidhy Debian - It is all about choice, baby!!

-- 
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] CVS down!

2001-06-28 Thread Andi Gutmans

Guys,

We are moving the CVS tree to a different server so please don't commit 
anything in the next few hours.
Once it's up and running we'll post a message including the IP of the new 
machine (in case the DNS change doesn't propagate early enough for you).

Andi


-- 
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 sent manually [the php.net mailing is not working now :(]

2001-06-28 Thread Hojtsy Gabor

From: [EMAIL PROTECTED]
Operating system: any
PHP version:  4.0 Latest CVS (2001-06-27)
PHP Bug Type: *Configuration Issues
Bug description:  PEAR cant be used with safe mode

If you set up PEAR with the default path, it is unusable in safe mode :(



-- 
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] setting reference to $this in constructor.

2001-06-28 Thread ukasz Michalski

From: [EMAIL PROTECTED]
Operating system: Linux 2.2.x
PHP version:  4.0 Latest CVS (2001-06-27)
PHP Bug Type: Class/Object related
Bug description:  setting reference to $this in constructor.

When I want to set reference to $this object gets copied.
In this example $ui_handler contains copy of object $test.
$ui_handler - data is not reference to $test.
I use CVS 2001-06-24.

?
class CUI_element {
var $value;
function CUI_element($value) {
global $ui_handler;
$this - value = $value;
$ui_handler - register($this); 
}
}

class CUI_handler {
var $data;

function CUI_handler() {
$this - data = false;
}

function register($element) {
$this - data = $element;
}
};

$ui_handler = new CUI_Handler();
$test = new CUI_Element("test");
$test - value = "changed";
var_dump($ui_handler - data); print "br";
var_dump($test); print "br";
?

My output:
object(cui_element)(1) { ["value"]= string(4) "test" } 
object(cui_element)(1) { ["value"]= string(7) "changed" } 

Working url: http://biuro.pablosoft.com.pl/~zork/ref/tests.php

regards,
Zork.

-- 
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 #11707 Updated: FILE.lo isn't a libtool type if built php as a cgi

2001-06-28 Thread tom

ID: 11707
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Compile Failure
Operating system: NetBSD/Alpha 1.5W-current
PHP Version: 4.0.6
Description: FILE.lo isn't a libtool type if built php as a cgi

here is the exact error:

/bin/sh /home/staffs/t/tom/work/php/php4-current/php4/libtool --silent --mode=link gcc 
 -I. -I/ho
me/staffs/t/tom/work/php/php4-current/php4/main 
-I/home/staffs/t/tom/work/php/php4-current/php4/m
ain -I/home/staffs/t/tom/work/php/php4-current/php4 
-I/home/staffs/t/tom/work/php/php4-current/ph
p4/Zend -I/usr/local/include/freetype2/freetype -I/usr/pkg/include 
-I/usr/local/include/mysql -I/
usr/local/include -I/home/staffs/t/tom/work/php/php4-current/php4/TSRM  
-I/usr/pkg/include -g -O2
 -prefer-non-pic -static   -o libmain.la  main.lo internal_functions.lo snprintf.lo 
php_sprintf.l
o safe_mode.lo fopen_wrappers.lo alloca.lo php_ini.lo SAPI.lo rfc1867.lo 
php_content_types.lo str
lcpy.lo strlcat.lo mergesort.lo reentrancy.lo php_variables.lo php_ticks.lo streams.lo 
network.lo
 php_open_temporary_file.lo php_logos.lo
libtool: link: `main.lo' is not a valid libtool object
*** Error code 1

Stop.
---

i just did 

rm config.cache
./configure options
make clean
make

all that w/o the LDFLAGS, LIBS, and ENV variables are refreshed (no left-overs)

Previous Comments:
---

[2001-06-27 13:40:12] [EMAIL PROTECTED]
What version of PHP is this? Latest CVS? Or 4.0.6?


---

[2001-06-27 13:37:07] [EMAIL PROTECTED]
here is the exact error:

/bin/sh /home/staffs/t/tom/work/php/php4-current/php4/libtool --silent --mode=link gcc 
 -I. -I/ho
me/staffs/t/tom/work/php/php4-current/php4/main 
-I/home/staffs/t/tom/work/php/php4-current/php4/m
ain -I/home/staffs/t/tom/work/php/php4-current/php4 
-I/home/staffs/t/tom/work/php/php4-current/ph
p4/Zend -I/usr/local/include/freetype2/freetype -I/usr/pkg/include 
-I/usr/local/include/mysql -I/
usr/local/include -I/home/staffs/t/tom/work/php/php4-current/php4/TSRM  
-I/usr/pkg/include -g -O2
 -prefer-non-pic -static   -o libmain.la  main.lo internal_functions.lo snprintf.lo 
php_sprintf.l
o safe_mode.lo fopen_wrappers.lo alloca.lo php_ini.lo SAPI.lo rfc1867.lo 
php_content_types.lo str
lcpy.lo strlcat.lo mergesort.lo reentrancy.lo php_variables.lo php_ticks.lo streams.lo 
network.lo
 php_open_temporary_file.lo php_logos.lo
libtool: link: `main.lo' is not a valid libtool object
*** Error code 1

Stop.
---

i just did 

rm config.cache
./configure options
make clean
make

all that w/o the LDFLAGS, LIBS, and ENV variables are refreshed (no left-overs)

---

[2001-06-27 12:44:20] [EMAIL PROTECTED]
'rm config.cache ; ./configure with your options ; make clean ; make'

like i stated in my original post, i did start from scratch several times. i've also 
tried it without the LDFLAGS and LIBS flags. your suggestion didn't help:

i've gone to the extent of removing configure and starting from ./buildconf. that 
didn't help either. the strange thing is, if i also remove the sablot, iconv, and 
expat options from ./configure options then it builds fine as a cgi. 

---

[2001-06-27 09:04:38] [EMAIL PROTECTED]
And do not export those LIBS / LDFLAGS. The configure 
does it itself. 

---

[2001-06-27 09:03:16] [EMAIL PROTECTED]
'rm config.cache ; ./configure with your options ; make clean ; make'



---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.

Full Bug description available at: http://bugs.php.net/?id=11707


-- 
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 #11707 Updated: FILE.lo isn't a libtool type if built php as a cgi

2001-06-28 Thread tom

ID: 11707
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Compile Failure
Operating system: NetBSD/Alpha 1.5W-current
PHP Version: 4.0.6
Description: FILE.lo isn't a libtool type if built php as a cgi

i was wrong about the options sablot, iconv, and expat options. having those options 
or not, doesn't matter, still the same error with 

libtool: link: `main.lo' is not a valid libtool object
*** Error code 1


Previous Comments:
---

[2001-06-27 16:35:11] [EMAIL PROTECTED]
here is the exact error:

/bin/sh /home/staffs/t/tom/work/php/php4-current/php4/libtool --silent --mode=link gcc 
 -I. -I/ho
me/staffs/t/tom/work/php/php4-current/php4/main 
-I/home/staffs/t/tom/work/php/php4-current/php4/m
ain -I/home/staffs/t/tom/work/php/php4-current/php4 
-I/home/staffs/t/tom/work/php/php4-current/ph
p4/Zend -I/usr/local/include/freetype2/freetype -I/usr/pkg/include 
-I/usr/local/include/mysql -I/
usr/local/include -I/home/staffs/t/tom/work/php/php4-current/php4/TSRM  
-I/usr/pkg/include -g -O2
 -prefer-non-pic -static   -o libmain.la  main.lo internal_functions.lo snprintf.lo 
php_sprintf.l
o safe_mode.lo fopen_wrappers.lo alloca.lo php_ini.lo SAPI.lo rfc1867.lo 
php_content_types.lo str
lcpy.lo strlcat.lo mergesort.lo reentrancy.lo php_variables.lo php_ticks.lo streams.lo 
network.lo
 php_open_temporary_file.lo php_logos.lo
libtool: link: `main.lo' is not a valid libtool object
*** Error code 1

Stop.
---

i just did 

rm config.cache
./configure options
make clean
make

all that w/o the LDFLAGS, LIBS, and ENV variables are refreshed (no left-overs)

---

[2001-06-27 13:40:12] [EMAIL PROTECTED]
What version of PHP is this? Latest CVS? Or 4.0.6?


---

[2001-06-27 13:37:07] [EMAIL PROTECTED]
here is the exact error:

/bin/sh /home/staffs/t/tom/work/php/php4-current/php4/libtool --silent --mode=link gcc 
 -I. -I/ho
me/staffs/t/tom/work/php/php4-current/php4/main 
-I/home/staffs/t/tom/work/php/php4-current/php4/m
ain -I/home/staffs/t/tom/work/php/php4-current/php4 
-I/home/staffs/t/tom/work/php/php4-current/ph
p4/Zend -I/usr/local/include/freetype2/freetype -I/usr/pkg/include 
-I/usr/local/include/mysql -I/
usr/local/include -I/home/staffs/t/tom/work/php/php4-current/php4/TSRM  
-I/usr/pkg/include -g -O2
 -prefer-non-pic -static   -o libmain.la  main.lo internal_functions.lo snprintf.lo 
php_sprintf.l
o safe_mode.lo fopen_wrappers.lo alloca.lo php_ini.lo SAPI.lo rfc1867.lo 
php_content_types.lo str
lcpy.lo strlcat.lo mergesort.lo reentrancy.lo php_variables.lo php_ticks.lo streams.lo 
network.lo
 php_open_temporary_file.lo php_logos.lo
libtool: link: `main.lo' is not a valid libtool object
*** Error code 1

Stop.
---

i just did 

rm config.cache
./configure options
make clean
make

all that w/o the LDFLAGS, LIBS, and ENV variables are refreshed (no left-overs)

---

[2001-06-27 12:44:20] [EMAIL PROTECTED]
'rm config.cache ; ./configure with your options ; make clean ; make'

like i stated in my original post, i did start from scratch several times. i've also 
tried it without the LDFLAGS and LIBS flags. your suggestion didn't help:

i've gone to the extent of removing configure and starting from ./buildconf. that 
didn't help either. the strange thing is, if i also remove the sablot, iconv, and 
expat options from ./configure options then it builds fine as a cgi. 

---

[2001-06-27 09:04:38] [EMAIL PROTECTED]
And do not export those LIBS / LDFLAGS. The configure 
does it itself. 

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.

Full Bug description available at: http://bugs.php.net/?id=11707


-- 
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 #11756: Private, Protected variables in classes

2001-06-28 Thread alavoor

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.0.6
PHP Bug Type: Feature/Change Request
Bug description:  Private, Protected variables in classes

I have a good idea. It is extremely easy to implement private, protected variables in 
classes.

PHP can use the name mangling of variables to implement private variables in classes. 
This technique is used by python language.

What you do is - PHP will read the class and simply change the variable names to 
variablename_timestamp. Where timestamp is unique id got by time() function.

Classes need private, protected variables. What do you say??




-- 
Edit Bug report at: http://bugs.php.net/?id=11756edit=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 #11759: DOCUMENT_ROOT not available when using PHP with IIS5 (cgi Version)

2001-06-28 Thread blankart

From: [EMAIL PROTECTED]
Operating system: W2K
PHP version:  4.0.6
PHP Bug Type: Scripting Engine problem
Bug description:  DOCUMENT_ROOT not available when using PHP with IIS5 (cgi Version)

DOCUMENT_ROOT not available when using PHP with IIS5 (cgi Version). Works fine on 
Linux / Apache




-- 
Edit Bug report at: http://bugs.php.net/?id=11759edit=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 #9938 Updated: Incorrect documentation in Spanish Session handler fuctions

2001-06-28 Thread jeroen

ID: 9938
Updated by: jeroen
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Suspended
Bug Type: Documentation problem
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

I don't speak Spanish at all, but I'll revert the Spanish documentation for sessions 
when CVS is back up.

If a spanish translator wants to update it again, you can get the current version back 
from the repository.

Gracias por reportare.
(Your English is much better than my Spanish :)

Previous Comments:
---

[2001-03-23 13:10:41] [EMAIL PROTECTED]
I don't speak in English so good, so i go to the spanish
section of the session handling functions, and i had a
really big headache, because it was really incomplete and
wrong. By example, in the place it must to be
session.cookie_lifetime was just session.lifetime. I didn't
figure this out until when i'd try to change this value with
ini_set(session.lifetime) and i get errors, errors and
even more errors. There is more lost documentation in this
page. So please review this and I suggest you to use the
English original page instead the Spanish one, at least
until you had fixed this error. Once again, i am sorry about
my english, but i am trying to help. So I will write it in
Spanish too.

Yo hablo en Inglés, sino que en Español, por lo que me
dirigí a la seccion de Session Handling Functions, para
poder entender mejor estas funciones, pero lo que obtuve fue
un dolor de cabeza por varios días, puesto que estaba
incompleta e incorrecta, por ejemplo, en el lugar que
debiera decir session.cockie_lifetime sólo aparece
session_lifetime. No me di cuenta de esto hasta que después
de varios días de intentar cambiar este valor con
ini_set(session_lifetime) y obtener errores, errores y más
errores fui a la página en inglés y con sorpresa comprobe
este y otros errores. Les sugiero colocar la página original
en ingles en su lugar en forma momentaria, al menos hasta
que arreglen este error, tal y como lo han hecho con otras
páginas.
Desde ya muchas gracias, y perdonen mi mal inglés (please,
forgive me for my bad english).


---

[2001-03-22 14:26:13] [EMAIL PROTECTED]
I don't speak in English so good, so i go to the spanish
section of the session handling functions, and i had a
really big headache, because it was really incomplete and wrong.
By example, in the place it must to be
session.cookie_lifetime was just session.lifetime.
I didn't figure this out until when i'd try to change this
value with  ini_set(session.lifetime) and i get error,
error and even more error.
There is more lost documentation in this page. So please
review this and I suggest you to use the English original
page instead the Spanish one, at least until you had fixed
this error.
Once again, i am sorry about my english, but i am trying to
help.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9938edit=2


-- 
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 #11759 Updated: DOCUMENT_ROOT not available when using PHP with IIS5 (cgi Version)

2001-06-28 Thread blankart

ID: 11759
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Scripting Engine problem
Operating system: W2K
PHP Version: 4.0.6
Description: DOCUMENT_ROOT not available when using PHP with IIS5 (cgi Version)

? echo $DOCUMENT_ROOT; ? /P

Causes the following:

Warning: Undefined variable: DOCUMENT_ROOT in w:\inetpub\wwwroot\test1.php4 on line 13





Previous Comments:
---

[2001-06-27 19:37:15] [EMAIL PROTECTED]
DOCUMENT_ROOT not available when using PHP with IIS5 (cgi Version). Works fine on 
Linux / Apache



---


Full Bug description available at: http://bugs.php.net/?id=11759


-- 
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 #11760: VT_ARRAY not supported

2001-06-28 Thread heejung73

From: [EMAIL PROTECTED]
Operating system: Windows 2000
PHP version:  4.0.6
PHP Bug Type: COM related
Bug description:  VT_ARRAY not supported


hi, 

the following line of code 
  $vXXX = new VARIANT($XXX, VT_ARRAY|VT_BYREF);

results in
  Warning:  Type not supportet or not yet implemented

please let me know if this is a real bug or if i'm doing something wrong.  i hope i'm 
doing something wrong coz i really need this to work!

thanks...





-- 
Edit Bug report at: http://bugs.php.net/?id=11760edit=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 #11755: Can't pass array to COM obj

2001-06-28 Thread heejung73

From: [EMAIL PROTECTED]
Operating system: Windows 2000
PHP version:  4.0.6
PHP Bug Type: COM related
Bug description:  Can't pass array to COM obj

i can't pass an array to my com object. 

the object works fine w/ ASP: 
Dim X(10); 
Obj.X = X; 

when i try to do the same w/ PHP, i get the following errors (b.t.w., i have no 
problems passing scalar values): 

Warning: PropPut() failed: Exception occurred. in xxx.php on line 90 
or 
Warning: Unsupported variant type: 8204 (0x200C) in xxx.php on line 237 

i tried using VARIANT  that didn\'t seem to help... 

The interfaces in my idl file looks like this: 
[propput, id(32), helpstring(\property X\)] HRESULT X([in] VARIANT newVal); 
[propget, id(32), helpstring(\property X\)] HRESULT X([out, retval] VARIANT *pVal); 


any help or clue would be greatly appreciated. 

thanks! 




-- 
Edit Bug report at: http://bugs.php.net/?id=11755edit=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 #11757: Additional Comment to #11688 ImageTTFText ImageTTFBBox

2001-06-28 Thread edwin

From: [EMAIL PROTECTED]
Operating system: Win 98 SE
PHP version:  4.0.6
PHP Bug Type: GD related
Bug description:  Additional Comment to #11688 ImageTTFText ImageTTFBBox

I recognized the same problem on my machine, and I think it comes from the new GD-Lib 
2.0.

Replacing the php_gd.dll by the one delivered with 4.0.5 worked fine for me (but may 
bring back some old bugs ;-( ).




-- 
Edit Bug report at: http://bugs.php.net/?id=11757edit=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 #11756 Updated: Private, Protected variables in classes

2001-06-28 Thread alavoor

ID: 11756
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Operating system: Linux
PHP Version: 4.0.6
Description: Private, Protected variables in classes

for example:
class 
{
private:
var $myvar;
var $myvar2:
public:
var $myvar3;

function myfoo()
{
print the variable is :  . $myvar
}
}

will be converted on the fly by PHP interpreter to 
class
{
var $myvar_993679346;
var $myvar2_993679346:
var $myvar3;

function myfoo()
{
print the variable is :  . $myvar_993679346;
}
}

Note that 993679346 is the time stamp got by time(). PHP interpreter when it starts up 
will store this
timestamp value in a global var and use it throught to mangle all the private 
variables declared in
all the classes in all the files..


Previous Comments:
---

[2001-06-27 17:47:52] [EMAIL PROTECTED]
I have a good idea. It is extremely easy to implement private, protected variables in 
classes.

PHP can use the name mangling of variables to implement private variables in classes. 
This technique is used by python language.

What you do is - PHP will read the class and simply change the variable names to 
variablename_timestamp. Where timestamp is unique id got by time() function.

Classes need private, protected variables. What do you say??



---


Full Bug description available at: http://bugs.php.net/?id=11756


-- 
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 #11758: --with-apxs2 compile option failed with Apache 2.0.16

2001-06-28 Thread vlast

From: [EMAIL PROTECTED]
Operating system: RedHat 7.1
PHP version:  4.0.6
PHP Bug Type: Compile Problem
Bug description:  --with-apxs2 compile option failed with Apache 2.0.16



Making all in sapi
make[1]: Entering directory `/usr/local/src/php-4.0.6/sapi'
Making all in apache2filter
make[2]: Entering directory `/usr/local/src/php-4.0.6/sapi/apache2filter'
make[3]: Entering directory `/usr/local/src/php-4.0.6/sapi/apache2filter'
/bin/sh /usr/local/src/php-4.0.6/libtool --silent --mode=compile gcc  -I. 
-I/usr/local/src/php-4.0.6/sapi/apache2filter -I/usr/local/src/php-4.0.6/main 
-I/usr/local/src/php-4.0.6 -I/usr/local/apache2/include 
-I/usr/local/src/php-4.0.6/Zend -I/usr/local/src/php-4.0.6/ext/mysql/libmysql 
-I/usr/local/src/php-4.0.6/ext/xml/expat/xmltok 
-I/usr/local/src/php-4.0.6/ext/xml/expat/xmlparse -I/usr/local/src/php-4.0.6/TSRM  
-D_REENTRANT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -I../TSRM -DTHREAD=1 -g -O2 -pthread  
-c sapi_apache2.c
sapi_apache2.c: In function `php_input_filter':
sapi_apache2.c:248: too many arguments to function `ap_get_brigade'
sapi_apache2.c: In function `php_register_hook':
sapi_apache2.c:443: warning: passing arg 2 of `ap_register_input_filter' from 
incompatible pointer type
make[3]: *** [sapi_apache2.lo] Error 1
make[3]: Leaving directory `/usr/local/src/php-4.0.6/sapi/apache2filter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/php-4.0.6/sapi/apache2filter'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.0.6/sapi'
make: *** [all-recursive] Error 1


-- 
Edit Bug report at: http://bugs.php.net/?id=11758edit=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 #11676 Updated: A few apache children consume all memory and CPU.

2001-06-28 Thread valerio

ID: 11676
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Scripting Engine problem
Operating system: linux 2.4.5 i386
PHP Version: 4.0 Latest CVS (2001-06-25)
Description: A few apache children consume all memory and CPU.

Here it is:
CFLAGS=-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro 
-march=pentiumpro -fomit-frame-pointer -fno-exceptions \
./configure \
--with-apache=../apache_1.3.20 \
--with-mysql \
--disable-debug \
--with-gnu-ld \
--enable-memory-limit \
--enable-inline-optimization

I don't remember exactly, but i think i had tried removing ALL gcc optimization 
options, with the same results...
During another crash (pre-crash actually :) i managed to backtrace a httpd which had 
this stack:

#0  0x4012c238 in chunk_free ()
#1  0x4012bfaa in __cfree ()
#2  0x80fb8f2 in _efree ()

The other httpd i backtraced had all the stack like this:

#0  0x4012c23e in chunk_free ()
#1  0x4012bfaa in __cfree ()
#2  0x80fbcbf in shutdown_memory_manager ()

Hope this helps...

Previous Comments:
---

[2001-06-27 11:57:34] [EMAIL PROTECTED]
what was the configure line used to configure PHP ?


---

[2001-06-26 14:32:38] [EMAIL PROTECTED]
Ignore the last comment, wrong bug report :)

---

[2001-06-26 14:31:52] [EMAIL PROTECTED]
Output buffering indeed cannot be used inside output handler functions.  However, the 
code that handled that error situation contained a bug that caused PHP to enter an 
infinite loop.  This bug is now fixed (although the limitation of not being able to 
use output buffering inside output handlers still applies)

---

[2001-06-26 07:32:26] [EMAIL PROTECTED]
Well, the problem is that we have many virtual hosts on that server, each using it's 
own log file...
I can confirm that the gdb trace for ALL the many dead process, which are in running 
state, gives the three lines:
#0  0x4012c23e in chunk_free ()
#1  0x4012bfaa in __cfree ()
#2  0x80fbcbf in shutdown_memory_manager ()
(it happened this morning too)

Is there some way to know which script was executing just before the child died, 
please tell me! 

---

[2001-06-26 07:04:06] [EMAIL PROTECTED]
It would help a lot to track this down if you could find
out if this happens by running some script.


---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.

Full Bug description available at: http://bugs.php.net/?id=11676


-- 
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 #11749 Updated: Unserialize dies with Apache Module but is FINE with CGI

2001-06-28 Thread btanner

ID: 11749
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Scripting Engine problem
Operating system: Win32 (Win 2k)
PHP Version: 4.0.6
Description: Unserialize dies with Apache Module but is FINE with CGI

If it helps:

a)Script
b)Datafile

can be found in zip form at:

http://www.zaam.com/zend/bug11749.zip

Thanks for all your help on this guys.  

Previous Comments:
---

[2001-06-27 14:06:09] [EMAIL PROTECTED]
Bingo.. got it down to a reasonable amount of code.

I'll provide the code here (its still 65 lines).  I have kept the save method, 
although it is not used in this example.  Reason being is that I am loading an object 
that I previously saved, so its possible that the save method is the offender.

Here you go.  I'll also reply to this message in php-dev (if the list ever starts 
working) -- with the datafile attached.

--Code starts--
?
class Module_Variable{
var $Type;
var $Name;
var $Value;

function Module_Variable($Name,$Value,$Type=S){
$this-Name=$Name;
$this-Value=$Value;
$this-Type=$Type;  
}
} //end of module_variable class


class Module {
var $Variables;  // Array of Configuration Variables for this Module
var $Inclusions; // Array of Inclusions in case of newuser,deleteuser,etc,etc
var $Path;   // Path from Root to get to this module
var $Name;
var $Loaded; // Has this module been loaded, or not?


function Module($Name,$Path){
$this-Name=$Name;
$this-Path=$Path;
$this-Loaded=0;
$this-Variables=;
}

function Save(){
$ModCode=serialize($this);  

$FileLocation=__DATAPATH.mod_data/.$this-Name..mod;

$FilePointer=fopen($FileLocation,w);
$WriteCheck=fwrite($FilePointer,$ModCode);

if(!$WriteCheck)
die(Error writing output...);
fclose($FilePointer);   
}

function Load(){

$FileLocation=$this-Name..mod;

$FilePointer=@fopen($FileLocation,r);
if(!$FilePointer)
$this-HandleError($FileLocation);
$EncodedString=fread($FilePointer,filesize($FileLocation));
fclose($FilePointer);

$VarObject=unserialize($EncodedString);
$this-Variables=$VarObject-Variables;

$this-Loaded=1;
}   
}//end the class

$MyModule=new Module(login,);
$MyModule-Load();

print(hrBrGood so far);

?

---

[2001-06-27 13:11:08] [EMAIL PROTECTED]
Please include a short example of both script and the class
you get this with.


---

[2001-06-27 12:33:39] [EMAIL PROTECTED]
I've been running fine on CGI for a while now, jumping between 4.04, 4.07-dev, 4.05

When I tried to switch from 4.05 CGI to 4.05 4.05-Apache ... one of my files does not 
unserialize properly.  The error message is:

Warning: unserialize() failed at offset 487 of 2797 bytes in c:program filesapache 
groupapachehtdocsgt2librariesclassesmodule.class on line 189

If you guys know something about this, please let me know, as soon as possible.  In 
the mean time, I am going to make a script that saves a serialized object to disk.  I 
will save it to a file using CGI and then Apache modules.  Then, I will try to load em 
both using Apache and CGI modules... see what turns up.



---


Full Bug description available at: http://bugs.php.net/?id=11749


-- 
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 #11709 Updated: Call to undefined function: pdf_new()

2001-06-28 Thread william_moore

ID: 11709
User Update by: [EMAIL PROTECTED]
Status: Closed
Bug Type: *PDF functions
Operating system: Linux 2.2.16-22
PHP Version: 4.0.6
Description: Call to undefined function: pdf_new()

Thank you for the suggestions as they worked.

Previous Comments:
---

[2001-06-27 09:11:18] [EMAIL PROTECTED]
There is older PDFlib somewhere in /usr PHP looks for it (if you don't specify a path) 
in /usr (although the help says it's looking for it in /usr/local that is not correct)

Also, the --with-jpeg-dir and others don't accept 'shared' as parameter. Only a 
install prefix path. 

By specifying the install prefix path for --with-pdlib=/usr/local should fix this 
problem.
(delete config.cache before configure and do 'make clean' after)



---

[2001-06-27 08:43:00] [EMAIL PROTECTED]
The only mention in the phpinfo output about pdf is the configure command. If need be 
the phpinfo page I have up for this system is located at:
  http://moore.cc.umanitoba.ca/php/php.php

---

[2001-06-27 03:05:19] [EMAIL PROTECTED]
Does the output of phpinfo(); mention anything about PDF?

---

[2001-06-26 15:03:20] [EMAIL PROTECTED]
I have attempted to compile PDF support into PHP, yet when I use the script to build a 
PDF document with the face of a clock and the current time it fails immediately with 
the error
  Fatal error: Call to undefined function: pdf_new() in /var/www/html/php/pdf-test.php 
on line 6

The script I am using is from Example 2 on the page:
http://php.net/manual/en/ref.pdf.php

I am using:
  Apache 1.3.20
  PDFLIB 4.0.1  (installed in /usr/local/lib)
  PHP 4.0.6

The configure script I have used for PHP is:
./configure 
  --with-apxs=/usr/local/apache/bin/apxs 
  --disable-pear 
  --enable-libgcc 
  --enable-ftp 
  --with-yaz 
  --with-pdflib=shared 
  --with-tiff-dir=shared 
  --with-jpeg-dir=shared 
  --with-png-dir=shared 
  --with-zlib=shared 
  --with-gd=shared 
  --with-regex=system 
  --enable-yp 
  --enable-bcmath 
  --enable-c9x-inline 
  --enable-calendar 
  --enable-inline-optimization 
  --enable-trans-sid 
  --with-dom=shared 
  --with-mhash=shared 
  --with-config-file-path=/usr/local/apache/conf

Configure does not complain about missing any PDF support files.

The config.log file had the following lines regarding PDFlib support:configure:39416: 
checking whether to include PDFlib support
configure:39602: checking for PDF_show_boxed in -lpdf
configure:39623: gcc -o conftest -g -O2  -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT 
-DSUPPORT_UTF8  -Wl,-rpath,/usr/lib/gcc-lib/i386-redhat-linux/2.96 
-L/usr/lib/gcc-lib/i386-redhat-linux/2.96 conftest.c -lpdf 
-ltiff -ljpeg -lpng -lz
   -lgd -lcrypt -lresolv -lm -ldl -lnsl  -lresolv -lgcc 15

After this scipt failed with the PHP 4.0.6 source, I followed the directions in the 
PDFLIB source which suggests to copy their copy of ext/pdf into the PHP source tree 
and recompile PHP. This made no difference.

Any suggestions?



---


Full Bug description available at: http://bugs.php.net/?id=11709


-- 
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 #11733 Updated: Crash on For Loop

2001-06-28 Thread cynic

ID: 11733
Updated by: cynic
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: *Function Specific
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

besides, the $i == 5 statement is also bogus.

Previous Comments:
---

[2001-06-27 13:35:01] [EMAIL PROTECTED]
RTFM. Use $i=0. 


---

[2001-06-27 08:15:24] [EMAIL PROTECTED]
I can't get anything when I code:
for ($i == 0; $i == 5; $i++)
{
   echo $i;   
} 
But there's no problem with:
for ($i == 0; $i  5; $i++)
{
   echo $i;   
}


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11733edit=2


-- 
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 #10721 Updated: odd output in create_function()

2001-06-28 Thread justin

ID: 10721
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Scripting Engine problem
Operating system: GNU/Linux
PHP Version: 4.0.6
Description: odd output in create_function()

Any word on this?  Still exists in 4.0.6.


Previous Comments:
---

[2001-05-07 23:10:15] [EMAIL PROTECTED]
An odd character seems to appear in the return value of
create_function() (which should be of 'lambda_x' format
where x is an integer).  This character is causing eval() to
crap out when trying to evaluate the created function.  Just
before the 'l' is a character that looks like Pi in the
browser.  The only way I knew to find out what it was was to
urlencode() the return value and the strange character was
encoded to '%00'.  I'm no C coder, but the changes below
seemed to fix things.  

*** /tmp/zend_builtin_functions.c   Mon May  7 22:09:45 2001
--- /usr/local/src/php-4.0.5/Zend/zend_builtin_functions.c  Mon May  7 22:03:31 
2001
***
*** 965,974 
}
function_add_ref(func);
  
!   function_name = (char *)
emalloc(sizeof(0lambda_)+MAX_LENGTH_OF_LONG);
  
do {
!   
sprintf(function_name, %clambda_%d, 0, ++EG(lambda_count));

function_name_length = strlen(function_name+1)+1;
} while (zend_hash_add(EG(function_table), function_name,
function_name_length+1, func, sizeof(zend_function),
NULL)==FAILURE);
zend_hash_del(EG(function_table), LAMBDA_TEMP_FUNCNAME,
sizeof(LAMBDA_TEMP_FUNCNAME));
--- 965,974 
}
function_add_ref(func);
  
!   function_name = (char *)
emalloc(sizeof(lambda_)+MAX_LENGTH_OF_LONG);
  
do {
!   
sprintf(function_name, lambda_%d, ++EG(lambda_count));

function_name_length = strlen(function_name+1)+1;
} while (zend_hash_add(EG(function_table), function_name,
function_name_length+1, func, sizeof(zend_function),
NULL)==FAILURE);
zend_hash_del(EG(function_table), LAMBDA_TEMP_FUNCNAME,
sizeof(LAMBDA_TEMP_FUNCNAME));


---


Full Bug description available at: http://bugs.php.net/?id=10721


-- 
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 #11754: exec() function not working in Win32

2001-06-28 Thread stephen

From: [EMAIL PROTECTED]
Operating system: Win32 (2000)
PHP version:  4.0.6
PHP Bug Type: Apache related
Bug description:  exec() function not working in Win32

- Standard Win32 PHP install
- Apache 1.3.20, Win32
- PHP running as a module
- Unix Tools running on Win32 platform

DEMO SCRIPT:

?

if ($query !=  || $query != NULL) {
$do_time = time();
$test = $do_time..txt;
exec(egrep -i $query c:/Apache/logs/access.log  
c:/Apache/htdocs/output/$test);
@$data=fopen(c:/Apache/htdocs/output/$test, r);
if (!@$data=fopen(c:/Apache/htdocs/output/$test, r)) {

echo(font class=\larger\There May Have Been An Error With Your 
Query As No Output File Was Generated.br);
echo(Please Check The Syntax Of Your Query./font);
} else {
$file=fpassthru($data);
}
} else {
echo(font class=\larger\There Was No Query To Analyze.br);
echo(Please Re-Enter Your Query./font);
}

exec(c:/Apache/htdocs/del.bat c:\Apache\htdocs\output\$test);

?


-- 
Edit Bug report at: http://bugs.php.net/?id=11754edit=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 #11725 Updated: Bitwise operators seems buggy

2001-06-28 Thread Pascal . Dufour

ID: 11725
User Update by: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Math related
Operating system: Linux 2.2
PHP Version: 4.0.6
Description: Bitwise operators seems buggy

I suppose you make ref to this:

[2000-11-23 07:41:55] [EMAIL PROTECTED]
  Still not working, possibly won't for some time - since PHP
   numbers are 32-bits signed, so they don't work well as
   32-bit unsigned.
[2000-12-12 05:56:20] [EMAIL PROTECTED]
   I suspend this bug since PHP has no good solution for it in
  the foreseeable future. Please use GMP functions for this.
[2001-05-13 05:33:17] [EMAIL PROTECTED]
  This is not a bug, so closing.

Is there any way to work with unsigned number ?
The goal is to do things like this (in a clean way):

$timestamp = time();
$buf .= chr(($timestamp  0xff00)  24);
$buf .= chr(($timestamp  0xff)  16);
$buf .= chr(($timestamp  0xff00)  8);
$buf .= chr($timestamp  0xff);

then compute some hash...

Do you intend to provide such a 'feature' in a future release of PHP.
I understand you do not consider this to be a 'bug', since this is part
of the design of PHP. 
But, at least it is a missing 'feature'. When one work with hex numbers 
he does no want to handle the sign (in most cases) because the goal is 
to work at the bit level and not at the 'number' level.


Previous Comments:
---

[2001-06-27 12:25:27] [EMAIL PROTECTED]
See bug #7755  for reason why this is not bug.


---

[2001-06-27 04:16:00] [EMAIL PROTECTED]

I have a problem with bitwise operator:
The following script:

?
printf(%08x (should be 05CDEA00)BR, (0x05CDEA00  0x));
printf(%08x (should be )BR, (0x05CDEA00 | 0x));
?

displays:

 (should be 05CDEA00)
-7a321600 (should be )

It seems that the bitwise 'and' does not work at all, it always returns 0.
I do no understant the result of the bitwise 'or', and why it is displayed prefixed by 
a minus sign.

I have read the documentation and I think these are bugs...
I hope I have not misunderstood the doc.

Pascal.


---


Full Bug description available at: http://bugs.php.net/?id=11725


-- 
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 #11761: LC_CTYPE undeclared

2001-06-28 Thread unix-guy

From: [EMAIL PROTECTED]
Operating system: HP-UX 11.00
PHP version:  4.0.6
PHP Bug Type: Compile Failure
Bug description:  LC_CTYPE undeclared

Compile with either that static or DSO method fails on HP-UX 11.00.

Config command (from static):

./configure --prefix=/opt/php4 --with-apache=../apache_1.3.19 --disable-debug 
--enable-inline-optimization --with-exec-dir=/opt/php4/bin --with-d
bm --enable-debugger --enable-magic-quotes --enable-safe-mode --enable-sockets 
--enable-track-vars --enable-yp --enable-ftp --without-mysql --without-oracle 
--without-oci8

End of make output:

gcc  -I. -I/tmp/php-4.0.6/ext/pcre -I/tmp/php-4.0.6/main -I/tmp/php-4.0.6 
-I/tmp/apache_1.3.19/src/include -I/tmp/apache_1.3.19/src/os/unix 
-I/tmp/php-4.0.6/Zend -I/tmp/php-4.0.6/ext/xml/expat/xmltok 
-I/tmp/php-4.0.6/ext/xml/expat/xmlparse -I/tmp/php-4.0.6/TSRM  -DSUPPORT_UTF8 
-DXML_BYTE_ORDER=21 -g -O2  -c php_pcre.c  touch php_pcre.lo
In file included from /tmp/php-4.0.6/Zend/../main/php_config.h:1931,
 from /tmp/php-4.0.6/Zend/zend_config.h:1,
 from /tmp/php-4.0.6/Zend/zend.h:44,
 from /tmp/php-4.0.6/main/php.h:34,
 from php_pcre.c:25:
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/string.h:26: warning: 
`__va__list' redefined
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdio.h:30: warning: this is 
the location of the previous definition
php_pcre.c: In function `pcre_get_compiled_regex':
php_pcre.c:158: `LC_CTYPE' undeclared (first use in this function)
php_pcre.c:158: (Each undeclared identifier is reported only once
php_pcre.c:158: for each function it appears in.)
php_pcre.c:158: warning: initialization makes pointer from integer without a cast
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

Tried with LANG=C and LANG undefined - no difference...


-- 
Edit Bug report at: http://bugs.php.net/?id=11761edit=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] PHP Bug Type: Strings related ???

2001-06-28 Thread Guido Laubner


From: [EMAIL PROTECTED]
Operating system: Solaris 8 / Intel
PHP version: 4.0.4pl1
PHP Bug Type: Strings related
Bug description: Backslash parameter passing in Forms

Here's instructions on how to reproduce :

1. Create a php-file with this content :
HTML BODY ?php print( $p ); ? /BODY /HTML
and call it whatever you want (eg. blah.php)

2. Next call the URL eg. http://server/blah.php?p=/
2a. Same with http://server/blah.php?p=%5c
The apache access_log shows the very same url one typed into netscape or
explorer, so this looks fine to me.

3. Look at the output page. It'll show 2 (in words : two) backslashes
Why is this ? How do i pass just one backslash ?

Thanks a lot
Cheers
Guido 

Sorry, the web page reported a bug in /local/Web/sites/phpweb/bugs.php on
line 419
and said : Sorry, mail not sent! and asked me to send this mail manually.
+=+
| Guido Laubner   Phone : +49 6102 7786 618   |
| Morse Computers Fax   : +49 6102 7786 666   |
| Martin-Behaim-Strasse 19-21 Email : [EMAIL PROTECTED] |
| 63263 Neu-Isenburg  WEB   : http://www.morse.com|
+=+



-- 
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 #11758 Updated: --with-apxs2 compile option failed with Apache 2.0.16

2001-06-28 Thread sniper

ID: 11758
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Compile Problem
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

As you propably know, Apache2 is still under development.
And so is the Apache2 SAPI in PHP. So you need to get 
both from CVS to get it work.


Previous Comments:
---

[2001-06-27 18:07:43] [EMAIL PROTECTED]


Making all in sapi
make[1]: Entering directory `/usr/local/src/php-4.0.6/sapi'
Making all in apache2filter
make[2]: Entering directory `/usr/local/src/php-4.0.6/sapi/apache2filter'
make[3]: Entering directory `/usr/local/src/php-4.0.6/sapi/apache2filter'
/bin/sh /usr/local/src/php-4.0.6/libtool --silent --mode=compile gcc  -I. 
-I/usr/local/src/php-4.0.6/sapi/apache2filter -I/usr/local/src/php-4.0.6/main 
-I/usr/local/src/php-4.0.6 -I/usr/local/apache2/include 
-I/usr/local/src/php-4.0.6/Zend -I/usr/local/src/php-4.0.6/ext/mysql/libmysql 
-I/usr/local/src/php-4.0.6/ext/xml/expat/xmltok 
-I/usr/local/src/php-4.0.6/ext/xml/expat/xmlparse -I/usr/local/src/php-4.0.6/TSRM  
-D_REENTRANT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -I../TSRM -DTHREAD=1 -g -O2 -pthread  
-c sapi_apache2.c
sapi_apache2.c: In function `php_input_filter':
sapi_apache2.c:248: too many arguments to function `ap_get_brigade'
sapi_apache2.c: In function `php_register_hook':
sapi_apache2.c:443: warning: passing arg 2 of `ap_register_input_filter' from 
incompatible pointer type
make[3]: *** [sapi_apache2.lo] Error 1
make[3]: Leaving directory `/usr/local/src/php-4.0.6/sapi/apache2filter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/php-4.0.6/sapi/apache2filter'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.0.6/sapi'
make: *** [all-recursive] Error 1

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11758edit=2


-- 
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 #11757 Updated: Additional Comment to #11688 ImageTTFText ImageTTFBBox

2001-06-28 Thread sniper

ID: 11757
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: GD related
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

Duplicate of #11688


Previous Comments:
---

[2001-06-27 17:58:15] [EMAIL PROTECTED]
I recognized the same problem on my machine, and I think it comes from the new GD-Lib 
2.0.

Replacing the php_gd.dll by the one delivered with 4.0.5 worked fine for me (but may 
bring back some old bugs ;-( ).



---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11757edit=2


-- 
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 #11707 Updated: FILE.lo isn't a libtool type if built php as a cgi

2001-06-28 Thread sniper

ID: 11707
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Compile Failure
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

Again, does this happen with the latest CVS or with PHP 4.0.6? 

--Jani


Previous Comments:
---

[2001-06-27 16:38:17] [EMAIL PROTECTED]
i was wrong about the options sablot, iconv, and expat options. having those options 
or not, doesn't matter, still the same error with 

libtool: link: `main.lo' is not a valid libtool object
*** Error code 1


---

[2001-06-27 16:35:11] [EMAIL PROTECTED]
here is the exact error:

/bin/sh /home/staffs/t/tom/work/php/php4-current/php4/libtool --silent --mode=link gcc 
 -I. -I/ho
me/staffs/t/tom/work/php/php4-current/php4/main 
-I/home/staffs/t/tom/work/php/php4-current/php4/m
ain -I/home/staffs/t/tom/work/php/php4-current/php4 
-I/home/staffs/t/tom/work/php/php4-current/ph
p4/Zend -I/usr/local/include/freetype2/freetype -I/usr/pkg/include 
-I/usr/local/include/mysql -I/
usr/local/include -I/home/staffs/t/tom/work/php/php4-current/php4/TSRM  
-I/usr/pkg/include -g -O2
 -prefer-non-pic -static   -o libmain.la  main.lo internal_functions.lo snprintf.lo 
php_sprintf.l
o safe_mode.lo fopen_wrappers.lo alloca.lo php_ini.lo SAPI.lo rfc1867.lo 
php_content_types.lo str
lcpy.lo strlcat.lo mergesort.lo reentrancy.lo php_variables.lo php_ticks.lo streams.lo 
network.lo
 php_open_temporary_file.lo php_logos.lo
libtool: link: `main.lo' is not a valid libtool object
*** Error code 1

Stop.
---

i just did 

rm config.cache
./configure options
make clean
make

all that w/o the LDFLAGS, LIBS, and ENV variables are refreshed (no left-overs)

---

[2001-06-27 13:40:12] [EMAIL PROTECTED]
What version of PHP is this? Latest CVS? Or 4.0.6?


---

[2001-06-27 13:37:07] [EMAIL PROTECTED]
here is the exact error:

/bin/sh /home/staffs/t/tom/work/php/php4-current/php4/libtool --silent --mode=link gcc 
 -I. -I/ho
me/staffs/t/tom/work/php/php4-current/php4/main 
-I/home/staffs/t/tom/work/php/php4-current/php4/m
ain -I/home/staffs/t/tom/work/php/php4-current/php4 
-I/home/staffs/t/tom/work/php/php4-current/ph
p4/Zend -I/usr/local/include/freetype2/freetype -I/usr/pkg/include 
-I/usr/local/include/mysql -I/
usr/local/include -I/home/staffs/t/tom/work/php/php4-current/php4/TSRM  
-I/usr/pkg/include -g -O2
 -prefer-non-pic -static   -o libmain.la  main.lo internal_functions.lo snprintf.lo 
php_sprintf.l
o safe_mode.lo fopen_wrappers.lo alloca.lo php_ini.lo SAPI.lo rfc1867.lo 
php_content_types.lo str
lcpy.lo strlcat.lo mergesort.lo reentrancy.lo php_variables.lo php_ticks.lo streams.lo 
network.lo
 php_open_temporary_file.lo php_logos.lo
libtool: link: `main.lo' is not a valid libtool object
*** Error code 1

Stop.
---

i just did 

rm config.cache
./configure options
make clean
make

all that w/o the LDFLAGS, LIBS, and ENV variables are refreshed (no left-overs)

---

[2001-06-27 12:44:20] [EMAIL PROTECTED]
'rm config.cache ; ./configure with your options ; make clean ; make'

like i stated in my original post, i did start from scratch several times. i've also 
tried it without the LDFLAGS and LIBS flags. your suggestion didn't help:

i've gone to the extent of removing configure and starting from ./buildconf. that 
didn't help either. the strange thing is, if i also remove the sablot, iconv, and 
expat options from ./configure options then it builds fine as a cgi. 

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11707edit=2


-- 
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 #11754 Updated: exec() function not working in Win32

2001-06-28 Thread sniper

ID: 11754
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Apache related
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

So which exec() in your script doesn't work?
Please make it short as possible.


Previous Comments:
---

[2001-06-27 15:02:28] [EMAIL PROTECTED]
- Standard Win32 PHP install
- Apache 1.3.20, Win32
- PHP running as a module
- Unix Tools running on Win32 platform

DEMO SCRIPT:

?

if ($query !=  || $query != NULL) {
$do_time = time();
$test = $do_time..txt;
exec(egrep -i $query c:/Apache/logs/access.log  
c:/Apache/htdocs/output/$test);
@$data=fopen(c:/Apache/htdocs/output/$test, r);
if (!@$data=fopen(c:/Apache/htdocs/output/$test, r)) {

echo(font class=largerThere May Have Been An Error With Your 
Query As No Output File Was Generated.br);
echo(Please Check The Syntax Of Your Query./font);
} else {
$file=fpassthru($data);
}
} else {
echo(font class=largerThere Was No Query To Analyze.br);
echo(Please Re-Enter Your Query./font);
}

exec(c:/Apache/htdocs/del.bat c:Apachehtdocsoutput$test);

?

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11754edit=2


-- 
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 #11754 Updated: exec() function not working in Win32

2001-06-28 Thread sniper

ID: 11754
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Old-Bug Type: Apache related
Bug Type: Program Execution
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:



Previous Comments:
---

[2001-06-27 15:02:28] [EMAIL PROTECTED]
- Standard Win32 PHP install
- Apache 1.3.20, Win32
- PHP running as a module
- Unix Tools running on Win32 platform

DEMO SCRIPT:

?

if ($query !=  || $query != NULL) {
$do_time = time();
$test = $do_time..txt;
exec(egrep -i $query c:/Apache/logs/access.log  
c:/Apache/htdocs/output/$test);
@$data=fopen(c:/Apache/htdocs/output/$test, r);
if (!@$data=fopen(c:/Apache/htdocs/output/$test, r)) {

echo(font class=largerThere May Have Been An Error With Your 
Query As No Output File Was Generated.br);
echo(Please Check The Syntax Of Your Query./font);
} else {
$file=fpassthru($data);
}
} else {
echo(font class=largerThere Was No Query To Analyze.br);
echo(Please Re-Enter Your Query./font);
}

exec(c:/Apache/htdocs/del.bat c:Apachehtdocsoutput$test);

?

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11754edit=2


-- 
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 #11722 Updated: unable to fork with system command

2001-06-28 Thread sniper

ID: 11722
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Program Execution
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

You have a time machine? Can you give me a copy of PHP 4.1?  :)

I assume you meant PHP 4.0.1? 
system() works for me just fine with PHP 4.0.6.
Are you sure you have installed PHP correctly?
Is it run as CGI or as Apache module?



Previous Comments:
---

[2001-06-27 03:23:09] [EMAIL PROTECTED]
I am running a appache 1.3 webserver with PHP 4.1

wen i use the command: system('md xxx');
everything works fine

now i have installed php4.6 and i get the message 
unable to fork wenn i run the same script.
what am i doing wrong?
Do i need to start the process in background with an other program??? 

Many thanks in advance.
PHP is perfect.

Erik

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11722edit=2


-- 
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 #11701 Updated: strtoupper does not works well with ç , ã ...

2001-06-28 Thread sniper

ID: 11701
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: *Languages/Translation
Operating system: 
PHP Version: 4.0.4
Assigned To: 
Comments:

I just tried this script with PHP 4.0.6:

? echo strtoupper(çãáéíóúüõê); ?

And it worked as it should..could you please try to
upgrade? And if it still doesn't work, reopen this bug report. Otherwise considered 
fixed.

--Jani


Previous Comments:
---

[2001-06-26 11:10:33] [EMAIL PROTECTED]
The function strtoupper() does not make the conversion to upper for the portuguese 
language characters such as: ç to Ç , ã to à , á to Á , é to É ,  í to Í , ó to Ó , ú 
to Ú , ü to Ü , õ to Õ , ê to Ê

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11701edit=2


-- 
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 #8548 Updated: PHP ISAPI ends with Internal Server Error

2001-06-28 Thread sniper

ID: 8548
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: IIS related
Operating system: 
PHP Version: 4.0.4
Assigned To: 
Comments:

No feedback. And most likely user error.


Previous Comments:
---

[2001-06-09 23:58:07] [EMAIL PROTECTED]
sounds like stale dll's lying about possibly please clean any php related dll's (in 
the WINNT and system32 folders too) and try installing fresh.

- James

---

[2001-01-13 10:24:10] [EMAIL PROTECTED]
user feedback:

we are not using MS Visual Studio. But I found something new:

when I install 4.04 and replace the isapi.dll with the one from 4.03pl1 everything is 
fine. So the bug must be somehere in there.


---

[2001-01-08 16:15:07] [EMAIL PROTECTED]
do you by any chance have MS Visual Studio installed on that computer? If so, could 
you compile debug version of 4.0.4, and send a backtrace? (you can get it in the MS 
debugger under View - Debug Windows - Call Stack or by hitting ALT + 7)

win32 build instructions can be found at http://www.php.net/version4/win32build.php, 
ignore the notes on BCmath, it's not necessary to copy the files anymore.

---

[2001-01-04 08:01:50] [EMAIL PROTECTED]
I installed PHP 4.04 on W2K Server (GERMAN) with SP1. As soon as you try to execute a 
PHP Script (even the simplest possible echo HELLO) you receive INTERNAL SERVER 
ERROR.

We had to switch back to 4.03PL1.



---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=8548edit=2


-- 
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 #8711 Updated: When I call the the ImageTTFText Function I receive a Segmentation Fault

2001-06-28 Thread sniper

ID: 8711
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: GD related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

No feedback. Can't reproduce.


Previous Comments:
---

[2001-06-03 06:59:38] [EMAIL PROTECTED]
Please try the latest release candidate:

http://www.php.net/~andi/php-4.0.6RC2.tar.gz

Also, add a FULL example script which can be just copy/pasted and run to reproduce 
this. 
Also a GDB backtrace would be useful. Here are intructions
how to generate one:

http://www.php.net/bugs-generating-backtrace.php

--Jani


---

[2001-01-15 09:12:27] [EMAIL PROTECTED]
  Header(Content-type: image/gif); 
   $dims=ImageTTFBBox($size,0,$fontname,$text);
   $w=$dims[4]+$dims[6];
   $h=-($dims[5]+$dims[3]);
   $im = imagecreate($w,$h);
   $bg = splitColor($background);
   $fg = splitColor($color);
   $back= ImageColorAllocate($im, $bg[0],$bg[1],$bg[2]);
   $fore= ImageColorAllocate($im, $fg[0],$fg[1],$fg[2]);
   ImageFilledRectangle($im,0,0,$w,$h,$back);
   ImageTTFText($im, $size, 0, -1 ,$h-2 , $fore, $fontname, $text);
   ImageGif($im);
   ImageDestroy($im); 


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=8711edit=2


-- 
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 #11762: bad example

2001-06-28 Thread Xuefer

From: [EMAIL PROTECTED]
Operating system: win2k
PHP version:  4.0.5
PHP Bug Type: Documentation problem
Bug description:  bad example

PHP manual
getdate
(PHP 3, PHP 4 )

getdate -- Get date/time information
Description

array getdate ([int timestamp])


Example 1. getdate() example 

$today = getdate(); 
$month = $today[month]; 
$mday = $today[mday]; 
$year = $today[year]; 
echo $month $mday, $year;
  
 
---
- $mday = $today[mday]; 
warnning: Use of undefined constant mday - assumed 'mday'
although a undefined constant will be assumed as a string, it's still a bad usage of 
this auto conversion.

php manual writers shouldn't make a bad guide for php learners

thx


-- 
Edit Bug report at: http://bugs.php.net/?id=11762edit=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 #9687 Updated: x-httpd-source fails with zero length

2001-06-28 Thread sniper

ID: 9687
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: PHP options/info functions
Operating system: 
PHP Version: 4.0 Latest CVS (11/03/2001)
Assigned To: 
Comments:

No feedback, works for me fine with 4.0.5 - 4.0.7-dev



Previous Comments:
---

[2001-06-05 02:35:41] [EMAIL PROTECTED]
Does this work with PHP 4.0.6RC2:

http://www.php.net/~andi/php-4.0.6RC2.tar.gz

--Jani


---

[2001-03-14 15:33:18] [EMAIL PROTECTED]
Try changing the httpd.conf directives to:

AddType application/x-httpd-php .php .inc
AddType application/x-httpd-php-source .phps .incs

--Jani

p.s. Fancy coloring works for me just fine..
I guess you know that you have to copy (or link) the
original file to that extension to get it colored?





---

[2001-03-14 13:44:18] [EMAIL PROTECTED]
I must be missing something, but it would seem your 
suggestion/solution is to symlink all my files for which I 
want to see coloring to different file extensions to see 
their source.

For curiosity's sake, I tried this, but it as well didn't 
work.

The issue is not mistaken file extension association, or 
misspelled directives, so I can only assume it's either 
related to Apache when it tries to retrieve the data from 
PHP after an application/x-httpd-php-source directive, or 
related to the application/x-httpd-php-source directive 
handler in PHP itself. Either way, I'd like to track it 
down. What should I do?

---

[2001-03-11 17:22:19] [EMAIL PROTECTED]
For a while, I have been experiencing an irksome problem since about 4.0.4, but I 
can't pinpoint when exactly it started.

On RedHat 7.0, I have the following webserver running:

Apache/1.3.19 (Unix) PHP/4.0.5-dev mod_ssl/2.8.1 OpenSSL/0.9.5a

on a 500 Mhz P3 with 240 MB of RAM.

The PHP DSO module is built from the CVS pull from about 12pm PDT today (3/11/2001).

Anyway, whenever I try to access a pretty colored source code version of any of my 
files via .phps (where .phps is one of the extensions setup as an 
application/x-httpd-source type), I get a zero data message from my browser.

The physical configruation line shows:

AddType application/x-httpd-php-source .phps .inc

I compiled PHP as a CGI version to see if it was an Apache issue, and the same thing 
happens.

The Apache child processes aren't dying, either. And the logs show a content legth of 
0 and a successful request, so i don't have any idea what's really going on.

I'm willing to assist anyone in determining the cause of the problem, but I haven't 
seen it listed anywhere else.

I have the following PHP configuration:

'./configure' '--with-apxs=/opt/apache/sbin/apxs' '--enable-track-vars' 
'--enable-inline-optimizations' '--enable-trans-sid' '--with-mysql' 
'--with-pgsql=/usr/local/pgsql' '--with-curl=/usr/local/curl' '--with-gd' 
'--with-t1lib-dir=/usr/local/t1lib' '--with-ttf' '--enable-pcre' 
'--with-bz2=/usr/local/bzip2' '--with-zlib' '--with-zlib-dir=/usr' '--enable-wddx' 
'--with-dom=/usr/local/libxml'

Any help or pointers to provide more help is welcome.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9687edit=2


-- 
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 #10290 Updated: magic_quotes_runtime setting varies at random

2001-06-28 Thread sniper

ID: 10290
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: PHP options/info functions
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

No feedback and can't reproduce.



Previous Comments:
---

[2001-06-05 03:05:07] [EMAIL PROTECTED]
I can't reproduce this with PHP 4.0.6RC2. Please try
it from:

http://www.php.net/~andi/php-4.0.6RC2.tar.gz


--Jani


---

[2001-04-11 12:14:00] [EMAIL PROTECTED]
magic_quotes_runtime (set in php.ini to off) seems to vary at random.

See http://www.sciocommunity.com/magic.php for an example. Hit reload several times; 
you should see the magic_quotes_runtime setting changing at random between 0 and 1.

See http://www.sciocommunity.com/magic.phps for the source. 

See http://www.sciocommunity.com/phpinfo.php for phpinfo() output.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10290edit=2


-- 
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 #11337 Updated: SEGV when using mysql connections in OO-setting

2001-06-28 Thread sniper

ID: 11337
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Scripting Engine problem
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Does this happen with PHP 4.0.6 ?


Previous Comments:
---

[2001-06-08 14:14:13] [EMAIL PROTECTED]
Please try latest RC from:

http://www.php.net/~andi/php-4.0.6RC3.tar.gz

--Jani


---

[2001-06-07 16:04:48] [EMAIL PROTECTED]
The following is the gdb backtrace of the crash (which I can reproduce every time i 
click the 'reload' button in my browser).
I'd be happy to send the scripts to you (there are several of them that work together, 
since each object is in it's own script file).
I have been having some other strange problems like trying to free mysql result 
resources or close mysql connections and getting warnings that those link or resource 
id's are not valid.

Here's the vital statistics:
OS: RedHat i386 Linux 7.1 with all updates applied from RedHat
MySQL: 3.23.38-1 (RPM from mysql.com)
Apache: 1.3.20, compiled locally (--enable-module=so)
PHP: 4.0.5 compiled/linked against mysql and apache as a DSO (--with-apxs=... 
--with-xml --with-mysql)
I'm using a standard configuration file with one change: the 'include_path' has been 
set to include the scripts necessary for my application. There are no path conflicts 
(that is, the file X.php does not exist relative to the executing script AS WELL AS in 
the include_path).

Thank you for your time.

-chris
(Chris Schultz)

Stack Trace:
(gdb) run -X
Starting program: /usr/local/apache-1.3.20/bin/./httpd -X

Program received signal SIGSEGV, Segmentation fault.
0x400f7d89 in __libc_free (mem=0x813c848) at malloc.c:3055
3055malloc.c: No such file or directory.
in malloc.c
(gdb) bt
#0  0x400f7d89 in __libc_free (mem=0x813c848) at malloc.c:3055
#1  0x401ccf64 in _efree (ptr=0x813c854) at zend_alloc.c:238
#2  0x401cd447 in shutdown_memory_manager (silent=1, clean_cache=0)
at zend_alloc.c:439
#3  0x401f525a in php_request_shutdown (dummy=0x0) at main.c:680
#4  0x401f2df9 in php_apache_request_shutdown (dummy=0x0) at mod_php4.c:290
#5  0x080676b8 in run_cleanups () at eval.c:41
#6  0x08065f82 in ap_clear_pool () at eval.c:41
#7  0x08066002 in ap_destroy_pool () at eval.c:41
#8  0x08065f6e in ap_clear_pool () at eval.c:41
#9  0x080756c5 in child_main () at eval.c:41
#10 0x08075cb8 in make_child () at eval.c:41
#11 0x08075e2c in startup_children () at eval.c:41
#12 0x0807647f in standalone_main () at eval.c:41
#13 0x08076ca7 in main () at eval.c:41
#14 0x40094177 in __libc_start_main (main=0x8076908 main, argc=2, 
ubp_av=0xbacc, init=0x804ed5c _init, fini=0x80abb90 _fini, 
rtld_fini=0x4000e184 _dl_fini, stack_end=0xbabc)
at ../sysdeps/generic/libc-start.c:129
(gdb) 

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11337edit=2


-- 
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 #11444 Updated: PHP puts heavy load on apaches httpd

2001-06-28 Thread sniper

ID: 11444
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: Performance problem
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

There has been some memory issues solved in PHP 4.0.6.
Please try it out and reopen if this still happens.


Previous Comments:
---

[2001-06-12 18:51:13] [EMAIL PROTECTED]
So what is the real problem? Does the machine really get 
slow and sluggish? Any errors? Out of memory?
Just one listing of one millisecond situation doesn't
tell ANYTHING. 

And what were the configure options used? Is PHP compiled
into Apache as DSO or static module?


--Jani


---

[2001-06-12 16:40:07] [EMAIL PROTECTED]
I had php-4.0.4pl1 on one of my Solaris machines (SPARC), and was programing on my 
personal workstation (Solaris 8 on SPARC both) on PHP-4.0.6-dev (downloaded 2 days 
after the branch changed from 5 to 6) and PHP worked great with apache.

When I had to pass the programs I had on my workstation, I said, lets update PHP to 
the 4.0.5 version, so there are no problems.

The problems appeared. When I started entering pages on the server where there php 
scripts the load started growing. These are some outputs that I have after executing 
these scripts:

root@ultra31 /space/pruebas # w
  5:30pm  up 75 day(s), 23:32,  2 users,  load average: 6.29, 5.13, 4.71
User tty   login@  idle   JCPU   PCPU  what
root pts/0 4:24pm17:22 bash
postgres pts/3 4:53pm37-bash
root@ultra31 /space/pruebas # ps -ef -o pid,ppid,pcpu,pmem,ruser,comm | grep http
18344 18322  0.4  1.9   nobody /usr/local/apache/bin/httpd
18343 18322  0.0  1.1   nobody /usr/local/apache/bin/httpd
18342 18322 18.9  1.9   nobody /usr/local/apache/bin/httpd
18494 18322  0.1  1.5   nobody /usr/local/apache/bin/httpd
18324 18322  9.9  1.9   nobody /usr/local/apache/bin/httpd
 5260 18322  0.1  0.9   nobody /usr/local/apache/bin/httpd
18326 18322  8.0  1.9   nobody /usr/local/apache/bin/httpd
18322 1  0.0  1.6 root /usr/local/apache/bin/httpd
18327 18322  0.4  1.9   nobody /usr/local/apache/bin/httpd
18323 18322  0.1  1.9   nobody /usr/local/apache/bin/httpd
18325 18322 18.6  1.9   nobody /usr/local/apache/bin/httpd
root@ultra31 /space/pruebas #

This also happened with a page that only has the phpinfo() function.

Saludos... :-)

Martin

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11444edit=2


-- 
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 #11763: odbc_exec() throws ISE 500 error

2001-06-28 Thread lustig

From: [EMAIL PROTECTED]
Operating system: Windows 98 SE
PHP version:  4.0.6
PHP Bug Type: ODBC related
Bug description:  odbc_exec() throws ISE 500 error

I have a bug... I have a function (of which the following code is from) which pulls 
data from a remote MS SQL database through ODBC. The line with odbc_exec() is throwing 
an iSE 500 error on apache 1.3.14 (which I knwo to be the exact line because it's fine 
when it's commented out). I am using the PHP 4.06 windows binaries (from the PHP site) 
with the extra options installed... and to note, $global_conn is a global persistent 
connection that is being made global for the function of which the following code is a 
snippet:

global $page, $action, $ID, $user_data;
global $global_conn, $bgcolor;
$SQL = 'SELECT bunnyID, name, email, content, signed, IP, dateAdded FROM 
plotbunnies';
if ($action == 'view')
{
$SQL.= ' WHERE bunnyID = '.dbtext($ID);
}
$SQL.= ' ORDER BY dateAdded DESC ;';
$bunnies= odbc_exec($global_conn, $SQL);

When the $bunnes = odbc_exec($global_conn, $SQL); line is commented, it is fine; 
otherwise it gives me an HTTP ISE 500 error.

--Jason


-- 
Edit Bug report at: http://bugs.php.net/?id=11763edit=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 #11763 Updated: odbc_exec() throws ISE 500 error

2001-06-28 Thread lustig

ID: 11763
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: ODBC related
Operating system: Windows 98 SE
PHP Version: 4.0.6
Description: odbc_exec() throws ISE 500 error

Another note on the above code snippet -- the dbtext() function just puts quotes 
around whatever is the params... ie, dbtext(1) would return 1 (the quotes being part 
of the returned string).

--Jason

Previous Comments:
---

[2001-06-27 22:45:52] [EMAIL PROTECTED]
I have a bug... I have a function (of which the following code is from) which pulls 
data from a remote MS SQL database through ODBC. The line with odbc_exec() is throwing 
an iSE 500 error on apache 1.3.14 (which I knwo to be the exact line because it's fine 
when it's commented out). I am using the PHP 4.06 windows binaries (from the PHP site) 
with the extra options installed... and to note, $global_conn is a global persistent 
connection that is being made global for the function of which the following code is a 
snippet:

global $page, $action, $ID, $user_data;
global $global_conn, $bgcolor;
$SQL = 'SELECT bunnyID, name, email, content, signed, IP, dateAdded FROM 
plotbunnies';
if ($action == 'view')
{
$SQL.= ' WHERE bunnyID = '.dbtext($ID);
}
$SQL.= ' ORDER BY dateAdded DESC ;';
$bunnies= odbc_exec($global_conn, $SQL);

When the $bunnes = odbc_exec($global_conn, $SQL); line is commented, it is fine; 
otherwise it gives me an HTTP ISE 500 error.

--Jason

---


Full Bug description available at: http://bugs.php.net/?id=11763


-- 
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 #11628 Updated: odbc_fetch_into is broken

2001-06-28 Thread sniper

ID: 11628
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Closed
Status: Analyzed
Bug Type: ODBC related
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

I really don't see the reason why the second parameter
should be passed by reference anyway. 

Dan, fix this. :)



Previous Comments:
---

[2001-06-27 10:24:21] [EMAIL PROTECTED]
right, i think a little background is called for.

4.0.x5:
odbc_fetch_into($qid,1,$row);

4.0.5:
odbc_fetch_into($qid,1,$row);

4.0.6
$i=1;
odbc_fetch_into($qid,$i,$row);

what has this got to do with the 3rd parameter? The need for the reference operator 
was removed in 4.0.5 and everything worked fine. why does the row number suddenly need 
to be passed by reference? its not like its going to be updated by odbc_fetch_into is 
it?

---

[2001-06-27 10:10:48] [EMAIL PROTECTED]
it is not broken. 

this functionality was changed to remove the need for the final variable to be a 
reference.  unfortunately due to the nature of the function, the final variable is 
ALWAYS required to be a reference.  this functionality will change in 4.1 to better 
reflect a more intelligent ordering of the variables and will allow your first example 
to work.

---

[2001-06-23 14:42:50] [EMAIL PROTECTED]
correct version.


---

[2001-06-23 08:43:18] [EMAIL PROTECTED]
this is for 4.0.6, but there's no option for that yet  4.0.5 works fine.

easiest to describe this by example:

odbc_fetch_into($qid,1,$row);

gives

Fatal error: Only variables can be passed by reference in script on line line


$i=1;
odbc_fetch_into($qid,$i,$row);

works perfectly.


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11628edit=2


-- 
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 #11764: system() function result different from PHP 4.0.5

2001-06-28 Thread kamlin

From: [EMAIL PROTECTED]
Operating system: Windows NT Workstation 4.0
PHP version:  4.0.6
PHP Bug Type: Scripting Engine problem
Bug description:  system() function result different from PHP 4.0.5

?php
// goods.php
$today = date(Y/m/d);
$mmdd = substr($today, 5, 2) . substr($today, 8, 2) . .txt;
$cmdstr = php.exe -q goods1.php  . $today .   . 2001/06/14/11:37:05 . 
   Y:\AutoDialer_MKT\REPORT\Pattaya\goods1_ . $mmdd;  
echo $cmdstr . \n;
system($cmdstr);


$cmdstr = php.exe -q goods2.php  . $today .   . 2001/06/14/11:37:05 . 
   Y:\AutoDialer_MKT\REPORT\Pattaya\goods2_ . $mmdd;  
echo $cmdstr . \n;
system($cmdstr);

?

?php
#
# goods1.php
#
function generate_goods1_report($datestr, $camid)
{
$linkid = odbc_connect(FET, SA, );

if ($linkid)
{
$sqlstr = SELECT REP.CALL_DATE, REP.CUS_TELNO1, REP.FIRST_NAME, REP.RFU1 
FROM REP_CM1 REP .
   WHERE CAMPAIGN_ID = ' . $camid . ' .
   AND RFU1='1' AND CALL_DATE = ' . $datestr . ';
$cur = odbc_exec($linkid, $sqlstr);

print CALL_DATE,CUS_TELNO1,FIRST_NAME,RFU1\n;
while (odbc_fetch_row($cur))
{
$field1 = odbc_result($cur, 1);
$field2 = odbc_result($cur, 2);
$field3 = odbc_result($cur, 3);
$field4 = odbc_result($cur, 4);

$datastr =  $field1 . , . $field2 . , . $field3 . , . 
$field4 . \n;
print $datastr;
}
odbc_close($linkid);
}   
} // function   


// echo Into goods1.php\n;
// echo argc ==  . $argc . \n;

if ($argc == 3)
{
generate_goods1_report($argv[1], $argv[2]);
}
else 
{
echo Usage : php.exe -q goods1.php call_date(/MM/DD) campaign_id\n;   
}


?




-- 
Edit Bug report at: http://bugs.php.net/?id=11764edit=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 reports need addslashes() (was: Re: [PHP-DEV] Bug #11673 Updated: UNC paths not working when used in include_path)

2001-06-28 Thread Cynic

is this just my MUA, or does anyone else also experience this? 

Using a UNC path in as the home directory under IIS 5.0
and Windows 2000 Server using the PHP ISAPI module
does not seem to work.  If I set the Network Directory
to \naswebcustomer I get the following error from
PHP:



[EMAIL PROTECTED]
-
And the eyes of them both were opened and they saw that their files
were world readable and writable, so they chmoded 600 their files.
- Book of Installation chapt 3 sec 7 


-- 
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 #11765: Warning: MySQL: Unable to save result set in

2001-06-28 Thread root

From: [EMAIL PROTECTED]
Operating system: redhat-6.2
PHP version:  4.0.6
PHP Bug Type: MSSQL related
Bug description:  Warning: MySQL: Unable to save result set in

I'm getting the following error message when I execute a query (such as insert or 
delete or update but not select) that doesn't produce any results:

Warning: MySQL: Unable to save result set in /path/to/sql.php3
on line 33

MySQL said NOTHING and the query was successful executed.

I have set display_errors = Off in my php.ini, so no warnings should be shown , but 
php script can not go on at the line where the Warnning should display.



I configured php with the following command:

./configure  --with-mysql=/usr/local/mysql --enable-track-vars 
--with-gd=../../gd/gd1.3 --with-ftp --with-imap=../../mail/imap/imap-4.7c 
--enable-memory-limit --with-pgsql=/usr/local/pgsql

MySQL is version 3.23.38 and PostgreSQL is version 7.1.2 

and compiled with th following command:

./configure  --prefix=/usr/local/mysql --with-mysqld-user=mysql --with-charset=gb2312 
--with-extra-charsets=all

./configure  --enable-multibyte --enable-unicode-conversion --with-perl 
--with-openssl=/usr/local/ssl --enable-odbc --with-CXX





-- 
Edit Bug report at: http://bugs.php.net/?id=11765edit=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 #11764 Updated: system() function result different from PHP 4.0.5

2001-06-28 Thread sniper

ID: 11764
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Scripting Engine problem
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

And what is the difference between 4.0.5 system() and 4.0.6 system() ?



Previous Comments:
---

[2001-06-27 22:51:51] [EMAIL PROTECTED]
?php
// goods.php
$today = date(Y/m/d);
$mmdd = substr($today, 5, 2) . substr($today, 8, 2) . .txt;
$cmdstr = php.exe -q goods1.php  . $today .   . 2001/06/14/11:37:05 . 
   Y:AutoDialer_MKTREPORTPattayagoods1_ . $mmdd;  
echo $cmdstr . n;
system($cmdstr);


$cmdstr = php.exe -q goods2.php  . $today .   . 2001/06/14/11:37:05 . 
   Y:AutoDialer_MKTREPORTPattayagoods2_ . $mmdd;  
echo $cmdstr . n;
system($cmdstr);

?

?php
#
# goods1.php
#
function generate_goods1_report($datestr, $camid)
{
$linkid = odbc_connect(FET, SA, );

if ($linkid)
{
$sqlstr = SELECT REP.CALL_DATE, REP.CUS_TELNO1, REP.FIRST_NAME, REP.RFU1 
FROM REP_CM1 REP .
   WHERE CAMPAIGN_ID = ' . $camid . ' .
   AND RFU1='1' AND CALL_DATE = ' . $datestr . ';
$cur = odbc_exec($linkid, $sqlstr);

print CALL_DATE,CUS_TELNO1,FIRST_NAME,RFU1n;
while (odbc_fetch_row($cur))
{
$field1 = odbc_result($cur, 1);
$field2 = odbc_result($cur, 2);
$field3 = odbc_result($cur, 3);
$field4 = odbc_result($cur, 4);

$datastr =  $field1 . , . $field2 . , . $field3 . , . 
$field4 . n;
print $datastr;
}
odbc_close($linkid);
}   
} // function   


// echo Into goods1.phpn;
// echo argc ==  . $argc . n;

if ($argc == 3)
{
generate_goods1_report($argv[1], $argv[2]);
}
else 
{
echo Usage : php.exe -q goods1.php call_date(/MM/DD) campaign_idn;
}


?



---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11764edit=2


-- 
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 #11762 Updated: bad example

2001-06-28 Thread sniper

ID: 11762
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Documentation problem
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

You must be looking into old manual or something since
the example I see on the getdate() manual page has perfect,
working example in it.


Previous Comments:
---

[2001-06-27 22:34:30] [EMAIL PROTECTED]
PHP manual
getdate
(PHP 3, PHP 4 )

getdate -- Get date/time information
Description

array getdate ([int timestamp])


Example 1. getdate() example 

$today = getdate(); 
$month = $today[month]; 
$mday = $today[mday]; 
$year = $today[year]; 
echo $month $mday, $year;
  
 
---
- $mday = $today[mday]; 
warnning: Use of undefined constant mday - assumed 'mday'
although a undefined constant will be assumed as a string, it's still a bad usage of 
this auto conversion.

php manual writers shouldn't make a bad guide for php learners

thx

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11762edit=2


-- 
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] Bugs: mod_php, w3c-libwww, content-length, chunked and RFC 2068

2001-06-28 Thread Eric Kidd

So, I was using w3c-libwww to download some XML documents generated by
mod_php, and I kept losing the last 5 or 6 bytes.  Ethereal said those
bytes were on the wire, so I dug into w3c-libwww's guts.

Half a day later, here's what I've learned:

  mod_php will happily generate messages that include both a content-length
  and a chunked transfer encoding *if* a script supplies a
  content-length header.  The content-length header will not include the
  bytes used to specify the chunk size.  I don't know where or how this
  happens in mod_php.

  w3c-libwww 5.2.8 does not respond gracefully to messages which have both
  a content-length and a chunked transfer encoding.  And I *think* this
  problem exists in CVS, too, but I'm not entirely sure.

According to RFC 2068:

  Messages MUST NOT include both a Content-Length header field and the
  chunked transfer coding. If both are received, the Content-Length
  MUST be ignored.

But w3c-libwww gets this precisely backwards.  If, for example, a server
sends an illegal message of the form:

  Transfer-Encoding: chunked\r\n
  Content-Type: text/xml\r\n
  Content-length: 32\r\n
  \r\n
  20\r\n
  (32 characters in body)
  0\r\n
  \r\n

...then w3c-libwww feeds it through HTMIME, which honors the content-length
header, and chops off four trailing bytes to make up for the 20\r\n.  (It
then does various unspeakable things with the last four bytes of the
message and the five trailer bytes, but this isn't important.)

So this is technically a bug in mod_php *and* w3c-libwww. ;-)

Cheers,
Eric

(If you need any more information from me, please contact me via e-mail.
I'm not on the php-dev or w3c-libwww mailing lists.)

-- 
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 #11765 Updated: Warning: MySQL: Unable to save result set in

2001-06-28 Thread sniper

ID: 11765
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Old-Bug Type: MSSQL related
Bug Type: MySQL related
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

Please include a shortest possible example script that
can be used to reproduce this problem.


Previous Comments:
---

[2001-06-27 22:58:58] [EMAIL PROTECTED]
I'm getting the following error message when I execute a query (such as insert or 
delete or update but not select) that doesn't produce any results:

Warning: MySQL: Unable to save result set in /path/to/sql.php3
on line 33

MySQL said NOTHING and the query was successful executed.

I have set display_errors = Off in my php.ini, so no warnings should be shown , but 
php script can not go on at the line where the Warnning should display.



I configured php with the following command:

./configure  --with-mysql=/usr/local/mysql --enable-track-vars 
--with-gd=../../gd/gd1.3 --with-ftp --with-imap=../../mail/imap/imap-4.7c 
--enable-memory-limit --with-pgsql=/usr/local/pgsql

MySQL is version 3.23.38 and PostgreSQL is version 7.1.2 

and compiled with th following command:

./configure  --prefix=/usr/local/mysql --with-mysqld-user=mysql --with-charset=gb2312 
--with-extra-charsets=all

./configure  --enable-multibyte --enable-unicode-conversion --with-perl 
--with-openssl=/usr/local/ssl --enable-odbc --with-CXX




---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11765edit=2


-- 
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] RE: Bug #11764 Updated: system() function result different from PHP 4.0.5

2001-06-28 Thread kamlin

In goods1.php  , the value of $argc == 5 (PHP 4.0.6)   , $argc == 3 (PHP
4.0.5)


-Original Message-
From: Bug Database [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 28, 2001 11:01 AM
To: [EMAIL PROTECTED]
Subject: Bug #11764 Updated: system() function result different from PHP
4.0.5


ID: 11764
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Scripting Engine problem
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

And what is the difference between 4.0.5 system() and 4.0.6 system() ?



Previous Comments:
---

[2001-06-27 22:51:51] [EMAIL PROTECTED]
?php
// goods.php
$today = date(Y/m/d);
$mmdd = substr($today, 5, 2) . substr($today, 8, 2) . .txt;
$cmdstr = php.exe -q goods1.php  . $today .   . 2001/06/14/11:37:05 . 
   Y:AutoDialer_MKTREPORTPattayagoods1_ . $mmdd;

echo $cmdstr . n;
system($cmdstr);


$cmdstr = php.exe -q goods2.php  . $today .   . 2001/06/14/11:37:05 . 
   Y:AutoDialer_MKTREPORTPattayagoods2_ . $mmdd;

echo $cmdstr . n;
system($cmdstr);

?

?php
#
# goods1.php
#
function generate_goods1_report($datestr, $camid)
{
$linkid = odbc_connect(FET, SA, );

if ($linkid)
{
$sqlstr = SELECT REP.CALL_DATE, REP.CUS_TELNO1, REP.FIRST_NAME,
REP.RFU1 FROM REP_CM1 REP .
   WHERE CAMPAIGN_ID = ' . $camid . ' .
   AND RFU1='1' AND CALL_DATE = ' . $datestr . ';
$cur = odbc_exec($linkid, $sqlstr);

print CALL_DATE,CUS_TELNO1,FIRST_NAME,RFU1n;
while (odbc_fetch_row($cur))
{
$field1 = odbc_result($cur, 1);
$field2 = odbc_result($cur, 2);
$field3 = odbc_result($cur, 3);
$field4 = odbc_result($cur, 4);

$datastr =  $field1 . , . $field2 . , . $field3 . ,
 . $field4 . n;
print $datastr;
}
odbc_close($linkid);
}   
} // function   


// echo Into goods1.phpn;
// echo argc ==  . $argc . n;

if ($argc == 3)
{
generate_goods1_report($argv[1], $argv[2]);
}
else 
{
echo Usage : php.exe -q goods1.php call_date(/MM/DD) campaign_idn;

}


?



---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at
http://bugs.php.net/?id=11764edit=2



Far EasTone Telecommunications, its subsidiaries and affiliates may review
and retain incoming and outgoing electronic mail for this e-mail address
for quality assurance and regulatory compliance purposes. The
confidentiality of internet e-mail cannot be guaranteed. Your transmission
of electronic mail to this address represents your consent to two-way
communication by internet e-mail. 



-- 
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 #11765 Updated: Warning: MySQL: Unable to save result set in

2001-06-28 Thread root

ID: 11765
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Old-Bug Type: MySQL related
Bug Type: MSSQL related
Operating system: redhat-6.2
PHP Version: 4.0.6
Description: Warning: MySQL: Unable to save result set in

I'm getting the following error message when I execute a query (such as insert or 
delete
or update but not select) that doesn't produce any results:

Warning: MySQL: Unable to save result set in /path/to/sql.php3
on line 33

MySQL said NOTHING and the query was successful executed.

I have set display_errors = Off in my php.ini, so no warnings should be shown
, but php script can not go on at the line where the Warnning should display.



I configured php with the following command:

./configure  --with-mysql=/usr/local/mysql --enable-track-vars 
--with-gd=../../gd/gd1.3
--with-ftp --with-imap=../../mail/imap/imap-4.7c --enable-memory-limit
--with-pgsql=/usr/local/pgsql

MySQL is version 3.23.38 and PostgreSQL is version 7.1.2 

and compiled with th following command:

./configure  --prefix=/usr/local/mysql --with-mysqld-user=mysql --with-charset=gb2312
--with-extra-charsets=all

./configure  --enable-multibyte --enable-unicode-conversion --with-perl
--with-openssl=/usr/local/ssl --enable-odbc --with-CXX


BTW : The script is perfect on mysql-php-4.0.3pl1 and postgreSQL-php-4.0.6 .

Previous Comments:
---

[2001-06-27 23:06:01] [EMAIL PROTECTED]
Please include a shortest possible example script that
can be used to reproduce this problem.


---

[2001-06-27 22:58:58] [EMAIL PROTECTED]
I'm getting the following error message when I execute a query (such as insert or 
delete or update but not select) that doesn't produce any results:

Warning: MySQL: Unable to save result set in /path/to/sql.php3
on line 33

MySQL said NOTHING and the query was successful executed.

I have set display_errors = Off in my php.ini, so no warnings should be shown , but 
php script can not go on at the line where the Warnning should display.



I configured php with the following command:

./configure  --with-mysql=/usr/local/mysql --enable-track-vars 
--with-gd=../../gd/gd1.3 --with-ftp --with-imap=../../mail/imap/imap-4.7c 
--enable-memory-limit --with-pgsql=/usr/local/pgsql

MySQL is version 3.23.38 and PostgreSQL is version 7.1.2 

and compiled with th following command:

./configure  --prefix=/usr/local/mysql --with-mysqld-user=mysql --with-charset=gb2312 
--with-extra-charsets=all

./configure  --enable-multibyte --enable-unicode-conversion --with-perl 
--with-openssl=/usr/local/ssl --enable-odbc --with-CXX




---


Full Bug description available at: http://bugs.php.net/?id=11765


-- 
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 #11754 Updated: exec() function not working in Win32

2001-06-28 Thread sniper

ID: 11754
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Program Execution
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:



Previous Comments:
---

[2001-06-27 15:02:28] [EMAIL PROTECTED]
- Standard Win32 PHP install
- Apache 1.3.20, Win32
- PHP running as a module
- Unix Tools running on Win32 platform

DEMO SCRIPT:

?

if ($query !=  || $query != NULL) {
$do_time = time();
$test = $do_time..txt;
exec(egrep -i $query c:/Apache/logs/access.log  
c:/Apache/htdocs/output/$test);
@$data=fopen(c:/Apache/htdocs/output/$test, r);
if (!@$data=fopen(c:/Apache/htdocs/output/$test, r)) {

echo(font class=largerThere May Have Been An Error With Your 
Query As No Output File Was Generated.br);
echo(Please Check The Syntax Of Your Query./font);
} else {
$file=fpassthru($data);
}
} else {
echo(font class=largerThere Was No Query To Analyze.br);
echo(Please Re-Enter Your Query./font);
}

exec(c:/Apache/htdocs/del.bat c:Apachehtdocsoutput$test);

?

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11754edit=2


-- 
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 #11765 Updated: Warning: MySQL: Unable to save result set in

2001-06-28 Thread root

ID: 11765
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: MSSQL related
Operating system: redhat-6.2
PHP Version: 4.0.6
Description: Warning: MySQL: Unable to save result set in

The script(error.php) is :

?
$db_acc_user = root;
$db_acc_passwd = password;
$db = pacc;
$sql = INSERT INTO type (name, quota, pc, cn, office) VALUES ('Howard', '10', '1', 
'0', '1');
mysql_connect(localhost,$db_pacc_user,$db_pacc_passwd);
mysql_db_query($db,$sql);
mysql_close();
?


The result in browser is:


Warning: MySQL: Unable to save result set in /home/0/admin/error.php on line 7


But I just found that NO error in command line

root@localhost # php ./error.php
X-Powered-By: PHP/4.0.6
Content-type: text/html




Previous Comments:
---

[2001-06-27 23:06:49] [EMAIL PROTECTED]
I'm getting the following error message when I execute a query (such as insert or 
delete
or update but not select) that doesn't produce any results:

Warning: MySQL: Unable to save result set in /path/to/sql.php3
on line 33

MySQL said NOTHING and the query was successful executed.

I have set display_errors = Off in my php.ini, so no warnings should be shown
, but php script can not go on at the line where the Warnning should display.



I configured php with the following command:

./configure  --with-mysql=/usr/local/mysql --enable-track-vars 
--with-gd=../../gd/gd1.3
--with-ftp --with-imap=../../mail/imap/imap-4.7c --enable-memory-limit
--with-pgsql=/usr/local/pgsql

MySQL is version 3.23.38 and PostgreSQL is version 7.1.2 

and compiled with th following command:

./configure  --prefix=/usr/local/mysql --with-mysqld-user=mysql --with-charset=gb2312
--with-extra-charsets=all

./configure  --enable-multibyte --enable-unicode-conversion --with-perl
--with-openssl=/usr/local/ssl --enable-odbc --with-CXX


BTW : The script is perfect on mysql-php-4.0.3pl1 and postgreSQL-php-4.0.6 .

---

[2001-06-27 23:06:01] [EMAIL PROTECTED]
Please include a shortest possible example script that
can be used to reproduce this problem.


---

[2001-06-27 22:58:58] [EMAIL PROTECTED]
I'm getting the following error message when I execute a query (such as insert or 
delete or update but not select) that doesn't produce any results:

Warning: MySQL: Unable to save result set in /path/to/sql.php3
on line 33

MySQL said NOTHING and the query was successful executed.

I have set display_errors = Off in my php.ini, so no warnings should be shown , but 
php script can not go on at the line where the Warnning should display.



I configured php with the following command:

./configure  --with-mysql=/usr/local/mysql --enable-track-vars 
--with-gd=../../gd/gd1.3 --with-ftp --with-imap=../../mail/imap/imap-4.7c 
--enable-memory-limit --with-pgsql=/usr/local/pgsql

MySQL is version 3.23.38 and PostgreSQL is version 7.1.2 

and compiled with th following command:

./configure  --prefix=/usr/local/mysql --with-mysqld-user=mysql --with-charset=gb2312 
--with-extra-charsets=all

./configure  --enable-multibyte --enable-unicode-conversion --with-perl 
--with-openssl=/usr/local/ssl --enable-odbc --with-CXX




---


Full Bug description available at: http://bugs.php.net/?id=11765


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




Re: [PHP-DEV] Memory limit is used for all scripts instead of one?

2001-06-28 Thread Brian Moon

What version of PHP are you using?  There were some changes in 4.0.6 that
may change your results.

Brian Moon
--
dealnews.com, Inc.
Makers of dealnews, dealmac
http://dealnews.com/ | http://dealmac.com/


- Original Message -
From: Swift [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 27, 2001 9:52 AM
Subject: [PHP-DEV] Memory limit is used for all scripts instead of one?


 Warning: Could not execute mail delivery program in
 /local/Web/sites/phpweb/bugs.php on line 419
 Mail not sent!
 Please send this page in a mail to [EMAIL PROTECTED] manually.

 --


 Hi there!

 As far as I understand, the option memory_limit sets the mem-limit for

 ONE script.
 I installed PHP as a Apache module and I set the memory_limit to 16M
 (via php.ini).

 When I allocate 8M of memory, all works fine. But when two different
 scripts each allocate 8M, I will get sometimes the following message:
 Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to
 allocate 4194304 bytes) in /usr/local/httpd/htdocs/testxx.php on line 6

 Both scripts (testx.php and testxx.php) contain the following code:
 ?php

   $str = x;
   for($i=0; $i23; $i++)
   {
 $str .= $str;
 echo strlen($str) . br;
   }
 ?

 First, 1 byte will be allocated, then 2, then 4 and so on. The last
 allocated string has a size of 8M.
 It's a little difficult to reproduce the problem because I have to call
 both scripts exactly at the same time from my browser. But, as I said,
 sometimes I get the described error-message.

 My question is: Is this normal and memory_limit sets the limit for ALL
 scripts that are currently running or is this a bug?

 Thanks in advance!

  ... tobias wiersch from germany



 --
 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 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 #11766: Unable to save result set in

2001-06-28 Thread postmaster

From: [EMAIL PROTECTED]
Operating system: redhat-6.2
PHP version:  4.0.6
PHP Bug Type: MySQL related
Bug description:  Unable to save result set in

I'm getting the following error message when I execute a query (such as insert or 
delete or update but not select) that doesn't produce any results:

The script(error.php) is :

  ?
  $db_acc_user = root;
  $db_acc_passwd = password;
  $db = pacc;
  $sql = INSERT INTO type (name, quota, pc, cn, office)
  VALUES ('Howard', '10', '1', '0', '1')
 ;
  mysql_connect(localhost,$db_pacc_user,$db_pacc_passwd);
  mysql_db_query($db,$sql);
  mysql_close();
  ?


The result in browser is:


  Warning: MySQL: Unable to save result set in /home/0/admin/error.php on line 7


MySQL said NOTHING and the query was successful executed.

I have set display_errors = Off in my php.ini, so no warnings should be shown , but 
php script can not go on at the line where the Warnning should display.

But I just found that NO error in command line :

  root@localhost # php ./error.php
  X-Powered-By: PHP/4.0.6
  Content-type: text/html

  root@localhost #



I configured php with the following command:

  ./configure
  --with-mysql=/usr/local/mysql \
  --enable-track-vars \
  --with-gd=../../gd/gd1.3 \
  --with-ftp \
  --with-imap=../../mail/imap/imap-4.7c \
  --enable-memory-limit \
  --with-pgsql=/usr/local/pgsql

MySQL is version 3.23.38 and PostgreSQL is version 7.1.2

and compiled with th following command:

  ./configure
  --prefix=/usr/local/mysql \
  --with-mysqld-user=mysql \
  --with-charset=gb2312 \
  --with-extra-charsets=all

  ./configure
  --enable-multibyte \
  --enable-unicode-conversion \
  --with-perl \
  --with-openssl=/usr/local/ssl \
  --enable-odbc \
  --with-CXX


BTW : The script is perfect on mysql-php-4.0.3pl1 and postgreSQL-php-4.0.6 .





-- 
Edit Bug report at: http://bugs.php.net/?id=11766edit=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 #11707 Updated: FILE.lo isn't a libtool type if built php as a cgi

2001-06-28 Thread tom

ID: 11707
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Compile Failure
Operating system: NetBSD/Alpha 1.5W-current
PHP Version: 4.0.6
Description: FILE.lo isn't a libtool type if built php as a cgi

it happens with latest CVS 4.0.7-dev is what phpinfo tells me. i tested the exact same 
config on 4.0.5 release and i didn't see this problem. uppon searching the libtool 
mailing list, i do believe php is using a buggy version of libtool. here is a thread 
on a similar issue:

this post shows similar errors, though diff app:
http://gcc.gnu.org/ml/java/2001-01/msg00168.html

and here is the explaination from one of libtool's core in regard to that issue:

Hmm...  Looks like a bug in the multi-language branch.  Would you
please report to [EMAIL PROTECTED] that creation of relinkable
libtool objects is broken is in the multi-language branch?  Thanks in
advance,

-- 
Alexandre Oliva   

Previous Comments:
---

[2001-06-27 21:46:13] [EMAIL PROTECTED]
Again, does this happen with the latest CVS or with PHP 4.0.6? 

--Jani


---

[2001-06-27 16:38:17] [EMAIL PROTECTED]
i was wrong about the options sablot, iconv, and expat options. having those options 
or not, doesn't matter, still the same error with 

libtool: link: `main.lo' is not a valid libtool object
*** Error code 1


---

[2001-06-27 16:35:11] [EMAIL PROTECTED]
here is the exact error:

/bin/sh /home/staffs/t/tom/work/php/php4-current/php4/libtool --silent --mode=link gcc 
 -I. -I/ho
me/staffs/t/tom/work/php/php4-current/php4/main 
-I/home/staffs/t/tom/work/php/php4-current/php4/m
ain -I/home/staffs/t/tom/work/php/php4-current/php4 
-I/home/staffs/t/tom/work/php/php4-current/ph
p4/Zend -I/usr/local/include/freetype2/freetype -I/usr/pkg/include 
-I/usr/local/include/mysql -I/
usr/local/include -I/home/staffs/t/tom/work/php/php4-current/php4/TSRM  
-I/usr/pkg/include -g -O2
 -prefer-non-pic -static   -o libmain.la  main.lo internal_functions.lo snprintf.lo 
php_sprintf.l
o safe_mode.lo fopen_wrappers.lo alloca.lo php_ini.lo SAPI.lo rfc1867.lo 
php_content_types.lo str
lcpy.lo strlcat.lo mergesort.lo reentrancy.lo php_variables.lo php_ticks.lo streams.lo 
network.lo
 php_open_temporary_file.lo php_logos.lo
libtool: link: `main.lo' is not a valid libtool object
*** Error code 1

Stop.
---

i just did 

rm config.cache
./configure options
make clean
make

all that w/o the LDFLAGS, LIBS, and ENV variables are refreshed (no left-overs)

---

[2001-06-27 13:40:12] [EMAIL PROTECTED]
What version of PHP is this? Latest CVS? Or 4.0.6?


---

[2001-06-27 13:37:07] [EMAIL PROTECTED]
here is the exact error:

/bin/sh /home/staffs/t/tom/work/php/php4-current/php4/libtool --silent --mode=link gcc 
 -I. -I/ho
me/staffs/t/tom/work/php/php4-current/php4/main 
-I/home/staffs/t/tom/work/php/php4-current/php4/m
ain -I/home/staffs/t/tom/work/php/php4-current/php4 
-I/home/staffs/t/tom/work/php/php4-current/ph
p4/Zend -I/usr/local/include/freetype2/freetype -I/usr/pkg/include 
-I/usr/local/include/mysql -I/
usr/local/include -I/home/staffs/t/tom/work/php/php4-current/php4/TSRM  
-I/usr/pkg/include -g -O2
 -prefer-non-pic -static   -o libmain.la  main.lo internal_functions.lo snprintf.lo 
php_sprintf.l
o safe_mode.lo fopen_wrappers.lo alloca.lo php_ini.lo SAPI.lo rfc1867.lo 
php_content_types.lo str
lcpy.lo strlcat.lo mergesort.lo reentrancy.lo php_variables.lo php_ticks.lo streams.lo 
network.lo
 php_open_temporary_file.lo php_logos.lo
libtool: link: `main.lo' is not a valid libtool object
*** Error code 1

Stop.
---

i just did 

rm config.cache
./configure options
make clean
make

all that w/o the LDFLAGS, LIBS, and ENV variables are refreshed (no left-overs)

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.

Full Bug description available at: http://bugs.php.net/?id=11707


-- 
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 #11489 Updated: Sybase query result is getting destructed

2001-06-28 Thread joey

ID: 11489
Updated by: joey
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Sybase-ct (ctlib) related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Cannot reproduce with CVS.

Previous Comments:
---

[2001-06-14 10:15:16] [EMAIL PROTECTED]
The following script produces the following error the second time 
getAppName/sybase_fetch_row is called.

Error (warning):

   /users/pmoosman/test_data/test1.php(26) : Warning - 3 is not a valid Sybase result 
resource

Script:

?php

function getConnect()
{
  $db = sybase_connect('','yyy','zzz');
  return $db;
}


function getAppName($app_id) 
{

  // static $db;

  $sql = select name from web_apps where application_id=$app_id;

  $db = getconnect();

  $result = sybase_query($sql, $db);

  $row = sybase_fetch_row($result); 

  // sybase_free_result($result);

  return $row[0];
}

getAppName(23);
getAppName(23);

?


Note: If I uncomment the static $db line, the error (warning) goes away.



I ran PHP in a debugger and it looks like the sybase connection is getting destructed 
when the sybase_query results are getting assigned to $result.



---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11489edit=2


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




Re: [PHP-DEV] CVS Account Request

2001-06-28 Thread Sebastian Bergmann

CVS Account Request wrote:
 Purpose: I would like cvs access so that I can check a bug fix
 to the sybase_ct module. I need this bug fix to be
 in the next release of PHP.

  Just send a diff of your patch to [EMAIL PROTECTED]

-- 
 sebastian bergmann[EMAIL PROTECTED]
   http://www.sebastian-bergmann.de

 Meet the PHP Project at LinuxTag, Booth 5.0.334/2 - http://phpinfo.de/

-- 
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 #11767: Bad escape sequence

2001-06-28 Thread veins

From: [EMAIL PROTECTED]
Operating system: Unix
PHP version:  4.0.6
PHP Bug Type: Unknown/Other Function
Bug description:  Bad escape sequence

When safe_mode is set to On, it is impossible to pass a variable that contains a 
string with a space in it as an argument to any system() like function. The following 
script shows the problem:

?
   $somevar = this is a test;
   exec(echo.sh $somevar, $return);
   echo $return[0];
?

echo.sh being a simple shell script that echoes back anything that we feed it. The 
following PHP script will display 'this' instead of 'this is a test'. I tried 
backslashing every chars of the variable by writing a simple function but spaces seems 
not to be correctly passed to the shell script. The same script executed when 
safe_mode is set to off works perfectly...

Veins - [EMAIL PROTECTED]



-- 
Edit Bug report at: http://bugs.php.net/?id=11767edit=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] query regrading mail function

2001-06-28 Thread Sachin Garg

Dear Sir 
I have the problem regrading mail function in PHP. I am trying to send the 
mail using the script below,
 but the output genrated that Can't Success.

Hopefully that you can soled my problem.

Thanks and Regards.

Sachin
Delhi


The mail Script is -

?
$mail_from = From: [EMAIL PROTECTED];
$mail_to = [EMAIL PROTECTED];
$mail_subject = Hi there;
$mail_body = I am fine here;

if(mail($mail_to, $mail_subject, $mail_body, $mail_from))
echo Success;
else Can't Success;
?


Buy Feng Shui Package for Rs. 151/- only, at 
http://shopping.rediff.com/shopping/fengshui_mailer.htm




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




Re: [PHP-DEV] PHP 4.0.6 crypt ()

2001-06-28 Thread derick

Hello,

On Wed, 27 Jun 2001, Morten Rønseth wrote:

 Is crypt () gone under Darwin 1.3.3...? I even compiled in
 libmcrypt but still no dice.

FYI, crypt() has nothing to do with libmcrypt, but I'm sure libmcrypt has
other functions that emulate the crypt() function.

regards,

Derick Rethans

-
PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED]
 SRM: Site Resource Manager - www.vl-srm.net
-


-- 
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 #11723 Updated: A few apache children remain in memory after apachectl stop

2001-06-28 Thread denis

ID: 11723
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Scripting Engine problem
Operating system: linux 2.2.14 and 2.2.16
PHP Version: 4.0.6
Description: A few apache children remain in memory after apachectl stop

This is the line I used to configure the PHP:

./configure --enable-imap --enable-mysql --with-mysql --with-apache=../$APACHE 
--with-imap --without-xml --enable-track-vars --enable-memory-limit=yes 
--with-zlib=/usr --with-gd=/usr/local --with-jpeg-dir=/usr --with-png-dir=/usr 
--enable-magic-quotes

The problem has presented only with PHP 4.0.5 (and 4.0.6) with apache 1.3.20. Before 
we had PHP 4.0.3pl1 with Apache 1.3.16 and we had no problems.

Soon as possible I'll try to give you a gdb track... this is difficult because often 
the machine is completely down and the only way to restart the apache is to reboot 
(power down) it...

Denis

Previous Comments:
---

[2001-06-27 11:56:50] [EMAIL PROTECTED]
what was the configure line used to configure PHP?


---

[2001-06-27 03:56:32] [EMAIL PROTECTED]
I have the same problem as Valerio (bug #11676), but in my case the apache children 
remain in memory and it is not possible to kill them (i've tried also kill -9 but 
nothing do to, sick!). The only way to solve the problem is to reboot the machine or, 
in the worst case, to power down hardly the system.
The kernels are 2.2.14 (RedHat 6.2) and 2.2.16 (RedHat 7.0)
, the apache is 1.3.20 and php 4.0.6 (but the problems were present also in php 4.0.5 
with apache 1.3.19).
I was not able to track down the bug, it seems to happen randomly.
The php is compiled with gd,mysql and imap (4.7c2).

Denis


---


Full Bug description available at: http://bugs.php.net/?id=11723


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




Re: [PHP-DEV] [Bug] MacOSX-10.0.4 Unresolved symbols in Apche DSO

2001-06-28 Thread derick

Hello Nathan,

please add --with-zlib to your configure line. It should work fine then.

Derick


On Wed, 27 Jun 2001, nathan r. hruby wrote:

 Just doing what bugs.php.net tells me.. Sorry of this duplicatied

 --- START: Bug Entry
 From: [EMAIL PROTECTED]
 Operating system: MacOSX 10.0.4
 PHP version:  4.0.6
 PHP Bug Type: *Install and Config
 Bug description:  Unresolved symbols in Apche DSO

 Fresh compile on OSX 10.0.4:
 ./configure --with-apxs --with-mysql=/usr/local

 After a successful compile and install, checking apache
 yeilds:
 [puma:nathan/src/php-4.0.6] root# apachectl configtest
 dyld: /usr/sbin/httpd Undefined symbols:
 _compress
 _uncompress
 [puma:nathan/src/php-4.0.6] root#

 Output compression is off

 Apache is:
 [puma:nathan/src/php-4.0.6] root# httpd -V
 Server version: Apache/1.3.14 (Darwin)
 Server built:   02/16/01 19:31:58
 Server's Module Magic Number: 19990320:10
 Server compiled with
  -D EAPI
  -D HAVE_MMAP
  -D USE_MMAP_SCOREBOARD
  -D USE_MMAP_FILES
  -D USE_FLOCK_SERIALIZED_ACCEPT
  -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
  -D HTTPD_ROOT=/usr
  -D SUEXEC_BIN=/usr/sbin/suexec
  -D DEFAULT_PIDLOG=/var/run/httpd.pid
  -D DEFAULT_SCOREBOARD=/var/run/httpd.scoreboard
  -D DEFAULT_LOCKFILE=/var/run/httpd.lock
  -D DEFAULT_XFERLOG=/var/log/httpd/access_log
  -D DEFAULT_ERRORLOG=/var/log/httpd/error_log
  -D TYPES_CONFIG_FILE=/etc/httpd/mime.types
  -D SERVER_CONFIG_FILE=/etc/httpd/httpd.conf
  -D ACCESS_CONFIG_FILE=/etc/httpd/access.conf
  -D RESOURCE_CONFIG_FILE=/etc/httpd/srm.conf



 Warning: Could not execute mail delivery program in
 /local/Web/sites/phpweb/bugs.php on line 419


 Mail not sent!
 Please send this page in a mail to [EMAIL PROTECTED] manually.

 ---END: Bug entry

 -n
 --
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 nathan hruby / digital statement
 [EMAIL PROTECTED]
 http://www.dstatement.com/

 Public GPG key can be found at:
 http://www.dstatement.com/nathan-gpg-key.txt
 ED54 9A5E 132D BD01 9103  EEF3 E1B9 4738 EC90 801B
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-




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


Derick Rethans

-
PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED]
 SRM: Site Resource Manager - www.vl-srm.net
-


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




Re: [PHP-DEV] Memory limit is used for all scripts instead of one?

2001-06-28 Thread derick

On Wed, 27 Jun 2001, Swift wrote:

 Warning: Could not execute mail delivery program in
 /local/Web/sites/phpweb/bugs.php on line 419
 Mail not sent!

What is wrong with the bug system? I've seen around 20 messages like this
now.

Derick

-
PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED]
 SRM: Site Resource Manager - www.vl-srm.net
-


-- 
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 #11658 Updated: Getting values by reference don't work

2001-06-28 Thread andrej . aschenbrenner

ID: 11658
User Update by: [EMAIL PROTECTED]
Old-Status: Closed
Status: Open
Bug Type: COM related
Operating system: Windows NT 4.0 SP 6
PHP Version: 4.0.6
Description: Getting values by reference don't work

still closed?

Previous Comments:
---

[2001-06-27 04:16:21] [EMAIL PROTECTED]
It didn't work!
I get this:

Warning: Invoke() failed: Typ paßt nicht.
in D:ebzeapplicationindex.php on line 10

translated: ...: Type mismatch.

Line 10 looks like this:
$instance-CheckLogin($user, COM_REMOTE_SERVER, $allowed);

I have tried all of the combinations I could think of,
VT_UI1|BYREF, VT_UI2|BYREF, VT_UI4|BYREF, VT_I1|BYREF,
VT_I2|BYREF, VT_I4|BYREF, VT_INT|BYREF, VT_UINT|BYREF
It doesn't matter. I get always the same type mismatch warning.

Note that the variable $allowed in the function of the
COM-Object is defined as long.

Please help me to get this working.


---

[2001-06-26 10:19:19] [EMAIL PROTECTED]
closed

---

[2001-06-26 10:19:03] [EMAIL PROTECTED]
$user = test_user;
$allowed = new VARIANT(8, VT_I4|VT_BYREF);

$instance = new COM(dll.CObject) or die(Unable to
instanciate dll.CObject);
$instance-CheckLogin($user, COM_REMOTE_SERVER, $allowed);

echo $allowed-value;

/* you can use $allowed-type to check it against
 * VT_* constants
 * look into the php documentation for more flags
 * passing variables by reference is a deprecated
 * zend feature (i don't know why) and it didn't work
 * in every case in earlier versions.
 */



---

[2001-06-26 07:00:49] [EMAIL PROTECTED]
The #11660 was already bogused. Reopened this one.


---

[2001-06-25 17:21:56] [EMAIL PROTECTED]
Was submitted twice. Dup. of 11660

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.

Full Bug description available at: http://bugs.php.net/?id=11658


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




Re: [PHP-DEV] keeping descriptors in persistent connections

2001-06-28 Thread derick

Hello Joao,

On Wed, 27 Jun 2001, Joao Conceicao wrote:

 Hi,
 I'm having a problem making a module that uses persistent connections.
 It's possible to reuse the same descriptors (file descriptors) in two
 diferent pages? How?

It's not really possible with PHP to do this. Of course there are
persistent connections to databases, but these are per Apache child, which
will be recycled after a number of requests. And you can never be sure if
the next page request is handled by the same Apache child. With database
connections this is not really a problem, as the connections will be
opened per Apache child (and so you'll end up with the same number of
conncetions to the database, as there are Apache child processes).

This was one of the reasons that SRM was developed. SRM is a deamon
program which can be used from PHP to manage data structures
(such as Filedescriptors) which won't be destroyed when an Apache child
dies (because they are used from the deamon). SRM was built in such a way
that modules (like a fileaccessing module) can be easily added. The API is
a little easier then PHP even. For more information about SRM or how to
write such modules, see http://www.vl-srm.net/ or feel free to contact me.

regards,

Derick Rethans

-
PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED]
 SRM: Site Resource Manager - www.vl-srm.net
-


-- 
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 #11768: references still have bugs

2001-06-28 Thread zork

From: [EMAIL PROTECTED]
Operating system: Linux 2.2.x
PHP version:  4.0 Latest CVS (2001-06-28)
PHP Bug Type: Class/Object related
Bug description:  references still have bugs

When I want to set reference to $this object gets copied.
In this example $ui_handler contains copy of object $test.
$ui_handler - data is not reference to $test.
I use CVS 2001-06-24.

?
class CUI_element {
var $value;
function CUI_element($value) {
global $ui_handler;
$this - value = $value;
$ui_handler - register($this); 
}
}

class CUI_handler {
var $data;

function CUI_handler() {
$this - data = false;
}

function register($element) {
$this - data = $element;
}
};

$ui_handler = new CUI_Handler();
$test = new CUI_Element(test);
$test - value = changed;
var_dump($ui_handler - data); print br;
var_dump($test); print br;
?

My output:
object(cui_element)(1) { [value]= string(4) test } 
object(cui_element)(1) { [value]= string(7) changed } 

Working url: http://biuro.pablosoft.com.pl/~zork/ref/tests.php

regards,
Zork.


-- 
Edit Bug report at: http://bugs.php.net/?id=11768edit=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 #11728 Updated: (null) given instead of actual error message

2001-06-28 Thread cgi

ID: 11728
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: PostgreSQL related
Operating system: Linux 2.2.19
PHP Version: 4.0.6
Description: (null) given instead of actual error message

Two examples:
?PHP
$link_id = pg_pconnect (host='localhost' user='root' password='foo') or print 
($php_errormsg);
$link_id = pg_connect (host='localhost' user='root' password='foo') or print 
($php_errormsg);
?

Previous Comments:
---

[2001-06-27 11:48:34] [EMAIL PROTECTED]
Could you please include shortest possible script
to reproduce this?

--Jani


---

[2001-06-27 05:09:21] [EMAIL PROTECTED]
Also, seems to only happen when using persistant connections.  Non-persistant 
connections will show the errors correctly.

---

[2001-06-27 04:43:09] [EMAIL PROTECTED]
Not sure if this is important but I'm retrieving the error from the $php_errormsg 
variable.

---

[2001-06-27 04:39:40] [EMAIL PROTECTED]
As of PHP 4.0.6 detailed errors concerning PostgreSQL are not being given, instead 
(null) is shown.

For instance 4.0.5 will show:
Unable to connect to PostgreSQL server: Password authentication failed for user 
'foouser'

4.0.6 currently shows:
Unable to connect to PostgreSQL server: (null)

I can give more detailed info/specs if needed.

Thanks!

---


Full Bug description available at: http://bugs.php.net/?id=11728


-- 
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 #11769: PDF_setcolor (invalid type of the third argument)

2001-06-28 Thread cedric . scheyder

From: [EMAIL PROTECTED]
Operating system: Solaris 2.8
PHP version:  4.0.5
PHP Bug Type: PDF related
Bug description:  PDF_setcolor (invalid type of the third argument)

PHP_FUNCTION(pdf_setcolor) {
zval **arg1, **arg2, **arg3, **arg4, **arg5, **arg6, **arg7;
PDF *pdf;




float c1; == TO BE MODIFIED !! (replace the int by a 
float)




if (ZEND_NUM_ARGS() != 7 || zend_get_parameters_ex(7, arg1, arg2, arg3, 
arg4, arg5, arg6, arg7) == FAILURE) {
WRONG_PARAM_COUNT;
}

ZEND_FETCH_RESOURCE(pdf, PDF *, arg1, -1, pdf object, le_pdf);

convert_to_string_ex(arg2);
convert_to_string_ex(arg3);
convert_to_double_ex(arg4);
convert_to_double_ex(arg5);
convert_to_double_ex(arg6);
convert_to_double_ex(arg7);

if (0 == (strcmp(Z_STRVAL_PP(arg3), spot))) {
c1 = (int) Z_DVAL_PP(arg4)-PDFLIB_SPOT_OFFSET;
} else if(0 == (strcmp(Z_STRVAL_PP(arg3), pattern))) {
c1 = (int) Z_DVAL_PP(arg4)-PDFLIB_PATTERN_OFFSET;
} else {
c1 = (float) Z_DVAL_PP(arg4);
}

PDF_setcolor(pdf,
Z_STRVAL_PP(arg2),
Z_STRVAL_PP(arg3),
(float) c1,
(float) Z_DVAL_PP(arg5),
(float) Z_DVAL_PP(arg6),
(float) Z_DVAL_PP(arg7));

RETURN_TRUE;
}



-- 
Edit Bug report at: http://bugs.php.net/?id=11769edit=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 #11769 Updated: PDF_setcolor (invalid type of the third argument)

2001-06-28 Thread cedric . scheyder

ID: 11769
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: PDF related
Operating system: Solaris 2.8
PHP Version: 4.0.5
Description: PDF_setcolor (invalid type of the third argument)

in pdf.c file:

PHP_FUNCTION(pdf_setcolor) {
zval **arg1, **arg2, **arg3, **arg4, **arg5, **arg6, **arg7;
PDF *pdf;



/* int c1;  */
float c1; == TO BE MODIFIED !! (replace the 
int by a
float)




if (ZEND_NUM_ARGS() != 7 || zend_get_parameters_ex(7, arg1, 
arg2,
arg3, arg4, arg5, arg6, arg7) == FAILURE) {
WRONG_PARAM_COUNT;
}

ZEND_FETCH_RESOURCE(pdf, PDF *, arg1, -1, pdf object, le_pdf);

convert_to_string_ex(arg2);
convert_to_string_ex(arg3);
convert_to_double_ex(arg4);
convert_to_double_ex(arg5);
convert_to_double_ex(arg6);
convert_to_double_ex(arg7);

if (0 == (strcmp(Z_STRVAL_PP(arg3), spot))) {
c1 = (int) Z_DVAL_PP(arg4)-PDFLIB_SPOT_OFFSET;
} else if(0 == (strcmp(Z_STRVAL_PP(arg3), pattern))) {
c1 = (int) Z_DVAL_PP(arg4)-PDFLIB_PATTERN_OFFSET;
} else {
c1 = (float) Z_DVAL_PP(arg4);
}

PDF_setcolor(pdf,
Z_STRVAL_PP(arg2),
Z_STRVAL_PP(arg3),
(float) c1,
(float) Z_DVAL_PP(arg5),
(float) Z_DVAL_PP(arg6),
(float) Z_DVAL_PP(arg7));

RETURN_TRUE;
}

Previous Comments:
---

[2001-06-28 05:03:45] [EMAIL PROTECTED]
PHP_FUNCTION(pdf_setcolor) {
zval **arg1, **arg2, **arg3, **arg4, **arg5, **arg6, **arg7;
PDF *pdf;




float c1; == TO BE MODIFIED !! (replace the int by a 
float)




if (ZEND_NUM_ARGS() != 7 || zend_get_parameters_ex(7, arg1, arg2, arg3, 
arg4, arg5, arg6, arg7) == FAILURE) {
WRONG_PARAM_COUNT;
}

ZEND_FETCH_RESOURCE(pdf, PDF *, arg1, -1, pdf object, le_pdf);

convert_to_string_ex(arg2);
convert_to_string_ex(arg3);
convert_to_double_ex(arg4);
convert_to_double_ex(arg5);
convert_to_double_ex(arg6);
convert_to_double_ex(arg7);

if (0 == (strcmp(Z_STRVAL_PP(arg3), spot))) {
c1 = (int) Z_DVAL_PP(arg4)-PDFLIB_SPOT_OFFSET;
} else if(0 == (strcmp(Z_STRVAL_PP(arg3), pattern))) {
c1 = (int) Z_DVAL_PP(arg4)-PDFLIB_PATTERN_OFFSET;
} else {
c1 = (float) Z_DVAL_PP(arg4);
}

PDF_setcolor(pdf,
Z_STRVAL_PP(arg2),
Z_STRVAL_PP(arg3),
(float) c1,
(float) Z_DVAL_PP(arg5),
(float) Z_DVAL_PP(arg6),
(float) Z_DVAL_PP(arg7));

RETURN_TRUE;
}


---


Full Bug description available at: http://bugs.php.net/?id=11769


-- 
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 #11770: configure --enable-xslt fails

2001-06-28 Thread rouvas

From: [EMAIL PROTECTED]
Operating system: Linux.2.2.14
PHP version:  4.0.6
PHP Bug Type: *Install and Config
Bug description:  configure --enable-xslt fails

configuring with --enable-xslt fails with :

checking whether to enable xslt support... yes
checking whether to enable the XSLT Sablotron backend... no
checking libexpat dir for Sablotron XSL support... no
configure: error: not found. Please re-install the  distribution

configuration is done with :

configure --enable-xslt

Thank you for your time.



-- 
Edit Bug report at: http://bugs.php.net/?id=11770edit=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]




Re: [PHP-DEV] Bug #11753: Need way to load sent XML

2001-06-28 Thread Chris Vandomelen

 From: [EMAIL PROTECTED]
 Operating system: Any
 PHP version:  4.0.5
 PHP Bug Type: Feature/Change Request
 Bug description:  Need way to load sent XML

 There appears to be no way to load an XML string that was sent to a PHP
 page with a content-type: text/xml. What I think could be appropriate is
 a function xml_load_from_request(). Then, a client could post a request
 without having to go through the trouble of form-encoding it.


Try using $HTTP_RAW_POST_DATA. Stuff that was POSTed with a content type
that isn't recognized by PHP will be placed there.

Chris


-- 
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] Email change request

2001-06-28 Thread Markus Fischer

Can somebody with enough karma please change my forward
[EMAIL PROTECTED] from [EMAIL PROTECTED] to
[EMAIL PROTECTED] ?

thx

- Markus

-- 
Markus Fischer,  http://guru.josefine.at/~mfischer/
EMail: [EMAIL PROTECTED]
PGP Public  Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1  C2B5 D674 B445 C227 2BD0

-- 
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 #10589 Updated: buildconf not compatible with Gnu Libtool 1.4

2001-06-28 Thread jmoore

ID: 10589
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Critical
Status: Closed
Bug Type: *Install and Config
Operating system: 
PHP Version: 4.0 Latest CVS (01/05/2001)
Assigned To: 
Comments:

This has been fixed has it not?? Libtool 1.4 works fine for me with latest CVS. CLosing

Previous Comments:
---

[2001-05-09 11:18:33] [EMAIL PROTECTED]
Reopened. There are some problems with libtool 1.4 still
so we propably won't support for it in 4.0.6. 

Marked to be fixed before 4.0.7.

--Jani



---

[2001-05-02 23:44:39] [EMAIL PROTECTED]
Fixed in CVS. Thanks for catching this!

--Jani


---

[2001-05-02 07:47:27] [EMAIL PROTECTED]
Any reason why this was closed?

---

[2001-05-01 21:13:18] [EMAIL PROTECTED]
[root@gecko /root]# cd /usr/src/php4
[root@gecko php4]# ./cvsclean; ./buildconf
buildconf: checking installation...
buildconf: autoconf version 2.13 (ok)
buildconf: automake version 1.4 (ok)
build/buildcheck.sh: test: integer expression expected before -ge
buildconf: libtool version 1.4 found.
   You need libtool version 1.3.3 or newer installed
   to build PHP from CVS.
make: *** [buildmk.stamp] Error 1

---

[2001-05-01 20:43:23] [EMAIL PROTECTED]
Works for me just fine. Try doing './cvsclean ; ./buildconf'

--jani


---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10589edit=2


-- 
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 #11771: Persistent connection does not close

2001-06-28 Thread acostin

From: [EMAIL PROTECTED]
Operating system: Linux Redhat 7.1
PHP version:  4.0.6
PHP Bug Type: PostgreSQL related
Bug description:  Persistent connection does not close

Hello,
I have a connection leak problem when connecting to PGsql.
The connection just hang around and does not close. I have 
tryied to stress the server by doing *a lot* of persistent 
connections in a header(redirect) loop, and the pool 
worked ok with the stress. After a night of some 
connections, it grew to the maximum. (I use the PHAkt 
module for Ultradev PHP development)

I have tried to limit the maximum Pconnection number, but 
it is not working

I have built PHP like this.
 './configure' '--prefix=/usr' 
'--with-config-file-path=/etc' '--disable-debug' 
'--enable-pic' '--enable-shared' 
'--enable-inline-optimization' 
'--with-apxs=/usr/sbin/apxs' '--with-exec-dir=/usr/bin' 
'--with-regex=system' '--with-gettext' '--with-gd' 
'--with-jpeg-dir=/usr' '--with-png' '--with-zlib' 
'--with-db2' '--with-db3' '--with-gdbm' 
'--enable-debugger' '--enable-magic-quotes' 
'--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' 
'--enable-sysvshm' '--enable-track-vars' '--enable-yp' 
'--enable-ftp' '--enable-wddx' '--without-mysql' 
'--without-oracle' '--without-oci8' '--with-xml' 
'--with-pdflib'





-- 
Edit Bug report at: http://bugs.php.net/?id=11771edit=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 #11772: configure keeps telling 'This c-client library does not support SSL'

2001-06-28 Thread wouter

From: [EMAIL PROTECTED]
Operating system: Linux 2.2.19 - Slackware 7.1
PHP version:  4.0.6
PHP Bug Type: *Install and Config
Bug description:  configure keeps telling 'This c-client library does not support SSL'

Using IMAP-2000c. I tried a lot of options.

IMAP-build:
cd imap-2000c/
make slx SPECIALAUTHENTICATORS=ssl SSLDIR=/usr/local/ssl
mkdir lib
mkdir include
cp -af c-client/c-client.a ./lib/libc-client.a
cp -af c-client/rfc822.h ./include/
cp -af c-client/mail.h ./include/
cp -af c-client/linkage.h ./include/

PHP-build: (just to check wheter it would work or not)
cd php-4.0.6/
./configure --with-apache=../apache_1.3.20 --with-openssl=/usr/local/ssl 
--with-imap=../imap-2000c --with-imap-ssl

Also tried --with-imap-ssl=../imap-2000c and --with-imap-ssl=/usr/local/ssl 

Used to use the last one with previous versions of PHP4, and that worked.



-- 
Edit Bug report at: http://bugs.php.net/?id=11772edit=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]




Re: [PHP-DEV] Memory limit is used for all scripts instead of one?

2001-06-28 Thread Zeev Suraski

memory_limit applies for the duration of a single script.  Each script will 
not be allowed to obtain more than 8MB;  So, the problem you're having 
originates someplace else (perhaps other parts of PHP grow to consume more 
memory, e.g., persistent resource tables or something of the sort).

Zeev

At 17:52 27/6/2001, Swift wrote:
Warning: Could not execute mail delivery program in
/local/Web/sites/phpweb/bugs.php on line 419
Mail not sent!
Please send this page in a mail to [EMAIL PROTECTED] manually.

--

Hi there!

As far as I understand, the option memory_limit sets the mem-limit for

ONE script.
I installed PHP as a Apache module and I set the memory_limit to 16M
(via php.ini).

When I allocate 8M of memory, all works fine. But when two different
scripts each allocate 8M, I will get sometimes the following message:
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to
allocate 4194304 bytes) in /usr/local/httpd/htdocs/testxx.php on line 6

Both scripts (testx.php and testxx.php) contain the following code:
?php

   $str = x;
   for($i=0; $i23; $i++)
   {
 $str .= $str;
 echo strlen($str) . br;
   }
?

First, 1 byte will be allocated, then 2, then 4 and so on. The last
allocated string has a size of 8M.
It's a little difficult to reproduce the problem because I have to call
both scripts exactly at the same time from my browser. But, as I said,
sometimes I get the described error-message.

My question is: Is this normal and memory_limit sets the limit for ALL
scripts that are currently running or is this a bug?

Thanks in advance!

  ... tobias wiersch from germany



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

--
Zeev Suraski [EMAIL PROTECTED]
CTO   co-founder, Zend Technologies Ltd. http://www.zend.com/


-- 
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 #11756 Updated: Private, Protected variables in classes

2001-06-28 Thread derick

ID: 11756
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Analyzed
Bug Type: Feature/Change Request
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

This will be dealt with with the new version of the Zend engine. The timeframe is a 
few months... so please stay tuned...

Previous Comments:
---

[2001-06-27 18:05:08] [EMAIL PROTECTED]
for example:
class 
{
private:
var $myvar;
var $myvar2:
public:
var $myvar3;

function myfoo()
{
print the variable is :  . $myvar
}
}

will be converted on the fly by PHP interpreter to 
class
{
var $myvar_993679346;
var $myvar2_993679346:
var $myvar3;

function myfoo()
{
print the variable is :  . $myvar_993679346;
}
}

Note that 993679346 is the time stamp got by time(). PHP interpreter when it starts up 
will store this
timestamp value in a global var and use it throught to mangle all the private 
variables declared in
all the classes in all the files..


---

[2001-06-27 17:47:52] [EMAIL PROTECTED]
I have a good idea. It is extremely easy to implement private, protected variables in 
classes.

PHP can use the name mangling of variables to implement private variables in classes. 
This technique is used by python language.

What you do is - PHP will read the class and simply change the variable names to 
variablename_timestamp. Where timestamp is unique id got by time() function.

Classes need private, protected variables. What do you say??



---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11756edit=2


-- 
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 #11773: String ++ error

2001-06-28 Thread support

From: [EMAIL PROTECTED]
Operating system: RH6.2 Linux
PHP version:  4.0.6
PHP Bug Type: Strings related
Bug description:  String ++ error

In 4.0.5 if you use $string++ and then fetch $string[x] it works.
In 4.0.6 if you do same it returns null!
see http://www.obanworld.co.uk/stringerror.php 4.0.4pl1 working
see http://www.obantec.com/stringerror.php for 4.0.5 working
see http://www.obantec.net/stringerror.php for 4.0.6 failing

Source is http://www.obantec.com/stringerror.txt


-- 
Edit Bug report at: http://bugs.php.net/?id=11773edit=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 #11774: Unable to load dynamic library 'C:/PHP/extensions/php_oci8.dll'

2001-06-28 Thread fabio . pascarella

From: [EMAIL PROTECTED]
Operating system: Win NT - IIS4 - CGI
PHP version:  4.0.6
PHP Bug Type: OCI8 related
Bug description:  Unable to load dynamic library 'C:/PHP/extensions/php_oci8.dll' 

The CGI module fails to load the OCI8 dll.


-- 
Edit Bug report at: http://bugs.php.net/?id=11774edit=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 #11676 Updated: A few apache children consume all memory and CPU.

2001-06-28 Thread derick

ID: 11676
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Scripting Engine problem
Operating system: 
PHP Version: 4.0 Latest CVS (2001-06-25)
Assigned To: 
Comments:

You don't need to set the CFLAGS yourself, the -O9 is known to cause problems.
Please try to compile without setting ANY CFLAGS yourself.

Derick

Previous Comments:
---

[2001-06-27 14:30:05] [EMAIL PROTECTED]
Here it is:
CFLAGS=-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro 
-march=pentiumpro -fomit-frame-pointer -fno-exceptions 
./configure 
--with-apache=../apache_1.3.20 
--with-mysql 
--disable-debug 
--with-gnu-ld 
--enable-memory-limit 
--enable-inline-optimization

I don't remember exactly, but i think i had tried removing ALL gcc optimization 
options, with the same results...
During another crash (pre-crash actually :) i managed to backtrace a httpd which had 
this stack:

#0  0x4012c238 in chunk_free ()
#1  0x4012bfaa in __cfree ()
#2  0x80fb8f2 in _efree ()

The other httpd i backtraced had all the stack like this:

#0  0x4012c23e in chunk_free ()
#1  0x4012bfaa in __cfree ()
#2  0x80fbcbf in shutdown_memory_manager ()

Hope this helps...

---

[2001-06-27 11:57:34] [EMAIL PROTECTED]
what was the configure line used to configure PHP ?


---

[2001-06-26 14:32:38] [EMAIL PROTECTED]
Ignore the last comment, wrong bug report :)

---

[2001-06-26 14:31:52] [EMAIL PROTECTED]
Output buffering indeed cannot be used inside output handler functions.  However, the 
code that handled that error situation contained a bug that caused PHP to enter an 
infinite loop.  This bug is now fixed (although the limitation of not being able to 
use output buffering inside output handlers still applies)

---

[2001-06-26 07:32:26] [EMAIL PROTECTED]
Well, the problem is that we have many virtual hosts on that server, each using it's 
own log file...
I can confirm that the gdb trace for ALL the many dead process, which are in running 
state, gives the three lines:
#0  0x4012c23e in chunk_free ()
#1  0x4012bfaa in __cfree ()
#2  0x80fbcbf in shutdown_memory_manager ()
(it happened this morning too)

Is there some way to know which script was executing just before the child died, 
please tell me! 

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11676edit=2


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

2001-06-28 Thread Derick Rethans

Hello,

as I about to write PHP scripts which use the DOM XML extension, I'd like
to know which version of Dom XML will be in next versions of PHP. THis is
to make sure I don't have to rewrite them later on. Should I use the 4.0.6
one, or the 4.0.7 version of the extension?

regards,

Derick Rethans

-
PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED]
 SRM: Site Resource Manager - www.vl-srm.net
-
JDI Media Solutions - www.jdimedia.nl - [EMAIL PROTECTED]
 Boulevard Heuvelink 102 - 6828 KT Arnhem - The Netherlands
-


-- 
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] Assert callback handlers

2001-06-28 Thread Zak Greant

Hello All,

Can anyone see any problems with adding array ($object, 'method') syntax to
the assert handler functionality?

If not, I will submit a patch to add it in the next week. (unless someone
beats me to it ;)

--zak


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




Re: [PHP-DEV] Memory limit is used for all scripts instead ofone? NEW: CRASHING

2001-06-28 Thread Swift

Hi Zeev!

Zeev Suraski wrote:

 memory_limit applies for the duration of a single script.  Each script will
 not be allowed to obtain more than 8MB;  So, the problem you're having
 originates someplace else (perhaps other parts of PHP grow to consume more
 memory, e.g., persistent resource tables or something of the sort).

The problem arrived with PHP4.0.6 which I installed yesterday. But in the meantime I 
discovered
another BIG problem: Our server crashed tonight! Until yesterday PHP4.0.4pl1 was 
installed and
it run without problems for months. So it seems that PHP4.0.6 caused the problem.

I looked through the apache's error_log but I couldn't find anything special...the 
server
simply stopped.
Is this a known problem? Should I go back to 4.0.4pl1 or is it possible that I made a 
mistake
while compiling the source? But the strange thing is that the server crashed not 
instantly but
after 9 hours (we have 800,000 hits per day and at the time of the crash we had only a 
very
small load). There were no seg. fault or something like that.

Thanx for your help..

 ... tobias wiersch from .de



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




Re: [PHP-DEV] Memory limit is used for all scripts instead ofone? NEW: CRASHING

2001-06-28 Thread Zeev Suraski

This isn't a known problem (well, at least I haven't heard any such 
complaints).  It may be a coincidence (i.e. not related to 4.0.6) - I'd 
wait and see if this problem persists.

Zeev

At 14:46 28/6/2001, Swift wrote:
Hi Zeev!

Zeev Suraski wrote:

  memory_limit applies for the duration of a single script.  Each script will
  not be allowed to obtain more than 8MB;  So, the problem you're having
  originates someplace else (perhaps other parts of PHP grow to consume more
  memory, e.g., persistent resource tables or something of the sort).

The problem arrived with PHP4.0.6 which I installed yesterday. But in the 
meantime I discovered
another BIG problem: Our server crashed tonight! Until yesterday 
PHP4.0.4pl1 was installed and
it run without problems for months. So it seems that PHP4.0.6 caused the 
problem.

I looked through the apache's error_log but I couldn't find anything 
special...the server
simply stopped.
Is this a known problem? Should I go back to 4.0.4pl1 or is it possible 
that I made a mistake
while compiling the source? But the strange thing is that the server 
crashed not instantly but
after 9 hours (we have 800,000 hits per day and at the time of the crash 
we had only a very
small load). There were no seg. fault or something like that.

Thanx for your help..

  ... tobias wiersch from .de

--
Zeev Suraski [EMAIL PROTECTED]
CTO   co-founder, Zend Technologies Ltd. http://www.zend.com/


-- 
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 #11062 Updated: Sharing Violation Error Message

2001-06-28 Thread rkenny

ID: 11062
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Directory function related
Operating system: NT 4.0 SP6a
PHP Version: 4.0.5
Description: Sharing Violation Error Message

Yes it does.  :(   Does the folder need to have special permissions?  Right now I've 
got SYSTEM and CREATOR_OWNER with full controll, and a bunch of groups.

Previous Comments:
---

[2001-06-23 20:58:38] [EMAIL PROTECTED]
Does this happen with PHP 4.0.6 ?


---

[2001-06-04 01:27:47] [EMAIL PROTECTED]
In order to regain control over the directories, it is necessary to restart the entire 
IIS Admin Service.  Restarting the World Wide Web Publishing Service alone does 
not fix the problem.

---

[2001-05-23 14:34:47] [EMAIL PROTECTED]
Hello, I've written a simple script which can recurse into subdirectories when needed, 
and print out an HTML table with with details about the files it finds.  The problem 
is that after I run this script, if I try and rename one of the folders it has 
recursed into, I get an error message which reads:

Cannot rename [folder name]:  There has been a sharing violation.  The source or 
destination file may be in use.

Note that I can still rename files, just not folders.  If I stop and start IIS, I am 
able to rename folders until I run the script again.  I believe I'm using the 
closedir() function correctly, and have even echoed out when the directories are 
opened and closed to make sure I'm not messing up.  One last thing to note is that 
this script is being run on an NTFS partition.  A copy of the script follows:


?php

// $hddir is the hard drive directory passed into this function from the calling page
// $mode can be either single or recurse
// $order is just ignored right now, but I would like it to be alphabetical, size, 
etc.


function list_dir($hddir, $mode, $order) {
$webdir = http://www.foo.com; . str_replace(/inetpub/www_root, , $hddir);
$handle = opendir($hddir);
chdir($hddir);


// if there are files in the directory, print out the table header and set the 
flag
// once we find a file, don't run the test (and print out the table header) 
again
while (($file = readdir($handle))  ($file_count  1)) {
if ($file == '.' || $file== '..') 
continue;
else if (is_file($file)) {
echo table border=0 cellpadding=2 cellspacing=2;
echo trth/thth class=highFilename/th;
echo th class=highSize/th;
echo th class=highModified/th/tr;
$file_count += 1;
}
}


rewinddir ($handle);// start reading again 
from the beginning of the directory
while ($file = readdir($handle)) {  // while we can read an entry 
from the directory (files and dirs)
if ($file == '.' || $file== '..') 
continue;

else if (($mode == recurse)  (is_dir($file))  (substr($file, 
0, 1) != _)) {   // don't recurse directories which begin with an underscore
$dir_count += 1;
$places_to_go[$dir_count] = $file;
}

else if (is_file($file)) {
$extension = ''; 
$parts = split('.', $file); 
if (count($parts)  1) $extension = end($parts); 
if (!$extension  count($parts)  2) $extension = 
prev($parts);

if (($extension == doc) || ($extension == DOC) || 
($extension == rtf))
echo trtdimg src=/pics/icons/word_sm.gif 
width=20 height=19/td;
else
echo trtdimg src=/pics/spacer.gif width=20 
height=19/td;

echo td bgcolor=silvera href= . $webdir . / . $file 
.  target=_blank . $file . /a/td; 

$j = 0; 
$ext = array( Bytes,  KB,  MB,  GB,  TB); 
$file_size = filesize($file); 
while ($file_size = pow(1024,$j)) ++$j; 
$file_size = round($file_size / pow(1024,$j-1) * 100) 
/ 100 . $ext[$j-1];
echo td bgcolor=silver . $file_size .  /td;

$filemod = filemtime($file); 
$file_modtime = date(F j Y h:i:s A, $filemod); 
echo td bgcolor=silver . $file_modtime .  /td/tr;
   

Re: [PHP-DEV] Memory limit is used for all scripts insteadofone? NEW: CRASHING

2001-06-28 Thread Swift

Hi Zeev!

Zeev Suraski wrote:

 This isn't a known problem (well, at least I haven't heard any such
 complaints).  It may be a coincidence (i.e. not related to 4.0.6) - I'd
 wait and see if this problem persists.

Thanks for your help. Ok, I will give it a try.
But back to the first problem. You said that the memory_limit applies to only ONE
script (as I thought). You said that the problem may be somewhere else.

But I got the described error-message without any load! I cutted our leased-line
before the tests and then only executed the 2 test-scripts. And in 10-20% of the
cases I got the error-message. BTW, our server has 512MB RAM and 90% free, so RAM
seems not to be the problem. The second strange thing is: With 4.0.4pl1 the
memory_limit was 8M and with 4.0.6 I increased it to 16M. I never got the message
with 4.0.4pl1 but with 4.0.6 nearly instantly (after a few minutes the first time)!

The two test-scripts only allocate 8MB each. When I execute only these two scripts
and the server has no load besides of that and 400MB free RAM, and the mem-limit
is 16M --- why will I get sometimes the out-of-memory warning? This theoretically
can't be, right!? Maybe this has something to do why the server crashed tonight...?
Help!

 ... tobias wiersch from .de



-- 
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 #11775: Typo in cpdf.c

2001-06-28 Thread graeme

From: [EMAIL PROTECTED]
Operating system: Linux i386
PHP version:  4.0.6
PHP Bug Type: Compile Failure
Bug description:  Typo in cpdf.c

Compiling with cpdf causes an error
make[3]: Entering directory `/usr/local/src/build/php4/ext/cpdf'
gcc -I. -I/usr/local/src/build/php4/ext/cpdf -I/usr/local/src/build/php4/main 
-I/usr/local/src/build/php4 -I/usr/local/src/build/php4/Zend -I/usr/local/include 
-I/usr/include/mysql -I/usr/local/src/build/php4/ext/xml/expat 
-I/usr/local/src/build/php4/TSRM   -g -O2  -c cpdf.c  touch cpdf.lo
cpdf.c:36: zend/zend_list.h: No such file or directory
make[3]: *** [cpdf.lo] Error 1
make[3]: Leaving directory `/usr/local/src/build/php4/ext/cpdf'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/build/php4/ext/cpdf'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/build/php4/ext'
make: *** [all-recursive] Error 1


This is due to line 36 of cpdf.c:
#include zend/zend_list.h

Should be:
#include Zend/zend_list.h



-- 
Edit Bug report at: http://bugs.php.net/?id=11775edit=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 #11762 Updated: bad example

2001-06-28 Thread Xuefer

ID: 11762
User Update by: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Documentation problem
Operating system: win2k
PHP Version: 4.0.5
Description: bad example

I think i've downloaded the lastest version of chm file.
I do also download it again.
isn't the CHM version of document the newest document ?

Previous Comments:
---

[2001-06-27 23:03:36] [EMAIL PROTECTED]
You must be looking into old manual or something since
the example I see on the getdate() manual page has perfect,
working example in it.


---

[2001-06-27 22:34:30] [EMAIL PROTECTED]
PHP manual
getdate
(PHP 3, PHP 4 )

getdate -- Get date/time information
Description

array getdate ([int timestamp])


Example 1. getdate() example 

$today = getdate(); 
$month = $today[month]; 
$mday = $today[mday]; 
$year = $today[year]; 
echo $month $mday, $year;
  
 
---
- $mday = $today[mday]; 
warnning: Use of undefined constant mday - assumed 'mday'
although a undefined constant will be assumed as a string, it's still a bad usage of 
this auto conversion.

php manual writers shouldn't make a bad guide for php learners

thx

---


Full Bug description available at: http://bugs.php.net/?id=11762


-- 
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 #11777: php apache dso coredumps using die() inside function for xslt_set_error_handler

2001-06-28 Thread tom

From: [EMAIL PROTECTED]
Operating system: NetBSD/Alpha 1.5W-current
PHP version:  4.0 Latest CVS (2001-06-28)
PHP Bug Type: Sablotron XSL
Bug description:  php apache dso coredumps using die() inside function for 
xslt_set_error_handler

function xsl_error($parser, $code, $level, $errors)
{
  ...
  die(this will cause a coredump or fatal trap);
}

xslt_set_error_handler($parser, xsl_error);

by calling die() inside a function for xslt_set_error_handler will cause my 
NetBSD/Alpha system to either coredump or go to a fatal user trap. it coredumps if i 
didn't compile with '--enable-debug'. with debug compiled in, it usually reports a 
fatal user trap. this only happens with the PHP Apache DSO. as a cgi, it exits just 
fine.

i've verified and repeated this on PHP 4.0.5 and the latest cvs.

---cut---
Jun 28 08:17:06 ns01 /netbsd: CPU 0: fatal user trap:
Jun 28 08:17:08 ns01 /netbsd:
Jun 28 08:17:08 ns01 /netbsd: CPU 0trap entry = 0x4 (unaligned access fault)
Jun 28 08:17:08 ns01 /netbsd: CPU 0a0 = 0x2b5d3f5c5e5b5e27
Jun 28 08:17:08 ns01 /netbsd: CPU 0a1 = 0x28
Jun 28 08:17:08 ns01 /netbsd: CPU 0a2 = 0x1
Jun 28 08:17:08 ns01 /netbsd: CPU 0pc = 0x1606b9c24
Jun 28 08:17:08 ns01 /netbsd: CPU 0ra = 0x160731664
Jun 28 08:17:09 ns01 /netbsd: CPU 0curproc= 0xfc00356af400
Jun 28 08:17:09 ns01 /netbsd: CPU 0pid = 6108, comm = httpd
Jun 28 08:17:09 ns01 /netbsd:
Jun 28 08:17:09 ns01 /netbsd: pid 6108 (httpd), uid 71: exited on signal 11 (core not 
dumped, err
 = 1)
---cut---


-- 
Edit Bug report at: http://bugs.php.net/?id=11777edit=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 #11735 Updated: mssql_pconnect fails

2001-06-28 Thread kris

ID: 11735
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: MSSQL related
Operating system: Win 2000 w/SP 2
PHP Version: 4.0.5
Description: mssql_pconnect fails

Update:

I was wrong about the 'connect' solution.  It seems that just using connect just 
prolongs the time until the crash.  Once the crash occurrs, no further MSSQL 
connections will occurr either external or to the same machine.  The only solution 
that does not break is if the database is on the same machine as the web server.

Kris.

Previous Comments:
---

[2001-06-27 09:52:23] [EMAIL PROTECTED]
Hey.

It seems there is a problem with mssql_pconnect and connecting to an outside 
databases.  If the database, PHP, and web server are all running on the same machine, 
pconnnect works just fine with no errors.  If the database is external, the pconnect 
will succeed the first time, but fail for subsequent tries with a PHP access violation 
error message.  The pconnect is connecting to a MS SQL 7 server via the server IP 
address, userid, and password combination.  

Two things seem to cause the connection not to break:  switch the mssql_pconnect 
command to mssql_connect or have the database, PHP, and web server all be the same 
machine.

Please email me if more information is needed to help solve this problem.  PHP is 
wonderfull!!  Thank you and have a nice day!

Kris.

---


Full Bug description available at: http://bugs.php.net/?id=11735


-- 
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] More infos: Memory limit is used for all scripts instead of one?

2001-06-28 Thread Swift

Hi Zeev!

I tested a little around:
1) I dropped our leased-line, so there is no load.
2) I set the mem_limit to 12M.
3) Reboot
4) I used the 2 test-scripts as shown in one of my last mails. I called both
scripts via wget at the same time. Each script should allocate 8M.
5) The wget-script then automatically saves the result and waits for 10 seconds.
Then looping 4) and 5) 100 times.

When I looked at the results I saw that in 40-50% of cases I will get the described
out-of-mem-error!? And this can't be, because there was 400MB free memory. Do you
have an idea what I can do now?

After that I made a reboot and plugged our leased-line back in place.
I fear that the server will crash again tonight. But the server will now write the
results from 'ps', 'pstree' and 'free' every 2 minutes to a text-file. I hope this
will explain some things.

 ... tobias wiersch from .de



-- 
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 #11698 Updated: Memory leak

2001-06-28 Thread sniper

ID: 11698
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Analyzed
Old-Bug Type: Apache related
Bug Type: DOM XML related
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

Most of the leaks are caused by domxml-functions.



Previous Comments:
---

[2001-06-27 13:33:46] [EMAIL PROTECTED]
Does this happen with certain script?
If so, please include short version of the script
that still reproduces the leak.


---

[2001-06-27 10:06:48] [EMAIL PROTECTED]
The memory usage of my webserver (apache 1.3.19) is growing .. and growing ... and 
growing ... until m mashine craches.

disabling the domxml-functions? sorry, I depend on them.
But I disable them, the growing is slower but still there ...
Stefan

---

[2001-06-27 08:42:20] [EMAIL PROTECTED]
And if you disable domxml extension, does it continue to leak?


---

[2001-06-27 08:41:58] [EMAIL PROTECTED]
I'd like to know how you can tell that there is a leak
on windows? 

--Jani


---

[2001-06-26 22:49:04] [EMAIL PROTECTED]
Undoubtedly this is the domxml extension.  The *nix side leaks memory pretty badly as 
well, IIRC.

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11698edit=2


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




Re: [PHP-DEV] Bug #11749 Updated: Unserialize dies with Apache Module but is FINE with CGI

2001-06-28 Thread Thies C. Arntzen

On Wed, Jun 27, 2001 at 06:32:13PM -, [EMAIL PROTECTED] wrote:
 ID: 11749
 User Update by: [EMAIL PROTECTED]
 Status: Open
 Bug Type: Scripting Engine problem
 Operating system: Win32 (Win 2k)
 PHP Version: 4.0.6
 Description: Unserialize dies with Apache Module but is FINE with CGI
 
 If it helps:
 
 a)Script
 b)Datafile

works on linux.
please try changing 

@fopen($FileLocation,r);
to 
@fopen($FileLocation,rb);

and
fopen($FileLocation,w);
to
fopen($FileLocation,wb);


to force binary mode for your file - i'm pretty sure it will
fix your problem!

tc

-- 
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 #11778: french version of manual/fr/function.setcookie.php wrong

2001-06-28 Thread dan

From: [EMAIL PROTECTED]
Operating system: not applicable
PHP version:  4.0.6
PHP Bug Type: Documentation problem
Bug description:  french version of manual/fr/function.setcookie.php wrong

In the french manual, the function description of setcookie is wrong:
it says that the setcookie function will be performed in reverse order, but that
true only for PHP3.



-- 
Edit Bug report at: http://bugs.php.net/?id=11778edit=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 #11780: udm_find makes php crash

2001-06-28 Thread cedric

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.0.6
PHP Bug Type: Unknown/Other Function
Bug description:  udm_find makes php crash

To reproduce the problem :

htmlbody
Hello Worldbr
?php
$udm_agent = udm_alloc_agent( 
mysql://myuser:mypass@localhost/mnoGoSearch/,single);
if ( $udm_agent == false )
echo Agent NOKbr;
else
echo Agent OKbr;
$res = udm_find( $udm_agent, word );
?
/body/html

Important notice: It seems to crash ONLY when the word
belongs the dictionary (dict table).
(This seems to prove that the udm_agent is well-defined)

Configuration :
./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs --enable-trans-sid 
--with-curl --with-mnogosearch=/usr/local/bin/mnogosearch --enable-debug

Apache 1.3.19

Backtrace:

#0  _dl_lookup_versioned_symbol (undef_name=0x804bf7a unlink, ref=0xbd18, 
symbol_scope=0x0, 
reference_name=0x40010187 , version=0x40151048, reloc_type=7) at do-lookup.h:82
#1  0x40009cfa in fixup (l=0x40013368, reloc_offset=1668) at dl-runtime.c:75
#2  0x40009e70 in _dl_runtime_resolve () at dl-runtime.c:170
#3  0x80779b3 in main ()


-- 
Edit Bug report at: http://bugs.php.net/?id=11780edit=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] Re: More infos: Memory limit is used for all scripts instead of one?

2001-06-28 Thread Zeev Suraski

At 17:00 28/6/2001, Swift wrote:
Hi Zeev!

I tested a little around:
1) I dropped our leased-line, so there is no load.
2) I set the mem_limit to 12M.
3) Reboot
4) I used the 2 test-scripts as shown in one of my last mails. I called both
scripts via wget at the same time. Each script should allocate 8M.
5) The wget-script then automatically saves the result and waits for 10 
seconds.
Then looping 4) and 5) 100 times.

When I looked at the results I saw that in 40-50% of cases I will get the 
described
out-of-mem-error!? And this can't be, because there was 400MB free 
memory. Do you
have an idea what I can do now?

The 400MB have nothing to do with this error;  You get it when you reach 
PHP's memory limit.
Remember that PHP uses quite a lot of memory for its own purposes, other 
than the memory you use for your script.  The data structures used by the 
engine, the modules, the symbol tables (environment, etc.) and so on and so 
forth - all consume additional memory.  While I wouldn't estimate they take 
whole 4MB, it's not impossible.


Zeev


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