#25172 [Fbk->Opn]: register_globals=on and $HTTP_HOST sometimes empty

2003-08-21 Thread php at lansco dot de
 ID:   25172
 User updated by:  php at lansco dot de
 Reported By:  php at lansco dot de
-Status:   Feedback
+Status:   Open
 Bug Type: Apache2 related
 Operating System: Linux
 PHP Version:  4.3.3RC5-dev
 New Comment:

I've created a Directory with a few interesting files:

http://www.lansco.de/php/

Please try

http://www.lansco.de/php/bug-25172.php

as often as necessary to reproduce the error.

"register_globals" is only set in the php.ini


Previous Comments:


[2003-08-21 18:11:52] [EMAIL PROTECTED]

One more thing: Where do you set "register_globals" ?
(php.ini and/or httpd.conf and/or .htaccess ?)

And can you try with this script instead:

';
var_dump($HTTP_HOST);
var_dump($_SERVER['HTTP_HOST']);
echo '';
?>

I can not reproduce this..





[2003-08-21 08:38:25] php at lansco dot de

Apache-configure:
"./configure" \
"--prefix=/usr/local/apache2" \
"--with-mpm=prefork" \
"--enable-modules=deflate expires include info rewrite ssl unique_id
usertrack log_config logio rewrite vhost_alias so ext_filter dav
headers speling"

PHP-configure:
'./configure' '--with-mysql=/usr/local/mysql' '--enable-ftp'
'--with-gd' '--with-gd-dir=/usr/local' '--with-jpeg'
'--with-jpeg-dir=/usr/local' '--with-apxs2=/usr/local/apache2/bin/apxs'
'--with-gettext' '--with-mcrypt' '--with-imap' '--with-imap-ssl'
'--with-ldap' '--with-zlib-dir=/usr/include' '--enable-xslt'
'--with-xslt-sablot' '--enable-exif'



[2003-08-21 08:29:30] [EMAIL PROTECTED]

What was the configure line used to configure Apache?
(And PHP too)




[2003-08-21 08:25:51] php at lansco dot de

variables_order = EGPCS
gpc_order = GPC
Apache Version = Apache/2.0.47 (Unix) mod_ssl/2.0.47 OpenSSL/0.9.6c
DAV/2 PHP/4.3.3RC5-dev



[2003-08-21 08:18:11] [EMAIL PROTECTED]

What are your variables_order and gpc_order settings?
(from phpinfo() output)
Which webserver? Apache? What version?




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/25172

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



#25198 [Fbk->Opn]: error_reporting() seems to affect whole server

2003-08-21 Thread red at raven dot ch
 ID:   25198
 User updated by:  red at raven dot ch
 Reported By:  red at raven dot ch
-Status:   Feedback
+Status:   Open
 Bug Type: PHP options/info functions
 Operating System: linux (redhat 9) apache 2.0.47
 PHP Version:  4.3.2
 New Comment:

hm, this is a server with about 40 domains running on it. so I don't
really like the idea of running a cvs-snapshot (or release-candidate).
well, I will try to recreate this one on my development-server.

apache2 configuration:

./configure --enable-so --enable-rewrite --enable-proxy


Previous Comments:


[2003-08-21 18:52:43] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

Also, what was the configure line you used for Apache2? 




[2003-08-21 12:40:48] red at raven dot ch

Description:

The global configuration shows the following:

error_reporting 20392039

when 2 scripts in 2 differents virtualhosts run at the same time and
the first one sets error_reporting(E_ALL) and the second one starts
before the first ended (and doesn't set error_reporting) it shows the
notices as well.

./configure  --with-apxs2=/usr/local/apache2/bin/apxs --enable-xml
--with-gd --with-png-dir=/usr --with-jpeg-dir=/usr --enable-track-vars
--enable-force-cgi-redirect --with-gettext --with-mysql=/usr
--with-zlib-dir=/usr --enable-sysvshm --enable-sysvsem --with-xslt
--with-ttf --with-freetype-dir=/usr/local --enable-gd-native-ttf
--disable-cgi --with-dom --with-dom-xslt --with-iconv






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



#25194 [Fbk->Opn]: require() not findings files when "." is in include_path

2003-08-21 Thread ri at kamp dot de
 ID:   25194
 User updated by:  ri at kamp dot de
 Reported By:  ri at kamp dot de
-Status:   Feedback
+Status:   Open
 Bug Type: Filesystem function related
 Operating System: Solaris 8
 PHP Version:  4CVS-2003-08-21 (stable)
 New Comment:

Yes it seems to be nfs related since includes on a local disk
(phpmyadmin) work well.


Previous Comments:


[2003-08-21 19:04:01] [EMAIL PROTECTED]

Works fine under Linux..but I don't have any NFS mount to work with.
Can you check if this happens only with the NFS?




[2003-08-21 11:00:31] ri at kamp dot de

Description:

require cannot open a file in the same directory as the calling script
[like require('./includefile.php')]. All dirs in the path have
permission 755. OS is solaris 8, documentroot mounted as NFS,
include_path has "." within. In the case this happens also getcwd() or
passthru("/bin/pwd") gives no result but passthru("/bin/ls") list the
"current" dir.

The function expand_filepath in main/fopen_wrappers.c gets an empty
result when calling VCWD_GETCWD(cwd, MAXPATHLEN);

This may not be a php bug (maybe solaris8 or nfs) but occurs only
within php. As workaround I changed expand_filepath to:
--
int cwd_pos;

result = VCWD_GETCWD(cwd, MAXPATHLEN);  
if (!result) {
//cwd[0] = '\0';
php_error_docref(NULL TSRMLS_CC, E_WARNING, 
"cwd not working for
%s",SG(request_info).path_translated);
strlcpy(cwd, SG(request_info).path_translated,
sizeof(cwd));
cwd_pos = strlen(cwd) - 1;

/* Strip filename */
while (!IS_SLASH(cwd[cwd_pos])
&& (cwd_pos >= 0)) {
cwd[cwd_pos--] = 0;
}
}
--

I know this is no final solution but the scripts work thereafter. 

Reproduce code:
---
include_path = ".:/usr/local/lib/php"
documentroot = "/home/htdocs"
script is in /home/htdocs/ (documentroot)



or



Actual result:
--
Fatal error: main(): Failed opening required './somefile.php'
(include_path='.:/usr/local/lib/php')





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



#25203 [NEW]: php -a doesn't work on windows

2003-08-21 Thread daniel at port dot as
From: daniel at port dot as
Operating system: windoze (all versions)
PHP version:  4.3.3RC4
PHP Bug Type: Scripting Engine problem
Bug description:  php -a doesn't work on windows

Description:

Interactive mode (php -a) doesn't seem to work on windows. File mode works
fine. I've tried various versions of windows and PHP, but the result is
the same. Interactive mode works fine in Linux.

Reproduce code:
---
C:\PHP>php -a
Interactive mode enabled


^C


Expected result:

working?

Actual result:
--


-- 
Edit bug report at http://bugs.php.net/?id=25203&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25203&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25203&r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=25203&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=25203&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25203&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=25203&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=25203&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=25203&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=25203&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=25203&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=25203&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25203&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=25203&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=25203&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=25203&r=gnused



#23220 [Com]: fgets() causes warning while reading data via SSL channel (HTTPS)

2003-08-21 Thread info at splendense dot nl
 ID:   23220
 Comment by:   info at splendense dot nl
 Reported By:  storozhilov at mail dot ru
 Status:   Assigned
 Bug Type: Filesystem function related
 Operating System: FreeBSD 4.8
 PHP Version:  4-STABLE-200307070330
 Assigned To:  wez
 New Comment:

Using '$buff = fgets ($f, 355);' does not give any error, however 356
does for me (php 4.3.2 solaris).

My script seems to work fine but maybe a response string greater than
355 chars will not work?!?


Previous Comments:


[2003-08-21 20:18:33] scottm at spamcop dot net

I've not verified this patch will work and I'll hopefully test it
tomorrow.

I believe it is reaching the end of the file and nr_bytes is returning
0 and this is being caught by an if statement which should be looking
for -1.

--- network.c   Thu Aug 21 21:06:43 2003
+++ network.c.patched   Thu Aug 21 21:13:09 2003
@@ -1011,13 +1011,14 @@
do {
nr_bytes = SSL_read(sock->ssl_handle, buf,
count);
 
-   if (nr_bytes <= 0) {
+   if (nr_bytes < 0) {
retry = handle_ssl_error(stream,
nr_bytes TSRMLS_CC);
if (retry == 0 &&
!SSL_pending(sock->ssl_handle)) {
stream->eof = 1;
}
} else {
-   /* we got the data */
+   /* we got the data */
+   stream->eof = 1;
break;
}
} while (retry);



[2003-08-05 09:43:36] uk at access dot lv

php4.3.2 configured with-openssl

if ($f = fopen('https://site', 'r')) {
while (!feof($f)) {
$buff = fgets ($f, 1024);
echo $buff;
}
}
fclose ($f);

Warning: fgets(): SSL: fatal protocol error

if i read just some bits then no error.



[2003-07-07 00:48:32] severitt at ihug dot co dot nz

After experiencing this same bug with php 4.3.2 on FreeBSD 4.4, I came
searched here and found this bug report.
After reading the comment to try the latest stable version, I compiled
and installed php4-STABLE-200307070330.
 However the problem still remains. It appears that maybe feof() is not
detecting the eof properly, because if I read in less bytes than the
the size of the response, I don't get this warning.



[2003-04-15 01:52:09] storozhilov at mail dot ru


After executing of this script following message appears:
Warning: fgets() [function.fgets]: SSL: fatal protocol error in
/blah/blah/blah/blah.php on line NN

PHP was configured with following arguments:
#!/bin/sh
./configure --with-apache=../apache_1.3.27rusPL30.17 --with-mod_charset
--with-pgsql=/usr/local/pgsql --with-mhash --with-sybase=/usr/local
--with-openssl




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



#23220 [Com]: fgets() causes warning while reading data via SSL channel (HTTPS)

2003-08-21 Thread scottm at spamcop dot net
 ID:   23220
 Comment by:   scottm at spamcop dot net
 Reported By:  storozhilov at mail dot ru
 Status:   Assigned
 Bug Type: Filesystem function related
 Operating System: FreeBSD 4.8
 PHP Version:  4-STABLE-200307070330
 Assigned To:  wez
 New Comment:

I've not verified this patch will work and I'll hopefully test it
tomorrow.

I believe it is reaching the end of the file and nr_bytes is returning
0 and this is being caught by an if statement which should be looking
for -1.

--- network.c   Thu Aug 21 21:06:43 2003
+++ network.c.patched   Thu Aug 21 21:13:09 2003
@@ -1011,13 +1011,14 @@
do {
nr_bytes = SSL_read(sock->ssl_handle, buf,
count);
 
-   if (nr_bytes <= 0) {
+   if (nr_bytes < 0) {
retry = handle_ssl_error(stream,
nr_bytes TSRMLS_CC);
if (retry == 0 &&
!SSL_pending(sock->ssl_handle)) {
stream->eof = 1;
}
} else {
-   /* we got the data */
+   /* we got the data */
+   stream->eof = 1;
break;
}
} while (retry);


Previous Comments:


[2003-08-05 09:43:36] uk at access dot lv

php4.3.2 configured with-openssl

if ($f = fopen('https://site', 'r')) {
while (!feof($f)) {
$buff = fgets ($f, 1024);
echo $buff;
}
}
fclose ($f);

Warning: fgets(): SSL: fatal protocol error

if i read just some bits then no error.



[2003-07-07 00:48:32] severitt at ihug dot co dot nz

After experiencing this same bug with php 4.3.2 on FreeBSD 4.4, I came
searched here and found this bug report.
After reading the comment to try the latest stable version, I compiled
and installed php4-STABLE-200307070330.
 However the problem still remains. It appears that maybe feof() is not
detecting the eof properly, because if I read in less bytes than the
the size of the response, I don't get this warning.



[2003-04-15 01:52:09] storozhilov at mail dot ru


After executing of this script following message appears:
Warning: fgets() [function.fgets]: SSL: fatal protocol error in
/blah/blah/blah/blah.php on line NN

PHP was configured with following arguments:
#!/bin/sh
./configure --with-apache=../apache_1.3.27rusPL30.17 --with-mod_charset
--with-pgsql=/usr/local/pgsql --with-mhash --with-sybase=/usr/local
--with-openssl




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



#25202 [Opn->Bgs]: problem compiling PHP on HP UX 11.0

2003-08-21 Thread sniper
 ID:   25202
 Updated by:   [EMAIL PROTECTED]
 Reported By:  wzaccone at telcordia dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Compile Failure
 Operating System: HP UX 11.0
 PHP Version:  Irrelevant
 New Comment:

Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.

We don't support anything below 4.3.2.



Previous Comments:


[2003-08-21 16:50:38] wzaccone at telcordia dot com

Description:

Getting the following error, installing php-4.1.2 on HP-UX 11.0.  can
you help us find the cause.  A customer of ours is installing an
earlier release of application software which was product tested using
php 4.1.2 on a new platform HPUX. and really need to find a cause for
php 4.1.2 or tell them to upgrade to 4.3.2 if it absolutely necessary. 
please let us know.. 
thanks 
Warren
 
php-4.1.2/TSRM -g -O2  -c sockets.c && touch sockets.lo
sockets.c: In function `accept_connect':
sockets.c:266: warning: passing arg 3 of `accept' from incompatible
pointer type
sockets.c: In function `zif_socket_getsockname':
sockets.c:808: warning: passing arg 3 of `getsockname' from
incompatible pointer  type
sockets.c: In function `zif_socket_getpeername':
sockets.c:863: warning: passing arg 3 of `getpeername' from
incompatible pointer  type
sockets.c: In function `zif_socket_sendmsg':
sockets.c:1628: warning: passing arg 3 of `getsockname' from
incompatible pointer type
.
.
. later get this fatal error..
.
php-4.1.2/TSRM -g -O2  -c pageinfo.c && touch pageinfo.lo
bison -y  parsedate.y && mv y.tab.c parsedate.c
*** Error exit code 141

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
Making install in Zend
Making install in main
Making install in ext







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



#25175 [Opn->Fbk]: session.use_trans_sid causes ob_get_length() to return incorrect value

2003-08-21 Thread sniper
 ID:   25175
 Updated by:   [EMAIL PROTECTED]
 Reported By:  phpbug at paypc dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Session related
 Operating System: Linux 2.4
 PHP Version:  4.3.2
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip





Previous Comments:


[2003-08-21 04:33:50] phpbug at paypc dot com

*ARGH* I hate "thinkoes" -- it should be obvious from context (and
perusing my phpconfig) that I've TURNED OFF enable_trans_sid, not
turned it on.

Upon re-reading my posting (naturally AFTER I'd hit submit), I noted
the think-o.

My apologies.  

=Apollyon=



[2003-08-21 04:31:10] phpbug at paypc dot com

OK, let me put forth some declarations so we're talking apples and
apples.

My test method:

echo -e "GET /legal/tester.php HTTP/1.1\r\nHost: 127.0.0.1\r\n" | nc
127.0.0.1 80 > dump

I wish to eliminate any possible "post-processing" or
browser-variations.

IE: "nc" is netcat, a commonly available network tool.

OK, onto the results of my tests.

I copied and pasted sniper's code *EXACTLY* as presented, with
whitespaces and line spacing as entered.  I obtained identical results
with both lynx and my netcat method, though lynx probably doesn't
support HTTP/1.1 because there was an additional header.

With Lynx Version 2.8.3rel.1:

HTTP/1.1 200 OK
Date: Thu, 21 Aug 2003 09:10:16 GMT
Server: Apache/1.3.27 Ben-SSL/1.48
Connection-Type: Keep-Alive
Content-Length: 4
Connection: close   < Additional header
Content-Type: text/html

With netcat:

HTTP/1.1 200 OK
Date: Thu, 21 Aug 2003 09:10:55 GMT
Server: Apache/1.3.27 Ben-SSL/1.48
Connection-Type: Keep-Alive
Content-Length: 4
Content-Type: text/html

In comparing the actual bytes sent over the wire against the advertised
content-length, the Content-Length header is correct.

If you wish to inspect my PHP build and setup configuration, you may do
so at: 

(I will be removing this after 24 hours.)

And yes, it's pretty loaded.  And yes, trans_sid is enabled, but in all
of my test harnesses which employ sessions, I've enabled cookies - and
they are created/used by the browsers involved.

*** AHH ***

Arigatoo gozaimashita to Moriyoshi-san for cautioning me to turn on
trans_sid, because when I disable it in my global php.ini, the
discrepancy disappears!

For my "complex" web-application which formerly reported bad sizing, I
received the following header (after turning off trans_sid):


HTTP/1.1 200 OK
Date: Thu, 21 Aug 2003 09:20:47 GMT
Server: Apache/1.3.27 Ben-SSL/1.48
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma: no-cache
Set-Cookie: PHPSESSID=a1c8bfb3f409580e57206d7c19eac473; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Content-Length: 2825
Content-Type: text/html


And doing a wc -c on the content-portion matches this size exactly
(with my netcat test).

Third-party validation via usage of
 confirms an exact
match of advertised Content-Length and what's actually received.

And lastly, and most importantly, the IE "hang" bug while accessing
this web application via an intranet is gone.

OK, fine, trans_sid broke it.  Why?  And should it have?  I'm
suspicious that the Esteemed Moriyoshi-san nailed this specific setting
in advance, as if to suspect it being a potential cause for buggage.

Inquiring minds want to know - if it's by design, please add it to the
documentation and FAQ.  I know alot of things about the ob_ functions
are unusual and cause some people hardship (of their own making).  This
one came out of left field.

=Apollyon=



[2003-08-21 00:10:00] [EMAIL PROTECTED]

> Set-Cookie: PHPSESSID=2989258979bd07405999448563ef4bfc; path=/

Perhaps you seem to have enabled session.use_trans_sid.
If so, first turn it off before trying the above script provided by
sniper.



[2003-08-20 22:54:00] [EMAIL PROTECTED]

try this script:


foo


And access it with this command:

# lynx -head lynx -dump -head http://localhost/test.php

I get this (correct) output:

HTTP/1.1 200 OK
Date: Thu, 21 Aug 2003 03:52:44 GMT
Server: Apache/1.3.27 (Unix) PHP/4.3.3RC5-dev
X-Powered-By: PHP/4.3.3RC5-dev
Connection-Type: Keep-Alive
Content-Length: 4
Connection: close
Content-Type: text/html





[2003-08-20 07:05:31] phpbug at paypc dot com

Description:

Very straightforward.

I have a preamble and postamble

#25194 [Opn->Fbk]: require() not findings files when "." is in include_path

2003-08-21 Thread sniper
 ID:   25194
 Updated by:   [EMAIL PROTECTED]
 Reported By:  ri at kamp dot de
-Status:   Open
+Status:   Feedback
 Bug Type: Filesystem function related
 Operating System: Solaris 8
 PHP Version:  4CVS-2003-08-21 (stable)
 New Comment:

Works fine under Linux..but I don't have any NFS mount to work with.
Can you check if this happens only with the NFS?



Previous Comments:


[2003-08-21 11:00:31] ri at kamp dot de

Description:

require cannot open a file in the same directory as the calling script
[like require('./includefile.php')]. All dirs in the path have
permission 755. OS is solaris 8, documentroot mounted as NFS,
include_path has "." within. In the case this happens also getcwd() or
passthru("/bin/pwd") gives no result but passthru("/bin/ls") list the
"current" dir.

The function expand_filepath in main/fopen_wrappers.c gets an empty
result when calling VCWD_GETCWD(cwd, MAXPATHLEN);

This may not be a php bug (maybe solaris8 or nfs) but occurs only
within php. As workaround I changed expand_filepath to:
--
int cwd_pos;

result = VCWD_GETCWD(cwd, MAXPATHLEN);  
if (!result) {
//cwd[0] = '\0';
php_error_docref(NULL TSRMLS_CC, E_WARNING, 
"cwd not working for
%s",SG(request_info).path_translated);
strlcpy(cwd, SG(request_info).path_translated,
sizeof(cwd));
cwd_pos = strlen(cwd) - 1;

/* Strip filename */
while (!IS_SLASH(cwd[cwd_pos])
&& (cwd_pos >= 0)) {
cwd[cwd_pos--] = 0;
}
}
--

I know this is no final solution but the scripts work thereafter. 

Reproduce code:
---
include_path = ".:/usr/local/lib/php"
documentroot = "/home/htdocs"
script is in /home/htdocs/ (documentroot)



or



Actual result:
--
Fatal error: main(): Failed opening required './somefile.php'
(include_path='.:/usr/local/lib/php')





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



#25195 [Fbk]: Failed opening phpinfo.php ... in Unknown on line 0

2003-08-21 Thread sniper
 ID:   25195
 Updated by:   [EMAIL PROTECTED]
 Reported By:  mhawkins at ukeu dot com
 Status:   Feedback
 Bug Type: Mail related
 Operating System: Solaris 8
 PHP Version:  4.3.3RC2
 New Comment:

If the problem persists with the snapshot, add this before the mail()
call:

echo ini_get('sendmail_path');

(just want to know if the path is still the same..)



Previous Comments:


[2003-08-21 11:20:59] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip



[2003-08-21 11:15:10] mhawkins at ukeu dot com

Changing version level from 'irrelevant' to '4.3.3rc2'



[2003-08-21 11:08:26] mhawkins at ukeu dot com

Description:

Solaris 8 on Sparc
SunONE Webserver 6.0sp5 (AKA iplanet)
PHP 4.3.3RC2 (yes, I know, I should upgrade to RC4 first, but this is a
production system)
Sendmail - default as per Solaris 8.

Error:

PHP Warning:  mail(): Could not execute mail delivery program in
/opt/sunone/es/docs/download.php on line 174

php.ini:

sendmail_path = "/usr/lib/sendmail -t -i"

config.status:

./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql
--with-nsapi=/opt/sunone/es --enable-track-vars --enable-libgcc

The code works perfectly for a few hours, sending mails as expected,
then the above error appears, and continues to fail until another
webserver restart is performed. Prior to the sendmail_path variable
being set, the error would log to /var/adm/messages, but since the
change it only logs to the webserver errorlog.








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



#25198 [Opn->Fbk]: error_reporting() seems to affect whole server

2003-08-21 Thread sniper
 ID:   25198
 Updated by:   [EMAIL PROTECTED]
 Reported By:  red at raven dot ch
-Status:   Open
+Status:   Feedback
 Bug Type: PHP options/info functions
 Operating System: linux (redhat 9) apache 2.0.47
 PHP Version:  4.3.2
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

Also, what was the configure line you used for Apache2? 



Previous Comments:


[2003-08-21 12:40:48] red at raven dot ch

Description:

The global configuration shows the following:

error_reporting 20392039

when 2 scripts in 2 differents virtualhosts run at the same time and
the first one sets error_reporting(E_ALL) and the second one starts
before the first ended (and doesn't set error_reporting) it shows the
notices as well.

./configure  --with-apxs2=/usr/local/apache2/bin/apxs --enable-xml
--with-gd --with-png-dir=/usr --with-jpeg-dir=/usr --enable-track-vars
--enable-force-cgi-redirect --with-gettext --with-mysql=/usr
--with-zlib-dir=/usr --enable-sysvshm --enable-sysvsem --with-xslt
--with-ttf --with-freetype-dir=/usr/local --enable-gd-native-ttf
--disable-cgi --with-dom --with-dom-xslt --with-iconv






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



#25200 [Opn->Fbk]: Can't compile php 4.3.2 with snmp

2003-08-21 Thread sniper
 ID:   25200
 Updated by:   [EMAIL PROTECTED]
 Reported By:  vitortr at linkexpress dot com dot br
-Status:   Open
+Status:   Feedback
 Bug Type: Compile Failure
 Operating System: Solaris 8
 PHP Version:  4.3.2
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip


Previous Comments:


[2003-08-21 14:07:45] vitortr at linkexpress dot com dot br

Description:

Hi everybody.  I tried to compile php  4.3.2 with snmp (net-snmp-5.0.8)
and mysql on Solaris 8

My configure statement was:
./configure --enable-ucd-snmp-hack --with-snmp=/usr/local
--enable-safe-mode --enable-mysql

The error message was:

gcc  -Iext/snmp/ -I/usr/local/php-4.3.2/ext/snmp/ -DPHP_ATOM_INC
-I/usr/local/php-4.3.2/include -I/usr/local
/php-4.3.2/main -I/usr/local/php-4.3.2 -I/usr/local/php-4.3.2/Zend
-I/usr/local/include -I/usr/local/php-4.3
.2/ext/xml/expat  -D_POSIX_PTHREAD_SEMANTICS
-I/usr/local/php-4.3.2/TSRM  -g -O2  -c /usr/local/php-4.3.2/ex
t/snmp/snmp.c -o ext/snmp/snmp.o  && echo > ext/snmp/snmp.lo
/usr/local/php-4.3.2/ext/snmp/snmp.c:27:27: default_store.h: No such
file or directory
/usr/local/php-4.3.2/ext/snmp/snmp.c: In function
`netsnmp_session_gen_auth_key':
/usr/local/php-4.3.2/ext/snmp/snmp.c:676: warning: initialization
discards qualifiers from pointer target ty
pe
/usr/local/php-4.3.2/ext/snmp/snmp.c: In function
`netsnmp_session_gen_sec_key':
/usr/local/php-4.3.2/ext/snmp/snmp.c:705: warning: initialization
discards qualifiers from pointer target ty
pe
make: *** [ext/snmp/snmp.lo] Error 1

Can you help me?







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



#19292 [Opn->Csd]: random error: open_basedir restriction in effect. File is in wrong directory

2003-08-21 Thread sniper
 ID:   19292
 Updated by:   [EMAIL PROTECTED]
 Reported By:  tnowak at triger dot com dot pl
-Status:   Open
+Status:   Closed
 Bug Type: Apache related
 Operating System: linux
 PHP Version:  4.3.3RC4
 New Comment:

See bug #24282 (no need to reopen this one)



Previous Comments:


[2003-08-21 17:09:42] [EMAIL PROTECTED]

Random reproducable with PHP 4.3.3RC4.



[2003-05-28 10:02:35] zen at heavengames dot com

That fix works.  Thanks!



[2003-05-23 21:36:35] zen at heavengames dot com

I'll give that a try and see what happens.  Will report back after this
weekend.



[2003-05-23 10:29:18] [EMAIL PROTECTED]

So if one sets open_basedir in one vhost, one must set it in every
vhost, as none or otherwise?



[2003-05-23 10:14:23] [EMAIL PROTECTED]

In the other vhost, set open_basedir to none




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/19292

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



#25172 [Opn->Fbk]: register_globals=on and $HTTP_HOST sometimes empty

2003-08-21 Thread sniper
 ID:   25172
 Updated by:   [EMAIL PROTECTED]
 Reported By:  php at lansco dot de
-Status:   Open
+Status:   Feedback
-Bug Type: *General Issues
+Bug Type: Apache2 related
 Operating System: Linux
 PHP Version:  4.3.3RC5-dev
 New Comment:

One more thing: Where do you set "register_globals" ?
(php.ini and/or httpd.conf and/or .htaccess ?)

And can you try with this script instead:

';
var_dump($HTTP_HOST);
var_dump($_SERVER['HTTP_HOST']);
echo '';
?>

I can not reproduce this..




Previous Comments:


[2003-08-21 08:38:25] php at lansco dot de

Apache-configure:
"./configure" \
"--prefix=/usr/local/apache2" \
"--with-mpm=prefork" \
"--enable-modules=deflate expires include info rewrite ssl unique_id
usertrack log_config logio rewrite vhost_alias so ext_filter dav
headers speling"

PHP-configure:
'./configure' '--with-mysql=/usr/local/mysql' '--enable-ftp'
'--with-gd' '--with-gd-dir=/usr/local' '--with-jpeg'
'--with-jpeg-dir=/usr/local' '--with-apxs2=/usr/local/apache2/bin/apxs'
'--with-gettext' '--with-mcrypt' '--with-imap' '--with-imap-ssl'
'--with-ldap' '--with-zlib-dir=/usr/include' '--enable-xslt'
'--with-xslt-sablot' '--enable-exif'



[2003-08-21 08:29:30] [EMAIL PROTECTED]

What was the configure line used to configure Apache?
(And PHP too)




[2003-08-21 08:25:51] php at lansco dot de

variables_order = EGPCS
gpc_order = GPC
Apache Version = Apache/2.0.47 (Unix) mod_ssl/2.0.47 OpenSSL/0.9.6c
DAV/2 PHP/4.3.3RC5-dev



[2003-08-21 08:18:11] [EMAIL PROTECTED]

What are your variables_order and gpc_order settings?
(from phpinfo() output)
Which webserver? Apache? What version?




[2003-08-21 03:21:41] php at lansco dot de

With http://snaps.php.net/php4-STABLE-latest.tar.gz the error also
occurs :(



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/25172

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



#25185 [Opn->Bgs]: Unserialize can't decode string from serialize

2003-08-21 Thread helly
 ID:   25185
 Updated by:   [EMAIL PROTECTED]
 Reported By:  cpuidle at gmx dot de
-Status:   Open
+Status:   Bogus
 Bug Type: *General Issues
 Operating System: Windows
 PHP Version:  4.3.3RC4
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

The way you save and load the data must match. Windows does line
termination translation (e.g. \n -> \r\n). To avoid this you must write
and read using open mode 'wb'.


Previous Comments:


[2003-08-21 15:06:22] cpuidle at gmx dot de

The filereading hint was a good suggestion- it does actually seem to
work if I'm using file_get_contents instead of join('',file($file))-
could smdb. explain why?

Kindly,
Andi



[2003-08-21 14:59:58] cpuidle at gmx dot de

I'm sorry. The function where the file is written is obviously not
download, but this one:

function saveHTTPcache($url,$resp){
  $cfile='cache/imdb/'.md5($url);
  $string=serialize($resp);
  @fwrite(@fopen("$cfile", "w"),$string,strlen($string));
}



[2003-08-21 14:47:40] cpuidle at gmx dot de

Have not tried the snapshot yet- is it supposed to fix (un)serialize or
load/store?

Andi



[2003-08-21 14:46:20] cpuidle at gmx dot de

This is the code to save and restore the data:

function download($url, $local){
  $resp = fetchHTTP($url);
$writefile = @fopen($local, "wb");
if(!$writefile) return false;
if(!fwrite($writefile, $resp[data], strlen($resp[data]))) return
false;
fclose($writefile);
return true;
}

function getHTTPcache($url){
  $cfile='../videodb/cache/imdb/'.md5($url);
$resp = unserialize(join('',file($cfile)));
return $resp;
}



[2003-08-21 10:06:36] [EMAIL PROTECTED]

The problem doesn't have to do anything with serialize/unserialize but
with the way you store/load the serialized data. Can you tell us how?
And do you do any manual changes to the serialized data or even view it
with an external editor?



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/25185

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



#19292 [Csd->Opn]: random error: open_basedir restriction in effect. File is in wrong directory

2003-08-21 Thread k . schroeder
 ID:   19292
 Updated by:   [EMAIL PROTECTED]
 Reported By:  tnowak at triger dot com dot pl
-Status:   Closed
+Status:   Open
 Bug Type: Apache related
 Operating System: linux
-PHP Version:  4.3.0
+PHP Version:  4.3.3RC4
 New Comment:

Random reproducable with PHP 4.3.3RC4.


Previous Comments:


[2003-05-28 10:02:35] zen at heavengames dot com

That fix works.  Thanks!



[2003-05-23 21:36:35] zen at heavengames dot com

I'll give that a try and see what happens.  Will report back after this
weekend.



[2003-05-23 10:29:18] [EMAIL PROTECTED]

So if one sets open_basedir in one vhost, one must set it in every
vhost, as none or otherwise?



[2003-05-23 10:14:23] [EMAIL PROTECTED]

In the other vhost, set open_basedir to none




[2003-05-23 10:03:57] zen at heavengames dot com

Tried it with PHP4.3.2RC4.  Problem still persists:

[23-May-2003 11:00:05] PHP Warning:  Unknown(): open_basedir
restriction in effect.
File(/usr/www/heavend1/httpd/htdocs/zen/gallery/view_album.php) is not
within the allowed path(s):
(/usr/www/heavend1/httpd/htdocs/wildfire/:/usr/www/heavend1/httpd/.php/)
in Unknown on line 0
[23-May-2003 11:00:05] PHP Warning: 
Unknown(/usr/www/heavend1/httpd/htdocs/zen/gallery/view_album.php):
failed to open stream: Operation not permitted in Unknown on line 0
[23-May-2003 11:00:05] PHP Warning:  (null)(): Failed opening
'/usr/www/heavend1/httpd/htdocs/zen/gallery/view_album.php' for
inclusion (include_path='.:/usr/www/heavend1/php') in Unknown on line
0

---
httpd.conf configuration:

  php_admin_flag safe_mode On
  php_admin_value doc_root /usr/www/heavend1/httpd/htdocs/wildfire/
  php_admin_value open_basedir
/usr/www/heavend1/httpd/htdocs/wildfire/:/usr/www/heavend1/httpd/.php/
  php_admin_value error_log
/usr/www/heavend1/httpd/logs/wildfire/php_error
  php_flag display_errors On
  php_admin_flag register_globals Off



  php_admin_flag safe_mode Off
  php_admin_value doc_root /usr/www/heavend1/httpd/htdocs/zen
  php_admin_value error_log
/usr/www/heavend1/httpd/logs/zen/php_error_log
  php_flag display_errors Off
  php_admin_flag register_globals Off




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/19292

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



#25202 [NEW]: problem compiling PHP on HP UX 11.0

2003-08-21 Thread wzaccone at telcordia dot com
From: wzaccone at telcordia dot com
Operating system: HP UX 11.0
PHP version:  Irrelevant
PHP Bug Type: Compile Failure
Bug description:  problem compiling PHP on HP UX 11.0

Description:

Getting the following error, installing php-4.1.2 on HP-UX 11.0.  can you
help us find the cause.  A customer of ours is installing an earlier
release of application software which was product tested using php 4.1.2
on a new platform HPUX. and really need to find a cause for php 4.1.2 or
tell them to upgrade to 4.3.2 if it absolutely necessary.  please let us
know.. 
thanks 
Warren
 
php-4.1.2/TSRM -g -O2  -c sockets.c && touch sockets.lo
sockets.c: In function `accept_connect':
sockets.c:266: warning: passing arg 3 of `accept' from incompatible
pointer type
sockets.c: In function `zif_socket_getsockname':
sockets.c:808: warning: passing arg 3 of `getsockname' from incompatible
pointer  type
sockets.c: In function `zif_socket_getpeername':
sockets.c:863: warning: passing arg 3 of `getpeername' from incompatible
pointer  type
sockets.c: In function `zif_socket_sendmsg':
sockets.c:1628: warning: passing arg 3 of `getsockname' from incompatible
pointer type
.
.
. later get this fatal error..
.
php-4.1.2/TSRM -g -O2  -c pageinfo.c && touch pageinfo.lo
bison -y  parsedate.y && mv y.tab.c parsedate.c
*** Error exit code 141

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
Making install in Zend
Making install in main
Making install in ext



-- 
Edit bug report at http://bugs.php.net/?id=25202&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25202&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25202&r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=25202&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=25202&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25202&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=25202&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=25202&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=25202&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=25202&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=25202&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=25202&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25202&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=25202&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=25202&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=25202&r=gnused



#22233 [Com]: "mod_gzip_on yes" makes force-cgi-redirect disabled and incorrect PHP_SELF

2003-08-21 Thread paulknapp at att dot net
 ID:   22233
 Comment by:   paulknapp at att dot net
 Reported By:  zlo at canada dot com
 Status:   Assigned
 Bug Type: CGI related
 Operating System: RedHat 7.1, 7.2
 PHP Version:  4.3.2-dev
 Assigned To:  shane
 New Comment:

I am having the same issues:

I am expecting  and getting 

the server is set up with version 4.3.1

Is there a fix?


Previous Comments:


[2003-03-05 01:57:14] mailing at auktionmaster dot de

Yust tested a new snapshot (4.3.2-dev):
Problem is nearly solved :-)

Now: if you call "http://host/test.php?a=test";
where test.php does phpinfo(); then $PHP_SELF ist set to
"/test.php?a=test". I think there should be no parameter...

Even the PHP-Logo is NOT shown :-)
"http://host/test.php"; works fine. So as mod-Version

Regards,
  Bjoern



[2003-03-04 10:54:11] mailing at auktionmaster dot de

Problem WAS fixed in an older snapshot but actually it is not.
$PHP_SELF and all other variables like $_SERVER[PHP_SELF] are set to a
wrong value (sometimes they are still empty).

Depending on this the following problem occours:

http://host/test.php?userid=1passwd=1 works;
http://host/testtesttest.php?userid=1passwd=1 doesn't work;

The file exist in both cases of course. Sometime the "parameter" is not
splited on "&"



[2003-02-24 10:30:18] Julian dot Pawlowski at jp-solution dot net

Ooops I'm very sorry... just tried the actual snapshot and now
everything works fine for me ;)

Greetings from Munich

Julian



[2003-02-24 09:50:11] Julian dot Pawlowski at jp-solution dot net

failure also on SuSE Linux 8.1 compiling with:

./configure \
--disable-debug \
--enable-bcmath \
--enable-calendar \
--enable-ctype \
--enable-dbase \
--enable-gd-imgstrttf \
--enable-gd-native-ttf \
--enable-inline-optimization \
--enable-magic-quotes \
--enable-mbstr-enc-trans \
--enable-mbstring \
--enable-memory-limit \
--enable-safe-mode=yes \
--enable-sigchild \
--enable-sockets \
--enable-sysvsem \
--enable-sysvshm \
--enable-track-vars \
--enable-trans-sid \
--enable-versioning \
--enable-force-cgi-redirect \
--enable-fastcgi \
--with-ldap \
--with-bz2 \
--with-ftp \
--with-gdbm \
--with-gettext \
--with-gmp \
--with-jpeg-dir=/usr/local/lib \
--with-mcrypt \
--with-mysql-sock=/tmp/mysql.sock \
--with-mysql=/usr/local/mysql/current \
--with-ndbm \
--with-png-dir=/usr/local/lib \
--with-t1lib \
--with-tiff-dir=/usr/local/lib \
--with-ttf \
--with-freetype-dir=yes \
--with-xml \
--with-zlib=yes \
--with-openssl=/usr/local/openssl/current \
--with-gd=yes \
--with-iconv \
--with-pspell \
--with-exec-dir=/vol0/www \
--with-config-file-path=/vol0/www/config \
--with-pear=/usr/local/php/pear \
--prefix=/usr/local/php/4.3.1



[2003-02-23 18:30:52] [EMAIL PROTECTED]

..and assign to Shane, who I think said something about looking into
this..




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/22233

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



#25185 [Opn]: Unserialize can't decode string from serialize

2003-08-21 Thread cpuidle at gmx dot de
 ID:   25185
 User updated by:  cpuidle at gmx dot de
 Reported By:  cpuidle at gmx dot de
 Status:   Open
 Bug Type: *General Issues
 Operating System: Windows
 PHP Version:  4.3.3RC4
 New Comment:

The filereading hint was a good suggestion- it does actually seem to
work if I'm using file_get_contents instead of join('',file($file))-
could smdb. explain why?

Kindly,
Andi


Previous Comments:


[2003-08-21 14:59:58] cpuidle at gmx dot de

I'm sorry. The function where the file is written is obviously not
download, but this one:

function saveHTTPcache($url,$resp){
  $cfile='cache/imdb/'.md5($url);
  $string=serialize($resp);
  @fwrite(@fopen("$cfile", "w"),$string,strlen($string));
}



[2003-08-21 14:47:40] cpuidle at gmx dot de

Have not tried the snapshot yet- is it supposed to fix (un)serialize or
load/store?

Andi



[2003-08-21 14:46:20] cpuidle at gmx dot de

This is the code to save and restore the data:

function download($url, $local){
  $resp = fetchHTTP($url);
$writefile = @fopen($local, "wb");
if(!$writefile) return false;
if(!fwrite($writefile, $resp[data], strlen($resp[data]))) return
false;
fclose($writefile);
return true;
}

function getHTTPcache($url){
  $cfile='../videodb/cache/imdb/'.md5($url);
$resp = unserialize(join('',file($cfile)));
return $resp;
}



[2003-08-21 10:06:36] [EMAIL PROTECTED]

The problem doesn't have to do anything with serialize/unserialize but
with the way you store/load the serialized data. Can you tell us how?
And do you do any manual changes to the serialized data or even view it
with an external editor?



[2003-08-21 07:59:27] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip





The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/25185

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



#25185 [Opn]: Unserialize can't decode string from serialize

2003-08-21 Thread cpuidle at gmx dot de
 ID:   25185
 User updated by:  cpuidle at gmx dot de
 Reported By:  cpuidle at gmx dot de
 Status:   Open
 Bug Type: *General Issues
 Operating System: Windows
 PHP Version:  4.3.3RC4
 New Comment:

I'm sorry. The function where the file is written is obviously not
download, but this one:

function saveHTTPcache($url,$resp){
  $cfile='cache/imdb/'.md5($url);
  $string=serialize($resp);
  @fwrite(@fopen("$cfile", "w"),$string,strlen($string));
}


Previous Comments:


[2003-08-21 14:47:40] cpuidle at gmx dot de

Have not tried the snapshot yet- is it supposed to fix (un)serialize or
load/store?

Andi



[2003-08-21 14:46:20] cpuidle at gmx dot de

This is the code to save and restore the data:

function download($url, $local){
  $resp = fetchHTTP($url);
$writefile = @fopen($local, "wb");
if(!$writefile) return false;
if(!fwrite($writefile, $resp[data], strlen($resp[data]))) return
false;
fclose($writefile);
return true;
}

function getHTTPcache($url){
  $cfile='../videodb/cache/imdb/'.md5($url);
$resp = unserialize(join('',file($cfile)));
return $resp;
}



[2003-08-21 10:06:36] [EMAIL PROTECTED]

The problem doesn't have to do anything with serialize/unserialize but
with the way you store/load the serialized data. Can you tell us how?
And do you do any manual changes to the serialized data or even view it
with an external editor?



[2003-08-21 07:59:27] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip





[2003-08-21 05:14:42] cpuidle at gmx dot de

Description:

I'm using serialize to write array structures to the filesystem. After
reading the structure again, unserialize fails to decode and returns 0
instead. Serialized sample data is included. The problem is fixed when
the two larger data blocks are removed and replaced with samething
without linebreaks- not sure if that's part of the problem.

Reproduce code:
---
http://www.cpuidle.de/serialized.txt







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



#25185 [Opn]: Unserialize can't decode string from serialize

2003-08-21 Thread cpuidle at gmx dot de
 ID:   25185
 User updated by:  cpuidle at gmx dot de
 Reported By:  cpuidle at gmx dot de
 Status:   Open
 Bug Type: *General Issues
 Operating System: Windows
 PHP Version:  4.3.3RC4
 New Comment:

Have not tried the snapshot yet- is it supposed to fix (un)serialize or
load/store?

Andi


Previous Comments:


[2003-08-21 14:46:20] cpuidle at gmx dot de

This is the code to save and restore the data:

function download($url, $local){
  $resp = fetchHTTP($url);
$writefile = @fopen($local, "wb");
if(!$writefile) return false;
if(!fwrite($writefile, $resp[data], strlen($resp[data]))) return
false;
fclose($writefile);
return true;
}

function getHTTPcache($url){
  $cfile='../videodb/cache/imdb/'.md5($url);
$resp = unserialize(join('',file($cfile)));
return $resp;
}



[2003-08-21 10:06:36] [EMAIL PROTECTED]

The problem doesn't have to do anything with serialize/unserialize but
with the way you store/load the serialized data. Can you tell us how?
And do you do any manual changes to the serialized data or even view it
with an external editor?



[2003-08-21 07:59:27] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip





[2003-08-21 05:14:42] cpuidle at gmx dot de

Description:

I'm using serialize to write array structures to the filesystem. After
reading the structure again, unserialize fails to decode and returns 0
instead. Serialized sample data is included. The problem is fixed when
the two larger data blocks are removed and replaced with samething
without linebreaks- not sure if that's part of the problem.

Reproduce code:
---
http://www.cpuidle.de/serialized.txt







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



#25185 [Fbk->Opn]: Unserialize can't decode string from serialize

2003-08-21 Thread cpuidle at gmx dot de
 ID:   25185
 User updated by:  cpuidle at gmx dot de
 Reported By:  cpuidle at gmx dot de
-Status:   Feedback
+Status:   Open
 Bug Type: *General Issues
 Operating System: Windows
 PHP Version:  4.3.3RC4
 New Comment:

This is the code to save and restore the data:

function download($url, $local){
  $resp = fetchHTTP($url);
$writefile = @fopen($local, "wb");
if(!$writefile) return false;
if(!fwrite($writefile, $resp[data], strlen($resp[data]))) return
false;
fclose($writefile);
return true;
}

function getHTTPcache($url){
  $cfile='../videodb/cache/imdb/'.md5($url);
$resp = unserialize(join('',file($cfile)));
return $resp;
}


Previous Comments:


[2003-08-21 10:06:36] [EMAIL PROTECTED]

The problem doesn't have to do anything with serialize/unserialize but
with the way you store/load the serialized data. Can you tell us how?
And do you do any manual changes to the serialized data or even view it
with an external editor?



[2003-08-21 07:59:27] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip





[2003-08-21 05:14:42] cpuidle at gmx dot de

Description:

I'm using serialize to write array structures to the filesystem. After
reading the structure again, unserialize fails to decode and returns 0
instead. Serialized sample data is included. The problem is fixed when
the two larger data blocks are removed and replaced with samething
without linebreaks- not sure if that's part of the problem.

Reproduce code:
---
http://www.cpuidle.de/serialized.txt







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



#25200 [NEW]: Can't compile php 4.3.2 with snmp

2003-08-21 Thread vitortr at linkexpress dot com dot br
From: vitortr at linkexpress dot com dot br
Operating system: Solaris 8
PHP version:  4.3.2
PHP Bug Type: Compile Failure
Bug description:  Can't compile php 4.3.2 with snmp

Description:

Hi everybody.  I tried to compile php  4.3.2 with snmp (net-snmp-5.0.8)
and mysql on Solaris 8

My configure statement was:
./configure --enable-ucd-snmp-hack --with-snmp=/usr/local
--enable-safe-mode --enable-mysql

The error message was:

gcc  -Iext/snmp/ -I/usr/local/php-4.3.2/ext/snmp/ -DPHP_ATOM_INC
-I/usr/local/php-4.3.2/include -I/usr/local
/php-4.3.2/main -I/usr/local/php-4.3.2 -I/usr/local/php-4.3.2/Zend
-I/usr/local/include -I/usr/local/php-4.3
.2/ext/xml/expat  -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/php-4.3.2/TSRM 
-g -O2  -c /usr/local/php-4.3.2/ex
t/snmp/snmp.c -o ext/snmp/snmp.o  && echo > ext/snmp/snmp.lo
/usr/local/php-4.3.2/ext/snmp/snmp.c:27:27: default_store.h: No such file
or directory
/usr/local/php-4.3.2/ext/snmp/snmp.c: In function
`netsnmp_session_gen_auth_key':
/usr/local/php-4.3.2/ext/snmp/snmp.c:676: warning: initialization discards
qualifiers from pointer target ty
pe
/usr/local/php-4.3.2/ext/snmp/snmp.c: In function
`netsnmp_session_gen_sec_key':
/usr/local/php-4.3.2/ext/snmp/snmp.c:705: warning: initialization discards
qualifiers from pointer target ty
pe
make: *** [ext/snmp/snmp.lo] Error 1

Can you help me?



-- 
Edit bug report at http://bugs.php.net/?id=25200&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25200&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25200&r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=25200&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=25200&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25200&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=25200&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=25200&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=25200&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=25200&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=25200&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=25200&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25200&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=25200&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=25200&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=25200&r=gnused



#25199 [NEW]: $this->a doesn't call $this->__get('a')

2003-08-21 Thread thomas dot hebinck at digionline dot de
From: thomas dot hebinck at digionline dot de
Operating system: Linux
PHP version:  5CVS-2003-08-21 (dev)
PHP Bug Type: Zend Engine 2 problem
Bug description:  $this->a doesn't call $this->__get('a')

Description:

A call of $this->a creates a new public variable instead of calling
__get('a') - even if this call is just defined and never used. (same
problem in beta 1)

Reproduce code:
---
a; // this is the "bad" line
  }
}

$foo = new foo;

echo '$foo->a = "' . $foo->a . '"';
?>

Expected result:

$foo->a = "a"

Actual result:
--
$foo->a = ""

-- 
Edit bug report at http://bugs.php.net/?id=25199&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25199&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25199&r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=25199&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=25199&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25199&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=25199&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=25199&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=25199&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=25199&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=25199&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=25199&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25199&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=25199&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=25199&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=25199&r=gnused



#25198 [NEW]: error_reporting() seems to affect whole server

2003-08-21 Thread red at raven dot ch
From: red at raven dot ch
Operating system: linux (redhat 9) apache 2.0.47
PHP version:  4.3.2
PHP Bug Type: PHP options/info functions
Bug description:  error_reporting() seems to affect whole server

Description:

The global configuration shows the following:

error_reporting 20392039

when 2 scripts in 2 differents virtualhosts run at the same time and the
first one sets error_reporting(E_ALL) and the second one starts before the
first ended (and doesn't set error_reporting) it shows the notices as
well.

./configure  --with-apxs2=/usr/local/apache2/bin/apxs --enable-xml
--with-gd --with-png-dir=/usr --with-jpeg-dir=/usr --enable-track-vars
--enable-force-cgi-redirect --with-gettext --with-mysql=/usr
--with-zlib-dir=/usr --enable-sysvshm --enable-sysvsem --with-xslt
--with-ttf --with-freetype-dir=/usr/local --enable-gd-native-ttf
--disable-cgi --with-dom --with-dom-xslt --with-iconv


-- 
Edit bug report at http://bugs.php.net/?id=25198&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25198&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25198&r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=25198&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=25198&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25198&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=25198&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=25198&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=25198&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=25198&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=25198&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=25198&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25198&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=25198&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=25198&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=25198&r=gnused



#24282 [NoF->Opn]: Strange Open Base Dir Restriction Errors

2003-08-21 Thread matzrek at shw-networks dot de
 ID:   24282
 User updated by:  matzrek at shw-networks dot de
 Reported By:  matzrek at shw-networks dot de
-Status:   No Feedback
+Status:   Open
 Bug Type: Apache related
 Operating System: Suse Linux 8.2 / Apache 1.3.27
 PHP Version:  4.3.2
 New Comment:

Will send my config this evening.

Daniel


Previous Comments:


[2003-08-21 11:40:14] fs at nessus dot at

ok, i just sent you my configuration files.
the php file is nonsense because it happens everywhere, phpinfo() for
example.

i hope we can fix it as soon as possible.

greetings,

Florian Schicker



[2003-08-20 23:59:48] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.





[2003-08-15 11:07:33] [EMAIL PROTECTED]

I say again: We need to get the httpd.conf, etc. with which you HAVE
been experiencing this problem. Read my previous comment.




[2003-08-15 10:48:00] matzrek at shw-networks dot de

Hi sniper,

This error cannot be reproduces exactly at the moment. It happens
sometimes. The only thin i realized : it does not appear directly after
restarting apache. I have to wait several hours until it happens the
first time.

Daniel



[2003-08-15 09:52:48] dprado at floripa dot com dot br

Samething happens here. PHP 4.3.2, the bug only shows randomly when
accessing virtualhosts that DO NOT have open_basedir set on a machine
that has other vhosts with open_basedir set. Taking a wild guess, it
seems that an apache thread that server up a page for a vhost with
openbasedir set when it tries to serve a page for another vhost
whithout openbasedir it keeps the openbasedir settings. Setting 
open_basedir for all vhosts solved the problem.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/24282

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



#24807 [Com]: Dereferencing objects and Property accesses with __get() and __set()

2003-08-21 Thread thomas dot hebinck at digionline dot de
 ID:   24807
 Comment by:   thomas dot hebinck at digionline dot de
 Reported By:  Bertrand dot Willm at laposte dot net
 Status:   Bogus
 Bug Type: Class/Object related
 Operating System: Windows XP
 PHP Version:  5.0.0b1 (beta1)
 New Comment:

It works the old way:

$test = $extObject->extProperty;
$test->baseProperty = 'new';

How to switch this from 'bogus' back to 'open'?


Previous Comments:


[2003-07-29 12:49:10] Bertrand dot Willm at laposte dot net

You suggest me to read ZEND_CHANGES but can't find anything
corresponding to that in the www.php.net site (I use the "Search for"
functionnality on the whole site).
I look again on the page called "PHP: Changes in PHP 5/Zend Engine
2.0", the following new functionnality is explained:
"Dereferencing objects returned from functions".
As it is possible to deference object members and now it is possible to
deference object returned from function, for me, not to be allowed
deference object properties looks like a bug.
It is because of things like this, that I found the __get and __set
methods are an unsatsifactory answer to properties.



[2003-07-29 07:26:17] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Suggest you read ZEND_CHANGES :)



[2003-07-25 15:35:14] Bertrand dot Willm at laposte dot net

Description:

I try to use the following notation:
$object->property1->property2 = 'value';
when property1 and property2 are properties we access trow __get and
__set methods.
calling __get with property1 return an object that defined __get and
__set methods.
but there is a warning explaining the object doesn't support property
references.


Reproduce code:
---
text;
   }
   function __Set($name, $value) {
  $this->text = $value;
   }
}
class CExtClass {
   private $baseObject;
   function __construct() {
  $this->baseObject = new CBaseClass();
   }
   function __Get() {
  return $this->baseObject;
   }
}
$extObject = new CExtClass();
echo $extObject->extProperty->baseProperty, '';
$extObject->extProperty->baseProperty = 'new';
echo $extObject->extProperty->baseProperty, '';
?>

Expected result:

default
new


Actual result:
--
default

Warning: This object doesn't support property references in
c:\sitesweb\www\test.php5 on line 22
default






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



#24282 [Com]: Strange Open Base Dir Restriction Errors

2003-08-21 Thread fs at nessus dot at
 ID:   24282
 Comment by:   fs at nessus dot at
 Reported By:  matzrek at shw-networks dot de
 Status:   No Feedback
 Bug Type: Apache related
 Operating System: Suse Linux 8.2 / Apache 1.3.27
 PHP Version:  4.3.2
 New Comment:

ok, i just sent you my configuration files.
the php file is nonsense because it happens everywhere, phpinfo() for
example.

i hope we can fix it as soon as possible.

greetings,

Florian Schicker


Previous Comments:


[2003-08-20 23:59:48] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.





[2003-08-15 11:07:33] [EMAIL PROTECTED]

I say again: We need to get the httpd.conf, etc. with which you HAVE
been experiencing this problem. Read my previous comment.




[2003-08-15 10:48:00] matzrek at shw-networks dot de

Hi sniper,

This error cannot be reproduces exactly at the moment. It happens
sometimes. The only thin i realized : it does not appear directly after
restarting apache. I have to wait several hours until it happens the
first time.

Daniel



[2003-08-15 09:52:48] dprado at floripa dot com dot br

Samething happens here. PHP 4.3.2, the bug only shows randomly when
accessing virtualhosts that DO NOT have open_basedir set on a machine
that has other vhosts with open_basedir set. Taking a wild guess, it
seems that an apache thread that server up a page for a vhost with
openbasedir set when it tries to serve a page for another vhost
whithout openbasedir it keeps the openbasedir settings. Setting 
open_basedir for all vhosts solved the problem.



[2003-08-10 21:49:13] [EMAIL PROTECTED]

What we really need is that someone comes up with a complete testsuite
with which this problem can be reproduced reliably.
This would include the php.ini, httpd.conf, configure lines for
php/apache and a php 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 at
http://bugs.php.net/24282

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



#25195 [Opn->Fbk]: Failed opening phpinfo.php ... in Unknown on line 0

2003-08-21 Thread helly
 ID:   25195
 Updated by:   [EMAIL PROTECTED]
 Reported By:  mhawkins at ukeu dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Mail related
 Operating System: Solaris 8
 PHP Version:  4.3.3RC2
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip


Previous Comments:


[2003-08-21 11:15:10] mhawkins at ukeu dot com

Changing version level from 'irrelevant' to '4.3.3rc2'



[2003-08-21 11:08:26] mhawkins at ukeu dot com

Description:

Solaris 8 on Sparc
SunONE Webserver 6.0sp5 (AKA iplanet)
PHP 4.3.3RC2 (yes, I know, I should upgrade to RC4 first, but this is a
production system)
Sendmail - default as per Solaris 8.

Error:

PHP Warning:  mail(): Could not execute mail delivery program in
/opt/sunone/es/docs/download.php on line 174

php.ini:

sendmail_path = "/usr/lib/sendmail -t -i"

config.status:

./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql
--with-nsapi=/opt/sunone/es --enable-track-vars --enable-libgcc

The code works perfectly for a few hours, sending mails as expected,
then the above error appears, and continues to fail until another
webserver restart is performed. Prior to the sendmail_path variable
being set, the error would log to /var/adm/messages, but since the
change it only logs to the webserver errorlog.








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



#25195 [Opn]: Failed opening phpinfo.php ... in Unknown on line 0

2003-08-21 Thread mhawkins at ukeu dot com
 ID:   25195
 User updated by:  mhawkins at ukeu dot com
-Summary:  Warning:  mail(): Could not execute mail delivery
   program ...
 Reported By:  mhawkins at ukeu dot com
 Status:   Open
 Bug Type: Mail related
 Operating System: Solaris 8
-PHP Version:  Irrelevant
+PHP Version:  4.3.3RC2
 New Comment:

Changing version level from 'irrelevant' to '4.3.3rc2'


Previous Comments:


[2003-08-21 11:08:26] mhawkins at ukeu dot com

Description:

Solaris 8 on Sparc
SunONE Webserver 6.0sp5 (AKA iplanet)
PHP 4.3.3RC2 (yes, I know, I should upgrade to RC4 first, but this is a
production system)
Sendmail - default as per Solaris 8.

Error:

PHP Warning:  mail(): Could not execute mail delivery program in
/opt/sunone/es/docs/download.php on line 174

php.ini:

sendmail_path = "/usr/lib/sendmail -t -i"

config.status:

./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql
--with-nsapi=/opt/sunone/es --enable-track-vars --enable-libgcc

The code works perfectly for a few hours, sending mails as expected,
then the above error appears, and continues to fail until another
webserver restart is performed. Prior to the sendmail_path variable
being set, the error would log to /var/adm/messages, but since the
change it only logs to the webserver errorlog.








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



#25190 [Opn->Bgs]: Segmentation fault

2003-08-21 Thread jay
 ID:   25190
 Updated by:   [EMAIL PROTECTED]
 Reported By:  gabor at netway dot hu
-Status:   Open
+Status:   Bogus
 Bug Type: Unknown/Other Function
 Operating System: Debian Linux
 PHP Version:  4.3.3RC4
 New Comment:

So by the looks of it, this is using ADOdb, which means 
this is a third-party application and isn't necessarily a 
PHP problem. You'll have to contact the ADOdb developers 
and see what they say. 
 
I don't know what OVS, but if it's another third-party 
application, contact them as well.  
 
J 


Previous Comments:


[2003-08-21 11:05:23] gabor at netway dot hu

Thank you :-).



[2003-08-21 10:58:59] gabor at netway dot hu

the code is:

  function OVS_Z050($ORA_SESS_ID){  
   global $conn;
   $Z050_query="
BEGIN
 msie_logout_session_proc (:sessid,:ipaddr,:result_rc);
END;
 ";
$stmt = $conn->PrepareSP($Z050_query);
$conn->Parameter($stmt,$ORA_SESS_ID,"sessid",27);
$conn->Parameter($stmt,getenv("REMOTE_ADDR"),"ipaddr",15);
$conn->Parameter($stmt,$rc, "result_rc",12);
$conn->Execute($stmt);
if ($rc==500)
 $msg = 'Logoff succeeded';
else {
 $msg="ERROR(".$rc."): ";
 if ($rc==(-501)){
  $msg.="Logoff ok, but session timed out!";
  echo "
  alert('".$msg."');  
 
   ";  
  
 }
 if ($rc==(-550)){
  $msg.="LOGGING ERROR!";  
  echo "
 alert('".$msg."');   
 
   ";  
 
 }
}   
 return $msg;
  }



[2003-08-21 10:47:36] [EMAIL PROTECTED]

Is this caused by some sort of third-party application? 
What is OVS? Do you have a self-contained example that can 
actually be reproduced? What does the function OVS_Z050() 
do? 
 
Unless you can answer these questions, this is likely 
bogus. 
 
J 



[2003-08-21 09:28:53] gabor at netway dot hu

Description:

apache crash, and no more request. 

Reproduce code:
---
include("head.php");

OVS_Z050($_SESSION["ovs_session"]);
sleep(5);
session_destroy();
?>


Expected result:

[Mon Aug 18 08:24:55 2003] [notice] Apache/1.3.26 Ben-SSL/1.48 (Unix)
Debian GNU/Linux PHP/4.3.3RC4-dev configured -- resuming normal
operations
[Mon Aug 18 08:24:55 2003] [notice] suEXEC mechanism enabled (wrapper:
/usr/lib/apache-ssl/suexec)
[Mon Aug 18 08:24:55 2003] [notice] Accept mutex: sysvsem (Default:
sysvsem)
[Mon Aug 18 10:48:18 2003] [notice] child pid 344 exit signal
Segmentation fault (11)
[Mon Aug 18 10:48:54 2003] [notice] child pid 341 exit signal
Segmentation fault (11)
[Mon Aug 18 10:49:37 2003] [notice] child pid 366 exit signal
Segmentation fault (11)
/usr/src/php4-STABLE-200308080930/Zend/zend_execute.c(1611) :  Freeing
0x08151FAC (12 bytes), script=/var/www/ovs/ovs.members/php/Z050.php
/usr/src/php4-STABLE-200308080930/Zend/zend_opcode.c(295) :  Freeing
0x0814CE14 (14520 bytes), script=/var/www/ovs/ovs.members/php/xx.php
Last leak repeated 2 times
Zend/zend_language_scanner.c(4619) :  Freeing 0x08151EF4 (11 bytes),
script=/var/www/xx.php
Last leak repeated 118 times
Zend/zend_language_scanner.c(4484) :  Freeing 0x08151EB4 (9 bytes),
script=/var/www/xx.php
Last leak repeated 80 times
Zend/zend_language_scanner.c(4492) :  Freeing 0x08151D2C (20 bytes),
script=/var/www/xx.php
Last leak repeated 80 times
Zend/zend_language_scanner.c(3072) :  Freeing 0x0814AA24 (84 bytes),
script=/var/www/xx.php
Last leak repeated 2 times
/usr/src/php4-STABLE-200308080930/Zend/zend_opcode.c(65) :  Freeing
0x0814B5A4 (4 bytes), script=/var/www/ovs/ovs.members/php/xx.php
Last leak repeated 2 times
Zend/zend_language_scanner.c(3911) :  Freeing 0x0814B564 (16 bytes),
script=/var/www/ovs/ovs.members/php/xx.php
Last leak repeated 5 times
/usr/src/php4-STABLE-200308080930/Zend/zend_compile.c(854) :  Freeing
0x0814B474 (13 bytes), script=/var/www/ovs/ovs.members/php/xx.php
/usr/src/php4-STABLE-200308080930/Zend/zend_variables.c(111) : Actual
location (location was relayed)
Last leak repeated 1 time
/usr/src/php4-STABLE-200308080930/Zend/zend_opcode.c(230) :  Freeing
0x081464D4 (12 bytes), script=/var/www/ovs/ovs.members/php/xx.php
/usr/src/php4-STABLE-200308080930/Zend/zend_compile.c(1761) :  Freeing
0x08145E84 (9 bytes), script=/var/www/ovs/ovs.members/php/xx.php
/usr/src/php4-STABLE-200308080930/Zend/zend_variables.c(111) : Actual
location (location was relayed)
/usr/src/php4-STABLE-200308080930/Zend/zend_compile.c(1745) :  Freeing
0x08145D2C (9 bytes), script=/var/www/ovs/ovs.members/php/xx.php
/usr/src/php4-STABLE-200308080930/Zend/zend_variables.c(111) : Actual
locat

#25195 [NEW]: Warning: mail(): Could not execute mail delivery program ...

2003-08-21 Thread mhawkins at ukeu dot com
From: mhawkins at ukeu dot com
Operating system: Solaris 8
PHP version:  Irrelevant
PHP Bug Type: Mail related
Bug description:  Warning:  mail(): Could not execute mail delivery program ...

Description:

Solaris 8 on Sparc
SunONE Webserver 6.0sp5 (AKA iplanet)
PHP 4.3.3RC2 (yes, I know, I should upgrade to RC4 first, but this is a
production system)
Sendmail - default as per Solaris 8.

Error:

PHP Warning:  mail(): Could not execute mail delivery program in
/opt/sunone/es/docs/download.php on line 174

php.ini:

sendmail_path = "/usr/lib/sendmail -t -i"

config.status:

./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql
--with-nsapi=/opt/sunone/es --enable-track-vars --enable-libgcc

The code works perfectly for a few hours, sending mails as expected, then
the above error appears, and continues to fail until another webserver
restart is performed. Prior to the sendmail_path variable being set, the
error would log to /var/adm/messages, but since the change it only logs to
the webserver errorlog.




-- 
Edit bug report at http://bugs.php.net/?id=25195&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25195&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25195&r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=25195&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=25195&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25195&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=25195&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=25195&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=25195&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=25195&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=25195&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=25195&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25195&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=25195&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=25195&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=25195&r=gnused



#25190 [Opn]: Segmentation fault

2003-08-21 Thread gabor at netway dot hu
 ID:   25190
 User updated by:  gabor at netway dot hu
 Reported By:  gabor at netway dot hu
 Status:   Open
 Bug Type: Unknown/Other Function
 Operating System: Debian Linux
 PHP Version:  4.3.3RC4
 New Comment:

Thank you :-).


Previous Comments:


[2003-08-21 10:58:59] gabor at netway dot hu

the code is:

  function OVS_Z050($ORA_SESS_ID){  
   global $conn;
   $Z050_query="
BEGIN
 msie_logout_session_proc (:sessid,:ipaddr,:result_rc);
END;
 ";
$stmt = $conn->PrepareSP($Z050_query);
$conn->Parameter($stmt,$ORA_SESS_ID,"sessid",27);
$conn->Parameter($stmt,getenv("REMOTE_ADDR"),"ipaddr",15);
$conn->Parameter($stmt,$rc, "result_rc",12);
$conn->Execute($stmt);
if ($rc==500)
 $msg = 'Logoff succeeded';
else {
 $msg="ERROR(".$rc."): ";
 if ($rc==(-501)){
  $msg.="Logoff ok, but session timed out!";
  echo "
  alert('".$msg."');  
 
   ";  
  
 }
 if ($rc==(-550)){
  $msg.="LOGGING ERROR!";  
  echo "
 alert('".$msg."');   
 
   ";  
 
 }
}   
 return $msg;
  }



[2003-08-21 10:47:36] [EMAIL PROTECTED]

Is this caused by some sort of third-party application? 
What is OVS? Do you have a self-contained example that can 
actually be reproduced? What does the function OVS_Z050() 
do? 
 
Unless you can answer these questions, this is likely 
bogus. 
 
J 



[2003-08-21 09:28:53] gabor at netway dot hu

Description:

apache crash, and no more request. 

Reproduce code:
---
include("head.php");

OVS_Z050($_SESSION["ovs_session"]);
sleep(5);
session_destroy();
?>


Expected result:

[Mon Aug 18 08:24:55 2003] [notice] Apache/1.3.26 Ben-SSL/1.48 (Unix)
Debian GNU/Linux PHP/4.3.3RC4-dev configured -- resuming normal
operations
[Mon Aug 18 08:24:55 2003] [notice] suEXEC mechanism enabled (wrapper:
/usr/lib/apache-ssl/suexec)
[Mon Aug 18 08:24:55 2003] [notice] Accept mutex: sysvsem (Default:
sysvsem)
[Mon Aug 18 10:48:18 2003] [notice] child pid 344 exit signal
Segmentation fault (11)
[Mon Aug 18 10:48:54 2003] [notice] child pid 341 exit signal
Segmentation fault (11)
[Mon Aug 18 10:49:37 2003] [notice] child pid 366 exit signal
Segmentation fault (11)
/usr/src/php4-STABLE-200308080930/Zend/zend_execute.c(1611) :  Freeing
0x08151FAC (12 bytes), script=/var/www/ovs/ovs.members/php/Z050.php
/usr/src/php4-STABLE-200308080930/Zend/zend_opcode.c(295) :  Freeing
0x0814CE14 (14520 bytes), script=/var/www/ovs/ovs.members/php/xx.php
Last leak repeated 2 times
Zend/zend_language_scanner.c(4619) :  Freeing 0x08151EF4 (11 bytes),
script=/var/www/xx.php
Last leak repeated 118 times
Zend/zend_language_scanner.c(4484) :  Freeing 0x08151EB4 (9 bytes),
script=/var/www/xx.php
Last leak repeated 80 times
Zend/zend_language_scanner.c(4492) :  Freeing 0x08151D2C (20 bytes),
script=/var/www/xx.php
Last leak repeated 80 times
Zend/zend_language_scanner.c(3072) :  Freeing 0x0814AA24 (84 bytes),
script=/var/www/xx.php
Last leak repeated 2 times
/usr/src/php4-STABLE-200308080930/Zend/zend_opcode.c(65) :  Freeing
0x0814B5A4 (4 bytes), script=/var/www/ovs/ovs.members/php/xx.php
Last leak repeated 2 times
Zend/zend_language_scanner.c(3911) :  Freeing 0x0814B564 (16 bytes),
script=/var/www/ovs/ovs.members/php/xx.php
Last leak repeated 5 times
/usr/src/php4-STABLE-200308080930/Zend/zend_compile.c(854) :  Freeing
0x0814B474 (13 bytes), script=/var/www/ovs/ovs.members/php/xx.php
/usr/src/php4-STABLE-200308080930/Zend/zend_variables.c(111) : Actual
location (location was relayed)
Last leak repeated 1 time
/usr/src/php4-STABLE-200308080930/Zend/zend_opcode.c(230) :  Freeing
0x081464D4 (12 bytes), script=/var/www/ovs/ovs.members/php/xx.php
/usr/src/php4-STABLE-200308080930/Zend/zend_compile.c(1761) :  Freeing
0x08145E84 (9 bytes), script=/var/www/ovs/ovs.members/php/xx.php
/usr/src/php4-STABLE-200308080930/Zend/zend_variables.c(111) : Actual
location (location was relayed)
/usr/src/php4-STABLE-200308080930/Zend/zend_compile.c(1745) :  Freeing
0x08145D2C (9 bytes), script=/var/www/ovs/ovs.members/php/xx.php
/usr/src/php4-STABLE-200308080930/Zend/zend_variables.c(111) : Actual
location (location was relayed)
/usr/src/php4-STABLE-200308080930/Zend/zend_compile.c(2025) :  Freeing
0x0814597C (8 bytes), script=/var/www/ovs/ovs.members/php/xx.php
/usr/src/php4-STABLE-200308080930/Zend/zend_variables.c(111) : Actual
location (location was relayed)
Last leak repeated 5 times
Zend/zend_language_scanner.c(4399) :  Freeing 0x0814617C (3 bytes),
script=/var/www/ovs/ovs.members/php/xx.php
Last leak repeated 1 time
Zend/zend_

#25194 [NEW]: require() not findings files when "." is in include_path

2003-08-21 Thread ri at kamp dot de
From: ri at kamp dot de
Operating system: Solaris 8
PHP version:  4CVS-2003-08-21 (stable)
PHP Bug Type: Filesystem function related
Bug description:  require() not findings files when "." is in include_path

Description:

require cannot open a file in the same directory as the calling script
[like require('./includefile.php')]. All dirs in the path have permission
755. OS is solaris 8, documentroot mounted as NFS, include_path has "."
within. In the case this happens also getcwd() or passthru("/bin/pwd")
gives no result but passthru("/bin/ls") list the "current" dir.

The function expand_filepath in main/fopen_wrappers.c gets an empty result
when calling VCWD_GETCWD(cwd, MAXPATHLEN);

This may not be a php bug (maybe solaris8 or nfs) but occurs only within
php. As workaround I changed expand_filepath to:
--
int cwd_pos;

result = VCWD_GETCWD(cwd, MAXPATHLEN);  
if (!result) {
//cwd[0] = '\0';
php_error_docref(NULL TSRMLS_CC, E_WARNING, 
"cwd not working for
%s",SG(request_info).path_translated);
strlcpy(cwd, SG(request_info).path_translated,
sizeof(cwd));
cwd_pos = strlen(cwd) - 1;

/* Strip filename */
while (!IS_SLASH(cwd[cwd_pos])
&& (cwd_pos >= 0)) {
cwd[cwd_pos--] = 0;
}
}
--

I know this is no final solution but the scripts work thereafter. 

Reproduce code:
---
include_path = ".:/usr/local/lib/php"
documentroot = "/home/htdocs"
script is in /home/htdocs/ (documentroot)



or



Actual result:
--
Fatal error: main(): Failed opening required './somefile.php'
(include_path='.:/usr/local/lib/php')

-- 
Edit bug report at http://bugs.php.net/?id=25194&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25194&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25194&r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=25194&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=25194&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25194&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=25194&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=25194&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=25194&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=25194&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=25194&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=25194&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25194&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=25194&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=25194&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=25194&r=gnused



#25190 [Fbk->Opn]: Segmentation fault

2003-08-21 Thread gabor at netway dot hu
 ID:   25190
 User updated by:  gabor at netway dot hu
 Reported By:  gabor at netway dot hu
-Status:   Feedback
+Status:   Open
 Bug Type: Unknown/Other Function
 Operating System: Debian Linux
 PHP Version:  4.3.3RC4
 New Comment:

the code is:

  function OVS_Z050($ORA_SESS_ID){  
   global $conn;
   $Z050_query="
BEGIN
 msie_logout_session_proc (:sessid,:ipaddr,:result_rc);
END;
 ";
$stmt = $conn->PrepareSP($Z050_query);
$conn->Parameter($stmt,$ORA_SESS_ID,"sessid",27);
$conn->Parameter($stmt,getenv("REMOTE_ADDR"),"ipaddr",15);
$conn->Parameter($stmt,$rc, "result_rc",12);
$conn->Execute($stmt);
if ($rc==500)
 $msg = 'Logoff succeeded';
else {
 $msg="ERROR(".$rc."): ";
 if ($rc==(-501)){
  $msg.="Logoff ok, but session timed out!";
  echo "
  alert('".$msg."');  
 
   ";  
  
 }
 if ($rc==(-550)){
  $msg.="LOGGING ERROR!";  
  echo "
 alert('".$msg."');   
 
   ";  
 
 }
}   
 return $msg;
  }


Previous Comments:


[2003-08-21 10:47:36] [EMAIL PROTECTED]

Is this caused by some sort of third-party application? 
What is OVS? Do you have a self-contained example that can 
actually be reproduced? What does the function OVS_Z050() 
do? 
 
Unless you can answer these questions, this is likely 
bogus. 
 
J 



[2003-08-21 09:28:53] gabor at netway dot hu

Description:

apache crash, and no more request. 

Reproduce code:
---
include("head.php");

OVS_Z050($_SESSION["ovs_session"]);
sleep(5);
session_destroy();
?>


Expected result:

[Mon Aug 18 08:24:55 2003] [notice] Apache/1.3.26 Ben-SSL/1.48 (Unix)
Debian GNU/Linux PHP/4.3.3RC4-dev configured -- resuming normal
operations
[Mon Aug 18 08:24:55 2003] [notice] suEXEC mechanism enabled (wrapper:
/usr/lib/apache-ssl/suexec)
[Mon Aug 18 08:24:55 2003] [notice] Accept mutex: sysvsem (Default:
sysvsem)
[Mon Aug 18 10:48:18 2003] [notice] child pid 344 exit signal
Segmentation fault (11)
[Mon Aug 18 10:48:54 2003] [notice] child pid 341 exit signal
Segmentation fault (11)
[Mon Aug 18 10:49:37 2003] [notice] child pid 366 exit signal
Segmentation fault (11)
/usr/src/php4-STABLE-200308080930/Zend/zend_execute.c(1611) :  Freeing
0x08151FAC (12 bytes), script=/var/www/ovs/ovs.members/php/Z050.php
/usr/src/php4-STABLE-200308080930/Zend/zend_opcode.c(295) :  Freeing
0x0814CE14 (14520 bytes), script=/var/www/ovs/ovs.members/php/xx.php
Last leak repeated 2 times
Zend/zend_language_scanner.c(4619) :  Freeing 0x08151EF4 (11 bytes),
script=/var/www/xx.php
Last leak repeated 118 times
Zend/zend_language_scanner.c(4484) :  Freeing 0x08151EB4 (9 bytes),
script=/var/www/xx.php
Last leak repeated 80 times
Zend/zend_language_scanner.c(4492) :  Freeing 0x08151D2C (20 bytes),
script=/var/www/xx.php
Last leak repeated 80 times
Zend/zend_language_scanner.c(3072) :  Freeing 0x0814AA24 (84 bytes),
script=/var/www/xx.php
Last leak repeated 2 times
/usr/src/php4-STABLE-200308080930/Zend/zend_opcode.c(65) :  Freeing
0x0814B5A4 (4 bytes), script=/var/www/ovs/ovs.members/php/xx.php
Last leak repeated 2 times
Zend/zend_language_scanner.c(3911) :  Freeing 0x0814B564 (16 bytes),
script=/var/www/ovs/ovs.members/php/xx.php
Last leak repeated 5 times
/usr/src/php4-STABLE-200308080930/Zend/zend_compile.c(854) :  Freeing
0x0814B474 (13 bytes), script=/var/www/ovs/ovs.members/php/xx.php
/usr/src/php4-STABLE-200308080930/Zend/zend_variables.c(111) : Actual
location (location was relayed)
Last leak repeated 1 time
/usr/src/php4-STABLE-200308080930/Zend/zend_opcode.c(230) :  Freeing
0x081464D4 (12 bytes), script=/var/www/ovs/ovs.members/php/xx.php
/usr/src/php4-STABLE-200308080930/Zend/zend_compile.c(1761) :  Freeing
0x08145E84 (9 bytes), script=/var/www/ovs/ovs.members/php/xx.php
/usr/src/php4-STABLE-200308080930/Zend/zend_variables.c(111) : Actual
location (location was relayed)
/usr/src/php4-STABLE-200308080930/Zend/zend_compile.c(1745) :  Freeing
0x08145D2C (9 bytes), script=/var/www/ovs/ovs.members/php/xx.php
/usr/src/php4-STABLE-200308080930/Zend/zend_variables.c(111) : Actual
location (location was relayed)
/usr/src/php4-STABLE-200308080930/Zend/zend_compile.c(2025) :  Freeing
0x0814597C (8 bytes), script=/var/www/ovs/ovs.members/php/xx.php
/usr/src/php4-STABLE-200308080930/Zend/zend_variables.c(111) : Actual
location (location was relayed)
Last leak repeated 5 times
Zend/zend_language_scanner.c(4399) :  Freeing 0x0814617C (3 bytes),
script=/var/www/ovs/ovs.members/php/xx.php
Last leak repeated 1 time
Zend/zend_language_scanner.c(4710) :  Freeing 0x081410AC (9 bytes),
script=/var/www/ovs/ovs.members/php/xx.php
[Mon Au

#23331 [Opn]: Memory leak in ISAPI

2003-08-21 Thread jakub at icewarp dot com
 ID:   23331
 User updated by:  jakub at icewarp dot com
 Reported By:  jakub at icewarp dot com
 Status:   Open
 Bug Type: IIS related
 Operating System: win32
 PHP Version:  4.3.3RC5-dev
 New Comment:

I can send you a small tool I made. It connects to any web server and
issues the GET /... HTTP command in a given cycle and given number of
threads. You can test it easily with it. It's very handy. Just let me
know.


Previous Comments:


[2003-08-18 09:42:43] jakub at icewarp dot com

That's what I thought of too so I removed all extensions and the
results I posted are without any extensions.



[2003-08-18 09:31:14] [EMAIL PROTECTED]

You have some extensions loaded in php.ini, right?
Which ones are those? What if you don't load them?




[2003-08-18 09:24:49] jakub at icewarp dot com

The problem is still there. Nothing has changed. 
I performed the same 2 tests. 

1. LoadLibrary and FreeLibrary - 200 cycles = 50MB leak
2. HttpExtensionProc - 1000 calls = 500kB leak

Please, let me know how can I help.
Jakub



[2003-08-15 08:48:14] [EMAIL PROTECTED]

btw. Isn't this same as bug #16325 ??




[2003-08-15 08:31:35] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip





The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/23331

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



#25188 [Opn]: array_compact

2003-08-21 Thread jay
 ID:   25188
 Updated by:   [EMAIL PROTECTED]
 Reported By:  jari at reputation dot fi
 Status:   Open
 Bug Type: Feature/Change Request
 Operating System: All
 PHP Version:  4.3.3RC4
 New Comment:

Wouldn't array_filter() provide what you're looking for? 
 
J 


Previous Comments:


[2003-08-21 08:45:52] jari at reputation dot fi

Description:

Removes all array elements with empty values from a given array.

Didn't manage to find command similar to this.

Reproduce code:
---
function array_compact($thisArray) {
  for($i = 0; $i < sizeof($thisArray); $i++) {
if($thisArray[$i] != "") {
  $newArray[] = $thisArray[$i];
}
  }
  return $newArray;
}


Expected result:

Array
(
[0] => banana
[1] =>
[2] => apple
)

->

Array
(
[0] => banana
[1] => apple
)






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



#25190 [Opn->Fbk]: Segmentation fault

2003-08-21 Thread jay
 ID:   25190
 Updated by:   [EMAIL PROTECTED]
 Reported By:  gabor at netway dot hu
-Status:   Open
+Status:   Feedback
 Bug Type: Unknown/Other Function
 Operating System: Debian Linux
 PHP Version:  4.3.3RC4
 New Comment:

Is this caused by some sort of third-party application? 
What is OVS? Do you have a self-contained example that can 
actually be reproduced? What does the function OVS_Z050() 
do? 
 
Unless you can answer these questions, this is likely 
bogus. 
 
J 


Previous Comments:


[2003-08-21 09:28:53] gabor at netway dot hu

Description:

apache crash, and no more request. 

Reproduce code:
---
include("head.php");

OVS_Z050($_SESSION["ovs_session"]);
sleep(5);
session_destroy();
?>


Expected result:

[Mon Aug 18 08:24:55 2003] [notice] Apache/1.3.26 Ben-SSL/1.48 (Unix)
Debian GNU/Linux PHP/4.3.3RC4-dev configured -- resuming normal
operations
[Mon Aug 18 08:24:55 2003] [notice] suEXEC mechanism enabled (wrapper:
/usr/lib/apache-ssl/suexec)
[Mon Aug 18 08:24:55 2003] [notice] Accept mutex: sysvsem (Default:
sysvsem)
[Mon Aug 18 10:48:18 2003] [notice] child pid 344 exit signal
Segmentation fault (11)
[Mon Aug 18 10:48:54 2003] [notice] child pid 341 exit signal
Segmentation fault (11)
[Mon Aug 18 10:49:37 2003] [notice] child pid 366 exit signal
Segmentation fault (11)
/usr/src/php4-STABLE-200308080930/Zend/zend_execute.c(1611) :  Freeing
0x08151FAC (12 bytes), script=/var/www/ovs/ovs.members/php/Z050.php
/usr/src/php4-STABLE-200308080930/Zend/zend_opcode.c(295) :  Freeing
0x0814CE14 (14520 bytes), script=/var/www/ovs/ovs.members/php/xx.php
Last leak repeated 2 times
Zend/zend_language_scanner.c(4619) :  Freeing 0x08151EF4 (11 bytes),
script=/var/www/xx.php
Last leak repeated 118 times
Zend/zend_language_scanner.c(4484) :  Freeing 0x08151EB4 (9 bytes),
script=/var/www/xx.php
Last leak repeated 80 times
Zend/zend_language_scanner.c(4492) :  Freeing 0x08151D2C (20 bytes),
script=/var/www/xx.php
Last leak repeated 80 times
Zend/zend_language_scanner.c(3072) :  Freeing 0x0814AA24 (84 bytes),
script=/var/www/xx.php
Last leak repeated 2 times
/usr/src/php4-STABLE-200308080930/Zend/zend_opcode.c(65) :  Freeing
0x0814B5A4 (4 bytes), script=/var/www/ovs/ovs.members/php/xx.php
Last leak repeated 2 times
Zend/zend_language_scanner.c(3911) :  Freeing 0x0814B564 (16 bytes),
script=/var/www/ovs/ovs.members/php/xx.php
Last leak repeated 5 times
/usr/src/php4-STABLE-200308080930/Zend/zend_compile.c(854) :  Freeing
0x0814B474 (13 bytes), script=/var/www/ovs/ovs.members/php/xx.php
/usr/src/php4-STABLE-200308080930/Zend/zend_variables.c(111) : Actual
location (location was relayed)
Last leak repeated 1 time
/usr/src/php4-STABLE-200308080930/Zend/zend_opcode.c(230) :  Freeing
0x081464D4 (12 bytes), script=/var/www/ovs/ovs.members/php/xx.php
/usr/src/php4-STABLE-200308080930/Zend/zend_compile.c(1761) :  Freeing
0x08145E84 (9 bytes), script=/var/www/ovs/ovs.members/php/xx.php
/usr/src/php4-STABLE-200308080930/Zend/zend_variables.c(111) : Actual
location (location was relayed)
/usr/src/php4-STABLE-200308080930/Zend/zend_compile.c(1745) :  Freeing
0x08145D2C (9 bytes), script=/var/www/ovs/ovs.members/php/xx.php
/usr/src/php4-STABLE-200308080930/Zend/zend_variables.c(111) : Actual
location (location was relayed)
/usr/src/php4-STABLE-200308080930/Zend/zend_compile.c(2025) :  Freeing
0x0814597C (8 bytes), script=/var/www/ovs/ovs.members/php/xx.php
/usr/src/php4-STABLE-200308080930/Zend/zend_variables.c(111) : Actual
location (location was relayed)
Last leak repeated 5 times
Zend/zend_language_scanner.c(4399) :  Freeing 0x0814617C (3 bytes),
script=/var/www/ovs/ovs.members/php/xx.php
Last leak repeated 1 time
Zend/zend_language_scanner.c(4710) :  Freeing 0x081410AC (9 bytes),
script=/var/www/ovs/ovs.members/php/xx.php
[Mon Aug 18 10:50:32 2003] [notice] child pid 342 exit signal
Segmentation fault (11)
[Mon Aug 18 10:51:52 2003] [notice] child pid 340 exit signal
Segmentation fault (11)
[Mon Aug 18 10:53:22 2003] [notice] child pid 339 exit signal
Segmentation fault (11)
[Mon Aug 18 14:03:12 2003] [notice] child pid 472 exit signal
Segmentation fault (11)
[Mon Aug 18 14:11:22 2003] [notice] child pid 433 exit signal
Segmentation fault (11)
[Mon Aug 18 14:12:32 2003] [notice] child pid 338 exit signal
Segmentation fault (11)
[Mon Aug 18 14:13:23 2003] [notice] child pid 434 exit signal
Segmentation fault (11)
[Mon Aug 18 14:15:11 2003] [notice] child pid 473 exit signal
Segmentation fault (11)
[Mon Aug 18 14:15:30 2003] [notice] child pid 443 exit signal
Segmentation fault (11)
[Mon Aug 18 14:15:57 2003] [notice] child pid 474 exit signal
Segmentation fault (11)







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



#25185 [Fbk]: Unserialize can't decode string from serialize

2003-08-21 Thread helly
 ID:   25185
 Updated by:   [EMAIL PROTECTED]
 Reported By:  cpuidle at gmx dot de
 Status:   Feedback
 Bug Type: *General Issues
-Operating System: WinXP
+Operating System: Windows
 PHP Version:  4.3.3RC4
 New Comment:

The problem doesn't have to do anything with serialize/unserialize but
with the way you store/load the serialized data. Can you tell us how?
And do you do any manual changes to the serialized data or even view it
with an external editor?


Previous Comments:


[2003-08-21 07:59:27] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip





[2003-08-21 05:14:42] cpuidle at gmx dot de

Description:

I'm using serialize to write array structures to the filesystem. After
reading the structure again, unserialize fails to decode and returns 0
instead. Serialized sample data is included. The problem is fixed when
the two larger data blocks are removed and replaced with samething
without linebreaks- not sure if that's part of the problem.

Reproduce code:
---
http://www.cpuidle.de/serialized.txt







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



#25190 [NEW]: Segmentation fault

2003-08-21 Thread gabor at netway dot hu
From: gabor at netway dot hu
Operating system: Debian Linux
PHP version:  4.3.3RC4
PHP Bug Type: Unknown/Other Function
Bug description:  Segmentation fault

Description:

apache crash, and no more request. 

Reproduce code:
---
include("head.php");

OVS_Z050($_SESSION["ovs_session"]);
sleep(5);
session_destroy();
?>


Expected result:

[Mon Aug 18 08:24:55 2003] [notice] Apache/1.3.26 Ben-SSL/1.48 (Unix)
Debian GNU/Linux PHP/4.3.3RC4-dev configured -- resuming normal
operations
[Mon Aug 18 08:24:55 2003] [notice] suEXEC mechanism enabled (wrapper:
/usr/lib/apache-ssl/suexec)
[Mon Aug 18 08:24:55 2003] [notice] Accept mutex: sysvsem (Default:
sysvsem)
[Mon Aug 18 10:48:18 2003] [notice] child pid 344 exit signal Segmentation
fault (11)
[Mon Aug 18 10:48:54 2003] [notice] child pid 341 exit signal Segmentation
fault (11)
[Mon Aug 18 10:49:37 2003] [notice] child pid 366 exit signal Segmentation
fault (11)
/usr/src/php4-STABLE-200308080930/Zend/zend_execute.c(1611) :  Freeing
0x08151FAC (12 bytes), script=/var/www/ovs/ovs.members/php/Z050.php
/usr/src/php4-STABLE-200308080930/Zend/zend_opcode.c(295) :  Freeing
0x0814CE14 (14520 bytes), script=/var/www/ovs/ovs.members/php/xx.php
Last leak repeated 2 times
Zend/zend_language_scanner.c(4619) :  Freeing 0x08151EF4 (11 bytes),
script=/var/www/xx.php
Last leak repeated 118 times
Zend/zend_language_scanner.c(4484) :  Freeing 0x08151EB4 (9 bytes),
script=/var/www/xx.php
Last leak repeated 80 times
Zend/zend_language_scanner.c(4492) :  Freeing 0x08151D2C (20 bytes),
script=/var/www/xx.php
Last leak repeated 80 times
Zend/zend_language_scanner.c(3072) :  Freeing 0x0814AA24 (84 bytes),
script=/var/www/xx.php
Last leak repeated 2 times
/usr/src/php4-STABLE-200308080930/Zend/zend_opcode.c(65) :  Freeing
0x0814B5A4 (4 bytes), script=/var/www/ovs/ovs.members/php/xx.php
Last leak repeated 2 times
Zend/zend_language_scanner.c(3911) :  Freeing 0x0814B564 (16 bytes),
script=/var/www/ovs/ovs.members/php/xx.php
Last leak repeated 5 times
/usr/src/php4-STABLE-200308080930/Zend/zend_compile.c(854) :  Freeing
0x0814B474 (13 bytes), script=/var/www/ovs/ovs.members/php/xx.php
/usr/src/php4-STABLE-200308080930/Zend/zend_variables.c(111) : Actual
location (location was relayed)
Last leak repeated 1 time
/usr/src/php4-STABLE-200308080930/Zend/zend_opcode.c(230) :  Freeing
0x081464D4 (12 bytes), script=/var/www/ovs/ovs.members/php/xx.php
/usr/src/php4-STABLE-200308080930/Zend/zend_compile.c(1761) :  Freeing
0x08145E84 (9 bytes), script=/var/www/ovs/ovs.members/php/xx.php
/usr/src/php4-STABLE-200308080930/Zend/zend_variables.c(111) : Actual
location (location was relayed)
/usr/src/php4-STABLE-200308080930/Zend/zend_compile.c(1745) :  Freeing
0x08145D2C (9 bytes), script=/var/www/ovs/ovs.members/php/xx.php
/usr/src/php4-STABLE-200308080930/Zend/zend_variables.c(111) : Actual
location (location was relayed)
/usr/src/php4-STABLE-200308080930/Zend/zend_compile.c(2025) :  Freeing
0x0814597C (8 bytes), script=/var/www/ovs/ovs.members/php/xx.php
/usr/src/php4-STABLE-200308080930/Zend/zend_variables.c(111) : Actual
location (location was relayed)
Last leak repeated 5 times
Zend/zend_language_scanner.c(4399) :  Freeing 0x0814617C (3 bytes),
script=/var/www/ovs/ovs.members/php/xx.php
Last leak repeated 1 time
Zend/zend_language_scanner.c(4710) :  Freeing 0x081410AC (9 bytes),
script=/var/www/ovs/ovs.members/php/xx.php
[Mon Aug 18 10:50:32 2003] [notice] child pid 342 exit signal Segmentation
fault (11)
[Mon Aug 18 10:51:52 2003] [notice] child pid 340 exit signal Segmentation
fault (11)
[Mon Aug 18 10:53:22 2003] [notice] child pid 339 exit signal Segmentation
fault (11)
[Mon Aug 18 14:03:12 2003] [notice] child pid 472 exit signal Segmentation
fault (11)
[Mon Aug 18 14:11:22 2003] [notice] child pid 433 exit signal Segmentation
fault (11)
[Mon Aug 18 14:12:32 2003] [notice] child pid 338 exit signal Segmentation
fault (11)
[Mon Aug 18 14:13:23 2003] [notice] child pid 434 exit signal Segmentation
fault (11)
[Mon Aug 18 14:15:11 2003] [notice] child pid 473 exit signal Segmentation
fault (11)
[Mon Aug 18 14:15:30 2003] [notice] child pid 443 exit signal Segmentation
fault (11)
[Mon Aug 18 14:15:57 2003] [notice] child pid 474 exit signal Segmentation
fault (11)



-- 
Edit bug report at http://bugs.php.net/?id=25190&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25190&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25190&r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=25190&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=25190&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25190&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=25190&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=25190&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=25190&r=notwrong
No

#19482 [Com]: segfault on child process

2003-08-21 Thread sales at isptek dot com
 ID:   19482
 Comment by:   sales at isptek dot com
 Reported By:  amith at xalan dot com
 Status:   Closed
 Bug Type: PCRE related
 Operating System: Redhat 7.3
 PHP Version:  4.2.3,4.3.0-dev
 New Comment:

yes same problem here 8 identical machines but two seg fault just about
every day on login to imp


Previous Comments:


[2003-07-19 22:15:50] gonzalo at linuxaus dot com

Hi,

I know it's been almost a year since closing bug #19482 but I'm having
a very similar issue, only that it's difficult to reproduce.

Sometimes, mainly when someone is using IMP, child processes tend to
segfault quite a bit. As I said, I can't reproduce it easily so it's
hard to know whether whatever I try fixes it or not.. it's just a
matter of time :)

I'm running Apache 1.3.27, PHP 4.3.1, Horde 2.2.3, IMP 3.2.1

Have you had any similar reports recently?



[2002-10-07 12:25:02] [EMAIL PROTECTED]

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.





[2002-10-07 11:44:06] amith at xalan dot com

I applied the patch to php4-200209191800 (the newest snapshot died with
some other unrelated problem) and ran my normal tests.  Looked like
this fixed it!  I went through 174 emails with IE and had no segfaults.
 Thanks for everyone's help in solving this problem and continue with
the good work.



[2002-10-07 11:16:59] [EMAIL PROTECTED]

Please try this patch and report back:

RCS file: /repository/php4/ext/pcre/php_pcre.c,v
retrieving revision 1.128
diff -u -2 -b -w -B -r1.128 php_pcre.c
--- ext/pcre/php_pcre.c 11 Sep 2002 14:41:25 -  1.128
+++ ext/pcre/php_pcre.c 7 Oct 2002 16:05:59 -
@@ -67,4 +67,5 @@
 #if HAVE_SETLOCALE
if ((void*)pce->tables) pefree((void*)pce->tables, 1);
+   pefree(pce->locale, 1);
 #endif
 }
@@ -303,5 +304,5 @@
new_entry.preg_options = poptions;
 #if HAVE_SETLOCALE
-   new_entry.locale = locale;
+   new_entry.locale = pestrdup(locale, 1);
new_entry.tables = tables;
 #endif




[2002-10-06 22:41:36] amith at xalan dot com

I tried with the newest snapshot but I get the following backtrace

(gdb) run -X -DSSL -f /usr/local/apache/conf/httpd.conf
Starting program: /usr/local/apache/bin/httpd -X -DSSL -f
/usr/local/apache/conf/httpd.conf

Program received signal SIGSEGV, Segmentation fault.
0x403d2e94 in _efree (ptr=0x0)
at /usr/local/software/php4-200210061800/Zend/zend_alloc.c:211
211 CALCULATE_REAL_SIZE_AND_CACHE_INDEX(p->size);
(gdb) bt
#0  0x403d2e94 in _efree (ptr=0x0)
at /usr/local/software/php4-200210061800/Zend/zend_alloc.c:211
#1  0x403e5b8e in zend_hash_destroy (ht=0x82ea824)
at /usr/local/software/php4-200210061800/Zend/zend_hash.c:550
#2  0x403e063a in _zval_dtor (zvalue=0x81802ec)
at /usr/local/software/php4-200210061800/Zend/zend_variables.c:51
#3  0x403f1206 in execute (op_array=0x82d130c)
at /usr/local/software/php4-200210061800/Zend/zend_execute.c:449
#4  0x403f411a in execute (op_array=0x82182e4)
at /usr/local/software/php4-200210061800/Zend/zend_execute.c:1641
#5  0x403e1adc in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
at /usr/local/software/php4-200210061800/Zend/zend.c:834
#6  0x403bbfed in php_execute_script (primary_file=0xb6d0)
at /usr/local/software/php4-200210061800/main/main.c:1542
#7  0x403fb4b6 in apache_php_module_main (r=0x816c9e0,
display_source_mode=0)
at
/usr/local/software/php4-200210061800/sapi/apache/sapi_apache.c:55
#8  0x403fbfd6 in send_php (r=0x816c9e0, display_source_mode=0,
filename=0x0)
at
/usr/local/software/php4-200210061800/sapi/apache/mod_php4.c:564
#9  0x403fc02a in send_parsed_php (r=0x816c9e0)
at
/usr/local/software/php4-200210061800/sapi/apache/mod_php4.c:579
#10 0x0806bdcf in ap_invoke_handler ()
#11 0x08080e53 in process_request_internal ()
#12 0x08080eb4 in ap_process_request ()
---Type  to continue, or q  to quit---
#13 0x08077df1 in child_main ()
#14 0x08077fc0 in make_child ()
#15 0x08078134 in startup_children ()
#16 0x080787ac in standalone_main ()
#17 0x0807902b in main ()
#18 0x42017499 in __libc_start_main () from /lib/i686/libc.so.6



The rema

#25188 [NEW]: array_compact

2003-08-21 Thread jari at reputation dot fi
From: jari at reputation dot fi
Operating system: All
PHP version:  4.3.3RC4
PHP Bug Type: Feature/Change Request
Bug description:  array_compact

Description:

Removes all array elements with empty values from a given array.

Didn't manage to find command similar to this.

Reproduce code:
---
function array_compact($thisArray) {
  for($i = 0; $i < sizeof($thisArray); $i++) {
if($thisArray[$i] != "") {
  $newArray[] = $thisArray[$i];
}
  }
  return $newArray;
}


Expected result:

Array
(
[0] => banana
[1] =>
[2] => apple
)

->

Array
(
[0] => banana
[1] => apple
)


-- 
Edit bug report at http://bugs.php.net/?id=25188&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25188&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25188&r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=25188&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=25188&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25188&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=25188&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=25188&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=25188&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=25188&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=25188&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=25188&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25188&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=25188&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=25188&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=25188&r=gnused



#25172 [Fbk->Opn]: register_globals=on and $HTTP_HOST sometimes empty

2003-08-21 Thread php at lansco dot de
 ID:   25172
 User updated by:  php at lansco dot de
 Reported By:  php at lansco dot de
-Status:   Feedback
+Status:   Open
 Bug Type: *General Issues
 Operating System: Linux
 PHP Version:  4.3.2
 New Comment:

Apache-configure:
"./configure" \
"--prefix=/usr/local/apache2" \
"--with-mpm=prefork" \
"--enable-modules=deflate expires include info rewrite ssl unique_id
usertrack log_config logio rewrite vhost_alias so ext_filter dav
headers speling"

PHP-configure:
'./configure' '--with-mysql=/usr/local/mysql' '--enable-ftp'
'--with-gd' '--with-gd-dir=/usr/local' '--with-jpeg'
'--with-jpeg-dir=/usr/local' '--with-apxs2=/usr/local/apache2/bin/apxs'
'--with-gettext' '--with-mcrypt' '--with-imap' '--with-imap-ssl'
'--with-ldap' '--with-zlib-dir=/usr/include' '--enable-xslt'
'--with-xslt-sablot' '--enable-exif'


Previous Comments:


[2003-08-21 08:29:30] [EMAIL PROTECTED]

What was the configure line used to configure Apache?
(And PHP too)




[2003-08-21 08:25:51] php at lansco dot de

variables_order = EGPCS
gpc_order = GPC
Apache Version = Apache/2.0.47 (Unix) mod_ssl/2.0.47 OpenSSL/0.9.6c
DAV/2 PHP/4.3.3RC5-dev



[2003-08-21 08:18:11] [EMAIL PROTECTED]

What are your variables_order and gpc_order settings?
(from phpinfo() output)
Which webserver? Apache? What version?




[2003-08-21 03:21:41] php at lansco dot de

With http://snaps.php.net/php4-STABLE-latest.tar.gz the error also
occurs :(



[2003-08-20 17:31:39] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip





The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/25172

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



#25172 [Opn->Fbk]: register_globals=on and $HTTP_HOST sometimes empty

2003-08-21 Thread sniper
 ID:   25172
 Updated by:   [EMAIL PROTECTED]
 Reported By:  php at lansco dot de
-Status:   Open
+Status:   Feedback
 Bug Type: *General Issues
 Operating System: Linux
 PHP Version:  4.3.2
 New Comment:

What was the configure line used to configure Apache?
(And PHP too)



Previous Comments:


[2003-08-21 08:25:51] php at lansco dot de

variables_order = EGPCS
gpc_order = GPC
Apache Version = Apache/2.0.47 (Unix) mod_ssl/2.0.47 OpenSSL/0.9.6c
DAV/2 PHP/4.3.3RC5-dev



[2003-08-21 08:18:11] [EMAIL PROTECTED]

What are your variables_order and gpc_order settings?
(from phpinfo() output)
Which webserver? Apache? What version?




[2003-08-21 03:21:41] php at lansco dot de

With http://snaps.php.net/php4-STABLE-latest.tar.gz the error also
occurs :(



[2003-08-20 17:31:39] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip





[2003-08-20 05:03:43] php at lansco dot de

Description:

Sometimes $HTTP_HOST is empty while $_SERVER["HTTP_HOST"] contains the
expected value.

After a reload $HTTP_HOST mostly contains the expected value.

This error also occurs with PHP-4.3.2


Reproduce code:
---
print "1: ".$HTTP_HOST."\n";
print "2: ".$_SERVER["HTTP_HOST"]."\n";


Expected result:

1: test.com
2: test.com

Actual result:
--
1: 
2: test.com





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



#25172 [Fbk->Opn]: register_globals=on and $HTTP_HOST sometimes empty

2003-08-21 Thread php at lansco dot de
 ID:   25172
 User updated by:  php at lansco dot de
 Reported By:  php at lansco dot de
-Status:   Feedback
+Status:   Open
 Bug Type: *General Issues
 Operating System: Linux
 PHP Version:  4.3.2
 New Comment:

variables_order = EGPCS
gpc_order = GPC
Apache Version = Apache/2.0.47 (Unix) mod_ssl/2.0.47 OpenSSL/0.9.6c
DAV/2 PHP/4.3.3RC5-dev


Previous Comments:


[2003-08-21 08:18:11] [EMAIL PROTECTED]

What are your variables_order and gpc_order settings?
(from phpinfo() output)
Which webserver? Apache? What version?




[2003-08-21 03:21:41] php at lansco dot de

With http://snaps.php.net/php4-STABLE-latest.tar.gz the error also
occurs :(



[2003-08-20 17:31:39] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip





[2003-08-20 05:03:43] php at lansco dot de

Description:

Sometimes $HTTP_HOST is empty while $_SERVER["HTTP_HOST"] contains the
expected value.

After a reload $HTTP_HOST mostly contains the expected value.

This error also occurs with PHP-4.3.2


Reproduce code:
---
print "1: ".$HTTP_HOST."\n";
print "2: ".$_SERVER["HTTP_HOST"]."\n";


Expected result:

1: test.com
2: test.com

Actual result:
--
1: 
2: test.com





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



#19775 [Opn]: PHP crashes when trying to access 2d int matrix returned from java

2003-08-21 Thread sniper
 ID:   19775
 Updated by:   [EMAIL PROTECTED]
 Reported By:  waazup at hotmail dot com
 Status:   Open
 Bug Type: Java related
 Operating System: Windows XP Pro
-PHP Version:  4.2.3
+PHP Version:  4.3.3RC5-dev
 New Comment:

The Java stuff in PHP is totally unmaintained (and still experimental
too). Maybe in PHP 5 it will actually work.



Previous Comments:


[2003-08-21 00:48:04] waazup at hotmail dot com

Sorry feedback took so long. I'm still experiencing the same problem.
Using the latest stable build link you provided for windows. Dated
August 15th.

It's frustrating to by asked the same question 3 times. Is an attempt
being made to fix this bug, or are you just wishing it will magically
disappear?
Sorry if I appear snappy but this bug was posted almost 1 year ago.



[2003-08-15 08:17:27] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip





[2002-11-21 02:14:26] waazup at hotmail dot com

I tried using:
http://snaps.php.net/win32/php4-win32-latest.zip
Time Stamped 20-Nov-2002 23:30

I am still getting the same error as in the last post.



[2002-11-15 02:57:11] waazup at hotmail dot com

I determined that for some reason, these latest builds don't like to
run from folders that have names that include spaces.
I created a virtual directory on WinXP point to a directory with no
spaces to get around this on issue.
After I resolved that problem, php was able to open the file but this
is the error I received using the latest build time stamped 14-Nov-2002
23:29


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

imageMatrix[0][0]=20

imageMatrix[1][1]=22

2

9

21
-

I also received a windows error that says "PHP Script Interpreter has
encountered a problem".

I have created a stripped down version of the script I am using to test
this bug. This script responds the same way as my original php script
for version 4.2.3 (note that I did not  post the entire original script
just the portion that called the Java class).

Here is the stripped down script to test the bug:
\n";
print "imageMatrix[1][1]=" . $imageMatrix[1][1] . "\n";

// Apply filter to image
$FilterObject = new Java("Filter");
$newImageMatrix = $FilterObject->applyFilter($filter, $filterDimension,
$imageMatrix, $imageSizeX, $imageSizeY);
$tempVal = $newImageMatrix[0][0];
print $tempVal . "\n";
$tempVal = $newImageMatrix[1][1];
print $tempVal . "\n";
$tempVal = $newImageMatrix[2][2];
print $tempVal . "\n";

?>



[2002-11-12 06:12:56] [EMAIL PROTECTED]

Error "Could not open input file." sounds like PHP does either not find
the file or doesn't have permission to access it..




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/19775

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



#25172 [Opn->Fbk]: register_globals=on and $HTTP_HOST sometimes empty

2003-08-21 Thread sniper
 ID:   25172
 Updated by:   [EMAIL PROTECTED]
 Reported By:  php at lansco dot de
-Status:   Open
+Status:   Feedback
 Bug Type: *General Issues
 Operating System: Linux
 PHP Version:  4.3.2
 New Comment:

What are your variables_order and gpc_order settings?
(from phpinfo() output)
Which webserver? Apache? What version?



Previous Comments:


[2003-08-21 03:21:41] php at lansco dot de

With http://snaps.php.net/php4-STABLE-latest.tar.gz the error also
occurs :(



[2003-08-20 17:31:39] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip





[2003-08-20 05:03:43] php at lansco dot de

Description:

Sometimes $HTTP_HOST is empty while $_SERVER["HTTP_HOST"] contains the
expected value.

After a reload $HTTP_HOST mostly contains the expected value.

This error also occurs with PHP-4.3.2


Reproduce code:
---
print "1: ".$HTTP_HOST."\n";
print "2: ".$_SERVER["HTTP_HOST"]."\n";


Expected result:

1: test.com
2: test.com

Actual result:
--
1: 
2: test.com





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



#5133 [Com]: php_oci8 works on ISAPI but not elsewhere

2003-08-21 Thread aedelman992000 at yahoo dot com
 ID:   5133
 Comment by:   aedelman992000 at yahoo dot com
 Reported By:  alex dot scotti at tiscalinet dot it
 Status:   Closed
 Bug Type: Oracle related
 Operating System: Windows 2000
 PHP Version:  4.0.0 Release
 New Comment:

I'm running php v4.2.2 on IIS win2k as a CGI and php will hang when the
extension=php_oci8.dll is added to the ini file.  The system log shows
the following (index.php is our home page):


Event Type: Error
Event Source:   W3SVC
Event Category: None
Event ID:   16
Date:   8/21/2003
Time:   8:54:43 AM
User:   N/A

Description:
The script started from the URL '/index.php' with parameters '' has not
responded within the configured timeout period.  The HTTP server is
terminating the script. 
For additional information specific to this message please visit the
Microsoft Online Support site located at:
http://www.microsoft.com/contentredirect.asp.


Previous Comments:


[2000-08-23 09:50:41] [EMAIL PROTECTED]

No feedback from user.

--Jani



[2000-08-02 01:05:45] [EMAIL PROTECTED]

Please verify that it´s still happening using the latest version of PHP
(release 4.0.1pl2 or CVS).



[2000-06-19 19:10:32] alex dot scotti at tiscalinet dot it

php_oci8 works on IIS but non at the cmdline nor as a cgi or module
under Apache 1.3.12
In the first two cases it gives:
_oci_open_server: ORA-12154: TNS:could not resolve service name
In the last a memory acces error





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



#25132 [Opn->Fbk]: if compiled with --enable-gd-native-ttf images with ->accents show font errors

2003-08-21 Thread sniper
 ID:   25132
 Updated by:   [EMAIL PROTECTED]
 Reported By:  mail_fidel at yahoo dot com
-Status:   Open
+Status:   Feedback
 Bug Type: GD related
 Operating System: FreeBSD 4.7
 PHP Version:  4.3.3RC2
 Assigned To:  pajoye


Previous Comments:


[2003-08-21 06:33:40] [EMAIL PROTECTED]

Can you try this simple script instead?

$im = imagecreatetruecolor(200,200);
$black = imagecolorallocate($im, 255,0,0);
imagettftext($im, 20, 0, 10, 20, $black, "arial.ttf",
  "buen día");
imagepng($im, 'res.png');

On which platform do you work?

pierre



[2003-08-19 10:27:01] mail_fidel at yahoo dot com

This are the config options:

Configure Command =>  './configure' '--enable-versioning'
'--enable-memory-limit' '--with-layout=GNU' '--with-zlib-dir=/usr'
'--disable-a
ll' '--with-regex=php' '--enable-discard-path' '--enable-bcmath'
'--enable-ctype' '--with-dom=/usr/local' '--with-dom-xslt=/usr/local'
'-
-with-dom-exslt=/usr/local' '--enable-filepro' '--with-gd'
'--with-freetype-dir=/usr/local' '--with-jpeg-dir=/usr/local'
'--with-png-dir=
/usr/local' '--with-xpm-dir=/usr/local' '--with-imap=/usr/local'
'--with-imap-ssl=/usr/local' '--enable-mbstring' '--enable-mbregex'
'--w
ith-mysql=/usr/local' '--enable-overload' '--with-pcre-regex=yes'
'--enable-posix' '--with-readline' '--enable-session'
'--enable-tokeniz
er' '--enable-xml' '--with-expat-dir=/usr/local' '--with-zlib=yes'
'--prefix=/usr/local' 'i386-portbld-freebsd4.7'

This is my working built, without  --enable-gd-native-ttf 

Freetype version:

 freetype2-2.1.4_1

Example code:

  function getImage($font,$string,$point,$color,$bgcolor)
  {

$ses = session_id();
$fileName = $ses."_.png";

$measures = imagettfbbox ( $point, "0", $this->fonts_path.$font,
$string);

$width = abs($measures[4] - $measures[0])+20;
$upper = abs($measures[5])+5;
$under = abs($measures[1])+5;
$height = $upper + $under;

$image = imagecreate($width, $height);

//Allocate some colors.
$color = eregi_replace("#","",$color);
$ri = hexdec(substr($color, 0, 2));
$gi = hexdec(substr($color, 2, 2));
$bi = hexdec(substr($color, 4, 2));
  
$bgcolor = eregi_replace("#","",$bgcolor);
$rb = hexdec(substr($bgcolor, 0, 2));
$gb = hexdec(substr($bgcolor, 2, 2));
$bb = hexdec(substr($bgcolor, 4, 2));
  
$bg_color = imagecolorallocate($image,$rb ,$gb,$bb);
  
$typeface_color = imagecolorallocate($image, $ri, $gi, $bi);
  
imagecolortransparent($image,$bg_color);
  
imagefilledrectangle($image, 0, 0, $width, $height, $bg_color);
  
imagettftext($image, $point, 0, 10, $upper+2,
$typeface_color,$this->fonts_path.$font, $string);

$path = $this->temp_path;

imagepng($image,$path.$fileName);

//Finally, free up the memory allocated for the image.

imagedestroy($image);
return($fileName);
  }

when trying to solve the problem we change the image type from png to
gif to jpg to see if this was the problem. We upgrade freetype and GD.
Then I read that php 4.3.3 was using some "recomended" native gd code
and when I saw the  --enable-gd-native-ttf I decided to turned off and
the scripts start working again.

I'm sure is not a font related problem, first because it worked just
before the update, and second bacause we have a big library of ttf
fonts and we test it with all of them (since some fonts do not have
accent characters we generate an image with each one to test them)

Also, I made a mistake in the description with the example "buen día"
the output was "buen d ". A customer of us wrote this "todo por tus
células" and the output was: "todo por tus c ulas". If any one knows
spanish he/she can realize how embarrassing and funny is is (original
text "all for your cells" output text "all for you ass").



[2003-08-18 18:31:23] [EMAIL PROTECTED]

everythings works fine here. Using bundled GD library, freetype 2.1.3
and the standart arial windows font.

Send the required infos asap if you still reproduce this bug using
freetype2 (last release or 2.1.3+) and bundled GD.

pierre





[2003-08-18 16:35:32] [EMAIL PROTECTED]

Also, let us know what parameter you specified to configure. it's
possible you turned on jis-conv feature
with --enable-gd-jis-conv.




[2003-08-18 15:14:16] [EMAIL PROTECTED]

hello,

do you have the ttf font used by your script?

What do you mean by "not only the accented charanter disapeared but
also the next character"? 

"buen día" and "buen d a",only the "i" disapeared.

Which freetype version do you use?

pierre

---

#25185 [Opn->Fbk]: Unserialize can't decode string from serialize

2003-08-21 Thread sniper
 ID:   25185
 Updated by:   [EMAIL PROTECTED]
 Reported By:  cpuidle at gmx dot de
-Status:   Open
+Status:   Feedback
-Bug Type: *Programming Data Structures
+Bug Type: *General Issues
 Operating System: WinXP
 PHP Version:  4.3.3RC4
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip




Previous Comments:


[2003-08-21 05:14:42] cpuidle at gmx dot de

Description:

I'm using serialize to write array structures to the filesystem. After
reading the structure again, unserialize fails to decode and returns 0
instead. Serialized sample data is included. The problem is fixed when
the two larger data blocks are removed and replaced with samething
without linebreaks- not sure if that's part of the problem.

Reproduce code:
---
http://www.cpuidle.de/serialized.txt







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



#25187 [NEW]: Call of __get in a construtor does not work

2003-08-21 Thread thomas dot hebinck at digionline dot de
From: thomas dot hebinck at digionline dot de
Operating system: Linux
PHP version:  5.0.0b1 (beta1)
PHP Bug Type: Zend Engine 2 problem
Bug description:  Call of __get in a construtor does not work

Description:

The call of a property via __get from a constructor called the same way
does not work.

- $m is created
- $m->s creates new class s (via m::__get)
- the constructor of s calls $m->d->d_test
- m::_get (for $m->d) is NOT called:
  Notice: Undefined property

See the source - it should make it clear ;-)


Reproduce code:
---
class d {
  public function d_test() {
return true;
  }
}
class s {
  function __construct() {
global $m;
$m->d->d_test();
  }
  function s_test() {
  }
}
class m {
  function __get($property) {
switch ($property) {
  case 'd':
return new d;
break;
  case 's':
return new s;
break;
}
  }
}
$m=new m;
$m->s->s_test();

Expected result:

just nothing - there is no output to reduce the lines of source code.

Actual result:
--
Notice: Undefined property: m::$d in /www/w23_bug/test_bug.php on line 10

Fatal error: Call to a member function d_test() on a non-object in
/www/w23_bug/test_bug.php on line 10

This is the line: $m->d->d_test();



-- 
Edit bug report at http://bugs.php.net/?id=25187&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25187&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25187&r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=25187&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=25187&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25187&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=25187&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=25187&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=25187&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=25187&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=25187&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=25187&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25187&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=25187&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=25187&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=25187&r=gnused



#25132 [Opn]: if compiled with --enable-gd-native-ttf images with ->accents show font errors

2003-08-21 Thread pajoye
 ID:   25132
 Updated by:   [EMAIL PROTECTED]
 Reported By:  mail_fidel at yahoo dot com
 Status:   Open
 Bug Type: GD related
 Operating System: FreeBSD 4.7
 PHP Version:  4.3.3RC2
 Assigned To:  pajoye
 New Comment:

Can you try this simple script instead?

$im = imagecreatetruecolor(200,200);
$black = imagecolorallocate($im, 255,0,0);
imagettftext($im, 20, 0, 10, 20, $black, "arial.ttf",
  "buen día");
imagepng($im, 'res.png');

On which platform do you work?

pierre


Previous Comments:


[2003-08-19 10:27:01] mail_fidel at yahoo dot com

This are the config options:

Configure Command =>  './configure' '--enable-versioning'
'--enable-memory-limit' '--with-layout=GNU' '--with-zlib-dir=/usr'
'--disable-a
ll' '--with-regex=php' '--enable-discard-path' '--enable-bcmath'
'--enable-ctype' '--with-dom=/usr/local' '--with-dom-xslt=/usr/local'
'-
-with-dom-exslt=/usr/local' '--enable-filepro' '--with-gd'
'--with-freetype-dir=/usr/local' '--with-jpeg-dir=/usr/local'
'--with-png-dir=
/usr/local' '--with-xpm-dir=/usr/local' '--with-imap=/usr/local'
'--with-imap-ssl=/usr/local' '--enable-mbstring' '--enable-mbregex'
'--w
ith-mysql=/usr/local' '--enable-overload' '--with-pcre-regex=yes'
'--enable-posix' '--with-readline' '--enable-session'
'--enable-tokeniz
er' '--enable-xml' '--with-expat-dir=/usr/local' '--with-zlib=yes'
'--prefix=/usr/local' 'i386-portbld-freebsd4.7'

This is my working built, without  --enable-gd-native-ttf 

Freetype version:

 freetype2-2.1.4_1

Example code:

  function getImage($font,$string,$point,$color,$bgcolor)
  {

$ses = session_id();
$fileName = $ses."_.png";

$measures = imagettfbbox ( $point, "0", $this->fonts_path.$font,
$string);

$width = abs($measures[4] - $measures[0])+20;
$upper = abs($measures[5])+5;
$under = abs($measures[1])+5;
$height = $upper + $under;

$image = imagecreate($width, $height);

//Allocate some colors.
$color = eregi_replace("#","",$color);
$ri = hexdec(substr($color, 0, 2));
$gi = hexdec(substr($color, 2, 2));
$bi = hexdec(substr($color, 4, 2));
  
$bgcolor = eregi_replace("#","",$bgcolor);
$rb = hexdec(substr($bgcolor, 0, 2));
$gb = hexdec(substr($bgcolor, 2, 2));
$bb = hexdec(substr($bgcolor, 4, 2));
  
$bg_color = imagecolorallocate($image,$rb ,$gb,$bb);
  
$typeface_color = imagecolorallocate($image, $ri, $gi, $bi);
  
imagecolortransparent($image,$bg_color);
  
imagefilledrectangle($image, 0, 0, $width, $height, $bg_color);
  
imagettftext($image, $point, 0, 10, $upper+2,
$typeface_color,$this->fonts_path.$font, $string);

$path = $this->temp_path;

imagepng($image,$path.$fileName);

//Finally, free up the memory allocated for the image.

imagedestroy($image);
return($fileName);
  }

when trying to solve the problem we change the image type from png to
gif to jpg to see if this was the problem. We upgrade freetype and GD.
Then I read that php 4.3.3 was using some "recomended" native gd code
and when I saw the  --enable-gd-native-ttf I decided to turned off and
the scripts start working again.

I'm sure is not a font related problem, first because it worked just
before the update, and second bacause we have a big library of ttf
fonts and we test it with all of them (since some fonts do not have
accent characters we generate an image with each one to test them)

Also, I made a mistake in the description with the example "buen día"
the output was "buen d ". A customer of us wrote this "todo por tus
células" and the output was: "todo por tus c ulas". If any one knows
spanish he/she can realize how embarrassing and funny is is (original
text "all for your cells" output text "all for you ass").



[2003-08-18 18:31:23] [EMAIL PROTECTED]

everythings works fine here. Using bundled GD library, freetype 2.1.3
and the standart arial windows font.

Send the required infos asap if you still reproduce this bug using
freetype2 (last release or 2.1.3+) and bundled GD.

pierre





[2003-08-18 16:35:32] [EMAIL PROTECTED]

Also, let us know what parameter you specified to configure. it's
possible you turned on jis-conv feature
with --enable-gd-jis-conv.




[2003-08-18 15:14:16] [EMAIL PROTECTED]

hello,

do you have the ttf font used by your script?

What do you mean by "not only the accented charanter disapeared but
also the next character"? 

"buen día" and "buen d a",only the "i" disapeared.

Which freetype version do you use?

pierre



[2003-08-18 12:54:28] mail_fidel at yahoo dot com

At the end of the comment  I wrote: 

"If you remove the config opt

#6674 [Com]: Apache crashes as soon as I access my server running PHP 4.0.2 + mod_perl 1.24

2003-08-21 Thread peitschie at hotmail dot com
 ID:   6674
 Comment by:   peitschie at hotmail dot com
 Reported By:  ruudc at home dot nl
 Status:   Closed
 Bug Type: Apache related
 Operating System: Linux (Red Hat 6.2)
 PHP Version:  4.0.2
 New Comment:

I have been having this problem too.  I am running Apache-1.3.28,
mod_perl-1.28 and php-4.3.2 .  If i compile apache with mod_perl-1.28,
and php as a DSO and then I get the following error:
[Thu Aug 21 20:53:37 2003] [notice] child pid 20976 exit signal
Segmentation fault (11)

If i dont compile mod_perl into apache, this works fine though.


Previous Comments:


[2000-12-05 01:54:34] [EMAIL PROTECTED]

This should be fixed in CVS now. Please try latest snapshot from
http://snaps.php.net/  or wait for PHP4.0.4 to be released.

If problem still exists with snapshot or PHP 4.0.4, reopen this bug
report.

--Jani



[2000-11-01 09:45:47] [EMAIL PROTECTED]

Have you tried compiling mod_perl as DSO too?
And please try also using PHP 4.0.3pl1.

--Jani



[2000-09-12 04:23:20] ruudc at home dot nl

My Apache 1.3.12 server using mod_perl 1.24 (statically linked) and PHP
4.0.2 (dynamic module (.so)) crashes as soon as I access *any* data on
the server. "lynx localhost" reports "network errors", and then quits.
Netscape just reports that the document is empty.

If I rebuild Apache and leave out mod_perl, everything is fine. If I
leave mod_perl in but don't load the PHP module (i.e., comment out the
line in httpd.conf) everything is fine as well (except I don't have
PHP).

If I check /usr/local/apache/logs/error_log, it says: "Apache/1.3.12
(Unix) PHP/4.0.2 mod_perl/1.24 configured -- resuming normal
operations". As soon as I access the server, a new line is added:
"child pid xxx exit signal Segmentation fault (11)"

Here's the gdb backtrack output:

#0  0x4039023a in ?? () from /usr/local/apache/libexec/libphp4.so
#1  0x80976b3 in ap_invoke_handler ()
#2  0x80aacc9 in process_request_internal ()
#3  0x80ab0e8 in ap_internal_redirect ()
#4  0x8074ffd in handle_dir ()
#5  0x80976b3 in ap_invoke_handler ()
#6  0x80aacc9 in process_request_internal ()
#7  0x80aad2c in ap_process_request ()
#8  0x80a25ce in child_main ()
#9  0x80a275c in make_child ()
#10 0x80a28b9 in startup_children ()
#11 0x80a2ee6 in standalone_main ()
#12 0x80a3673 in main ()
#13 0x400d79cb in __libc_start_main (main=0x80a332c , argc=3,
argv=0xbb24, init=0x80627d0 <_init>, fini=0x814f61c <_fini>,
rtld_fini=0x4000ae60 <_dl_fini>, stack_end=0xbb1c)
at ../sysdeps/generic/libc-start.c:92



PHP build was configured with: ./configure --with-mysql=/usr/local
--with-apxs=/usr/local/apache/bin/apxs
No warnings at the end (i.e. no warning about e.g. a corrupted apxs
script)

Built with just: make , followed by: make install
The php.ini file was just copied and renamed from php.ini-dist

Apache 1.3.12 was compiled with all default modules, with mod_so and
mod_perl added. The only thing I changed in httpd.conf is the server
name (set to www)

mod_perl is version 1.24, build without any special options.

I use mysql 3.22.32. No additional options during build, just
configure, make, make install.

I'm sorry if this is not a bug but is just an error on my side.
However, I have read a bunch of faqs and have recompiled all required
components several times using several different docs as a guide, but I
still end up having the same problem. If you need any more information,
please contact me via e-mail.





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



#23041 [Com]: OCINewDescriptor()

2003-08-21 Thread nirfri at hotmail dot com
 ID:   23041
 Comment by:   nirfri at hotmail dot com
 Reported By:  don dot miguel at gmx dot ch
 Status:   No Feedback
 Bug Type: OCI8 related
 Operating System: Windows 2000
 PHP Version:  4.3.0
 New Comment:

I have the same problem.
seems like php and oracle clobs, through procedures don't interact
good. :p

Nir


Previous Comments:


[2003-04-09 06:37:41] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.





[2003-04-03 19:45:31] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip



[2003-04-03 15:29:14] don dot miguel at gmx dot ch

My Simple Test Programm is:

putenv('ORACLE_SID=SEMINAR');
putenv('ORACLE_HOME=D:\oracle\ora92');
$conn= OCIPLogon('michi','michi');
$query = "begin ctx_doc.themes('idx_text','22',:result);end;";
$curs = OCIParse($conn,$query);
$clob = OCINewDescriptor($conn,OCI_D_LOB);
OCIBindByName($curs,":result",&$clob,-1,OCI_B_CLOB);
$success = OCIExecute($curs,OCI_DEFAULT);
echo $clob->load();
$clob->free();
OCIFreeStatement($curs);

Which result is:

Warning: OCIStmtExecute: ORA-22275: invalid LOB locator specified in
c:\program files\apache group\apache\htdocs\textseminar\test.php on
line 11

Warning: OCILobGetLength: OCI_INVALID_HANDLE in c:\program files\apache
group\apache\htdocs\textseminar\test.php on line 12

==> I can't acces the CLOB wich is returned by the PL/SQL procedure:
ctx_doc.themes(index_name,textkey,restab)!





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



#25185 [NEW]: Unserialize can't decode string from serialize

2003-08-21 Thread cpuidle at gmx dot de
From: cpuidle at gmx dot de
Operating system: WinXP
PHP version:  4.3.3RC4
PHP Bug Type: *Programming Data Structures
Bug description:  Unserialize can't decode string from serialize

Description:

I'm using serialize to write array structures to the filesystem. After
reading the structure again, unserialize fails to decode and returns 0
instead. Serialized sample data is included. The problem is fixed when the
two larger data blocks are removed and replaced with samething without
linebreaks- not sure if that's part of the problem.

Reproduce code:
---
http://www.cpuidle.de/serialized.txt



-- 
Edit bug report at http://bugs.php.net/?id=25185&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25185&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25185&r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=25185&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=25185&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25185&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=25185&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=25185&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=25185&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=25185&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=25185&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=25185&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25185&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=25185&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=25185&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=25185&r=gnused



#24278 [Com]: error while trying to save LOB

2003-08-21 Thread nirfri at hotmail dot com
 ID:   24278
 Comment by:   nirfri at hotmail dot com
 Reported By:  trent at low dot ru
 Status:   Open
 Bug Type: OCI8 related
 Operating System: Linux, Win32
 PHP Version:  4CVS-2003-08-15 (stable)
 New Comment:

nope.. doesnt work,
my mistake.
Nir


Previous Comments:


[2003-08-18 10:06:43] nirfri at hotmail dot com

After Working on this annoying problem for 2 days in a row, Finally I
found the solution. Thanks to ViVisimo.com :))
look in : http://www.faqchest.com/prgm/oracle-l/ora-01/ora-0109/ora-010939/ora01091712_19451.html";>http://www.faqchest.com/prgm/oracle-l/ora-01/ora-0109/ora-010939/ora01091712_19451.html

for an example.
in short. 
You need to edit your procedure so it will createtemporarly the clob
before you can do anything with it.
DBMS_LOB.CREATETEMPORARY(myclob1,FALSE,DBMS_LOB.CALL);

HtH,
Nir Friedman



[2003-06-21 10:28:43] trent at low dot ru

Description:

I got these errors while trying to inputing string to LOB using LOB's
method save(); :

Warning: save() [function.save.html]: OCILobWrite: OCI_INVALID_HANDLE
in /www/sample.php on line 15

Warning: load() [function.load.html]: OCILobGetLength:
OCI_INVALID_HANDLE in /www/sample.php on line 19

This was tested with:
4.3.1-win32
4.3.1-linux
Latest snapshot on Linux.

Note: in oracle function there is in/out parameter used.
Additional exception from Oracle: ORA-22275: invalid LOB locator
specified.

Reproduce code:
---
//logging in
$conn = OCILogon('user', 'pass', 'srvname');
//creating new LOB locator
$clob = OCINewDescriptor($conn, OCI_D_LOB);
$sql = 'begin :ret:=test(lob_object=>:lob_object_param); end;';
//parsing query - ok
$stmt = OCIParse($conn, $sql);
//binding variables - ok
OCIBindByName($stmt, ':lob_object_param', &$clob, -1, OCI_B_CLOB);
OCIDefineByName($stmt, ':lob_object_param', $clob, OCI_B_CLOB);
OCIBindByName($stmt, ':ret', $return, 4);
OCIExecute($stmt, OCI_DEFAULT);

if($clob->save($param)) { // Warning: OCILobWrite: OCI_INVALID_HANDLE
in sample.php on line 15
OCICommit($conn); // this warning appears only when using method
save(); of LOB locator
}

print $clob->load(); // Warning: OCILobGetLength: OCI_INVALID_HANDLE
in sample.php on line 19
 // when using load method in LOB locator
$clob->free();
OCIFreeStatement($stmt);

Expected result:

I'm trying to save string as CLOB using Oracle function.
I do expect it to work fine =)
Maybe I'm doing something extremely wrong?
If so, please, correct me.

Thanx in advance.






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



#22073 [Com]: --with-mcrypt won't compile

2003-08-21 Thread bugsphp dot to dot somebody at spamgourmet dot org
 ID:   22073
 Comment by:   bugsphp dot to dot somebody at spamgourmet dot org
 Reported By:  jc at mega-bucks dot co dot jp
 Status:   Closed
 Bug Type: Compile Failure
 Operating System: Red Hat Linux 8.0
 PHP Version:  4.3.0
 New Comment:

I'm experiencing this error with PHP 4.3.3RC4, 
#define MCRYPT_API_VERSION 20021217

#define LIBMCRYPT_VERSION "2.5.7"

on 

vz6tml_s08nfs:/root/admin/src/ > uname -a
HP-UX s08nfs B.11.00 U 9000/800 155434671 unlimited-user license

I ran PHP configure with "./configure --with-mcrypt". mcrypt is
installed under /usr/local.


Previous Comments:


[2003-04-09 03:45:37] jc at mega-bucks dot co dot jp

I've been able to compile (after fighting with mcrypt for a few hours)
using:

libmcrypt-2.5.7
mcrypt-2.6.4
mhash-0.8.18
php-4.3.2RC1



[2003-04-08 14:31:58] odell at actionforresults dot com

I also STILL encounter this error using the latest snapshot and
libmcrypt 2.5.7

running freebsd 4.4



[2003-03-25 18:33:45] muti at afterglo dot ws

I am also encountering this problem using PHP 4.3.1 (also tried w/
latest CVS stable snapshot) and libmcrypt 2.5.7 on OpenBSD 3.2.



[2003-03-25 12:20:47] syn_uw at hotmail dot com

Hello,

I just wanted to let you know that this bug should maybe be re-opened
as I have exactly the same problem, so I came on this bug then
downloaded the latest STABLE snapshot (php4-STABLE-200303251630) as
recommended in this bug but the bug is still here as you can see here
the output of the make:

...
/bin/sh /opt/source/php4-STABLE-200303251630/libtool --silent
--preserve-dup-deps --mode=compile gcc  -Iext/mcrypt/
-I/opt/source/php4-STABLE-200303251630/ext/mcrypt/ -DPHP_ATOM_INC
-I/opt/source/php4-STABLE-200303251630/include
-I/opt/source/php4-STABLE-200303251630/main
-I/opt/source/php4-STABLE-200303251630
-I/opt/source/php4-STABLE-200303251630/Zend -I/opt/openssl/include
-I/usr/include/freetype2 -I/opt/source/imap-2002b/c-client
-I/opt/openldap-client/include -I/opt/mcryptlib/include
-I/opt/pdflib/include -I/opt/pgsqllib/include
-I/opt/source/php4-STABLE-200303251630/ext/xml/expat 
-I/opt/source/php4-STABLE-200303251630/TSRM  -g -O2  -prefer-pic -c
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c -o
ext/mcrypt/mcrypt.lo 
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:229: warning:
`MCRYPT_FAILED' redefined
/opt/mcryptlib/include/mcrypt.h:31: warning: this is the location of
the previous definition
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c: In function
`zm_startup_mcrypt':
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:279: warning:
passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:280: warning:
passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:281:
`MCRYPT_BLOWFISH_128' undeclared (first use in this function)
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:281: (Each
undeclared identifier is reported only once
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:281: for each
function it appears in.)
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:282:
`MCRYPT_BLOWFISH_192' undeclared (first use in this function)
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:283:
`MCRYPT_BLOWFISH_256' undeclared (first use in this function)
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:284:
`MCRYPT_BLOWFISH_448' undeclared (first use in this function)
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:285: warning:
passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:286: warning:
passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:287: warning:
passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:288: warning:
passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:289:
`MCRYPT_IDEA' undeclared (first use in this function)
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:290: warning:
passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:291: warning:
passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:292: war

#25184 [Opn->Bgs]: File upload problem

2003-08-21 Thread edink
 ID:   25184
 Updated by:   [EMAIL PROTECTED]
 Reported By:  martin dot kuria at unon dot org
-Status:   Open
+Status:   Bogus
 Bug Type: *Encryption and hash functions
 Operating System: redhat 9.0 linux
 PHP Version:  4CVS-2003-08-21 (stable)
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

.


Previous Comments:


[2003-08-21 03:59:47] martin dot kuria at unon dot org

Description:

I have a problem, I can upload my files when the file_uploads = On is
there a security threat when php runs with file_uploads = On,

How can I upload my files and images when the file_uploads = Off please
do advice thanks again 

Kind Regards
Martin W. Kuria






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



#25175 [Opn]: ob_get_length() returns incorrect value

2003-08-21 Thread phpbug at paypc dot com
 ID:   25175
 User updated by:  phpbug at paypc dot com
 Reported By:  phpbug at paypc dot com
 Status:   Open
 Bug Type: Output Control
 Operating System: Linux 2.4
 PHP Version:  4.3.2
 New Comment:

*ARGH* I hate "thinkoes" -- it should be obvious from context (and
perusing my phpconfig) that I've TURNED OFF enable_trans_sid, not
turned it on.

Upon re-reading my posting (naturally AFTER I'd hit submit), I noted
the think-o.

My apologies.  

=Apollyon=


Previous Comments:


[2003-08-21 04:31:10] phpbug at paypc dot com

OK, let me put forth some declarations so we're talking apples and
apples.

My test method:

echo -e "GET /legal/tester.php HTTP/1.1\r\nHost: 127.0.0.1\r\n" | nc
127.0.0.1 80 > dump

I wish to eliminate any possible "post-processing" or
browser-variations.

IE: "nc" is netcat, a commonly available network tool.

OK, onto the results of my tests.

I copied and pasted sniper's code *EXACTLY* as presented, with
whitespaces and line spacing as entered.  I obtained identical results
with both lynx and my netcat method, though lynx probably doesn't
support HTTP/1.1 because there was an additional header.

With Lynx Version 2.8.3rel.1:

HTTP/1.1 200 OK
Date: Thu, 21 Aug 2003 09:10:16 GMT
Server: Apache/1.3.27 Ben-SSL/1.48
Connection-Type: Keep-Alive
Content-Length: 4
Connection: close   < Additional header
Content-Type: text/html

With netcat:

HTTP/1.1 200 OK
Date: Thu, 21 Aug 2003 09:10:55 GMT
Server: Apache/1.3.27 Ben-SSL/1.48
Connection-Type: Keep-Alive
Content-Length: 4
Content-Type: text/html

In comparing the actual bytes sent over the wire against the advertised
content-length, the Content-Length header is correct.

If you wish to inspect my PHP build and setup configuration, you may do
so at: 

(I will be removing this after 24 hours.)

And yes, it's pretty loaded.  And yes, trans_sid is enabled, but in all
of my test harnesses which employ sessions, I've enabled cookies - and
they are created/used by the browsers involved.

*** AHH ***

Arigatoo gozaimashita to Moriyoshi-san for cautioning me to turn on
trans_sid, because when I disable it in my global php.ini, the
discrepancy disappears!

For my "complex" web-application which formerly reported bad sizing, I
received the following header (after turning off trans_sid):


HTTP/1.1 200 OK
Date: Thu, 21 Aug 2003 09:20:47 GMT
Server: Apache/1.3.27 Ben-SSL/1.48
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma: no-cache
Set-Cookie: PHPSESSID=a1c8bfb3f409580e57206d7c19eac473; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Content-Length: 2825
Content-Type: text/html


And doing a wc -c on the content-portion matches this size exactly
(with my netcat test).

Third-party validation via usage of
 confirms an exact
match of advertised Content-Length and what's actually received.

And lastly, and most importantly, the IE "hang" bug while accessing
this web application via an intranet is gone.

OK, fine, trans_sid broke it.  Why?  And should it have?  I'm
suspicious that the Esteemed Moriyoshi-san nailed this specific setting
in advance, as if to suspect it being a potential cause for buggage.

Inquiring minds want to know - if it's by design, please add it to the
documentation and FAQ.  I know alot of things about the ob_ functions
are unusual and cause some people hardship (of their own making).  This
one came out of left field.

=Apollyon=



[2003-08-21 00:10:00] [EMAIL PROTECTED]

> Set-Cookie: PHPSESSID=2989258979bd07405999448563ef4bfc; path=/

Perhaps you seem to have enabled session.use_trans_sid.
If so, first turn it off before trying the above script provided by
sniper.



[2003-08-20 22:54:00] [EMAIL PROTECTED]

try this script:


foo


And access it with this command:

# lynx -head lynx -dump -head http://localhost/test.php

I get this (correct) output:

HTTP/1.1 200 OK
Date: Thu, 21 Aug 2003 03:52:44 GMT
Server: Apache/1.3.27 (Unix) PHP/4.3.3RC5-dev
X-Powered-By: PHP/4.3.3RC5-dev
Connection-Type: Keep-Alive
Content-Length: 4
Connection: close
Content-Type: text/html





[2003-08-20 22:33:34] phpbug at paypc dot com

One last thing... this bug report isn't just a pedantic exercise.

When I have that defective Content-Length header in the headers, IE
5.00.3700.1000 SP4 under Windows 2000 Profession SP4 "hangs" for a few
seconds during a pageview when that header is present.  When I comment
out the Content-Length header invocation, this problem goes away.  NO
INTERVENINIG PROXIES ARE INVOLVED - as it'

#25175 [Fbk->Opn]: ob_get_length() returns incorrect value

2003-08-21 Thread phpbug at paypc dot com
 ID:   25175
 User updated by:  phpbug at paypc dot com
 Reported By:  phpbug at paypc dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Output Control
 Operating System: Linux 2.4
 PHP Version:  4.3.2
 New Comment:

OK, let me put forth some declarations so we're talking apples and
apples.

My test method:

echo -e "GET /legal/tester.php HTTP/1.1\r\nHost: 127.0.0.1\r\n" | nc
127.0.0.1 80 > dump

I wish to eliminate any possible "post-processing" or
browser-variations.

IE: "nc" is netcat, a commonly available network tool.

OK, onto the results of my tests.

I copied and pasted sniper's code *EXACTLY* as presented, with
whitespaces and line spacing as entered.  I obtained identical results
with both lynx and my netcat method, though lynx probably doesn't
support HTTP/1.1 because there was an additional header.

With Lynx Version 2.8.3rel.1:

HTTP/1.1 200 OK
Date: Thu, 21 Aug 2003 09:10:16 GMT
Server: Apache/1.3.27 Ben-SSL/1.48
Connection-Type: Keep-Alive
Content-Length: 4
Connection: close   < Additional header
Content-Type: text/html

With netcat:

HTTP/1.1 200 OK
Date: Thu, 21 Aug 2003 09:10:55 GMT
Server: Apache/1.3.27 Ben-SSL/1.48
Connection-Type: Keep-Alive
Content-Length: 4
Content-Type: text/html

In comparing the actual bytes sent over the wire against the advertised
content-length, the Content-Length header is correct.

If you wish to inspect my PHP build and setup configuration, you may do
so at: 

(I will be removing this after 24 hours.)

And yes, it's pretty loaded.  And yes, trans_sid is enabled, but in all
of my test harnesses which employ sessions, I've enabled cookies - and
they are created/used by the browsers involved.

*** AHH ***

Arigatoo gozaimashita to Moriyoshi-san for cautioning me to turn on
trans_sid, because when I disable it in my global php.ini, the
discrepancy disappears!

For my "complex" web-application which formerly reported bad sizing, I
received the following header (after turning off trans_sid):


HTTP/1.1 200 OK
Date: Thu, 21 Aug 2003 09:20:47 GMT
Server: Apache/1.3.27 Ben-SSL/1.48
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma: no-cache
Set-Cookie: PHPSESSID=a1c8bfb3f409580e57206d7c19eac473; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Content-Length: 2825
Content-Type: text/html


And doing a wc -c on the content-portion matches this size exactly
(with my netcat test).

Third-party validation via usage of
 confirms an exact
match of advertised Content-Length and what's actually received.

And lastly, and most importantly, the IE "hang" bug while accessing
this web application via an intranet is gone.

OK, fine, trans_sid broke it.  Why?  And should it have?  I'm
suspicious that the Esteemed Moriyoshi-san nailed this specific setting
in advance, as if to suspect it being a potential cause for buggage.

Inquiring minds want to know - if it's by design, please add it to the
documentation and FAQ.  I know alot of things about the ob_ functions
are unusual and cause some people hardship (of their own making).  This
one came out of left field.

=Apollyon=


Previous Comments:


[2003-08-21 00:10:00] [EMAIL PROTECTED]

> Set-Cookie: PHPSESSID=2989258979bd07405999448563ef4bfc; path=/

Perhaps you seem to have enabled session.use_trans_sid.
If so, first turn it off before trying the above script provided by
sniper.



[2003-08-20 22:54:00] [EMAIL PROTECTED]

try this script:


foo


And access it with this command:

# lynx -head lynx -dump -head http://localhost/test.php

I get this (correct) output:

HTTP/1.1 200 OK
Date: Thu, 21 Aug 2003 03:52:44 GMT
Server: Apache/1.3.27 (Unix) PHP/4.3.3RC5-dev
X-Powered-By: PHP/4.3.3RC5-dev
Connection-Type: Keep-Alive
Content-Length: 4
Connection: close
Content-Type: text/html





[2003-08-20 22:33:34] phpbug at paypc dot com

One last thing... this bug report isn't just a pedantic exercise.

When I have that defective Content-Length header in the headers, IE
5.00.3700.1000 SP4 under Windows 2000 Profession SP4 "hangs" for a few
seconds during a pageview when that header is present.  When I comment
out the Content-Length header invocation, this problem goes away.  NO
INTERVENINIG PROXIES ARE INVOLVED - as it's a local intranet without
even an intevening router in between the two machines.

I am to understand that HTTP pipelining and keep-alive support is
dramatically assisted by the presence of this header.  I would like to
make use of it.

I am going to sprinkle my preamble+postamble across a wider mixture of
PHP pages on my system (some with DB content 

#25184 [NEW]: File upload problem

2003-08-21 Thread martin dot kuria at unon dot org
From: martin dot kuria at unon dot org
Operating system: redhat 9.0 linux
PHP version:  4CVS-2003-08-21 (stable)
PHP Bug Type: *Encryption and hash functions
Bug description:  File upload problem

Description:

I have a problem, I can upload my files when the file_uploads = On is
there a security threat when php runs with file_uploads = On,

How can I upload my files and images when the file_uploads = Off please do
advice thanks again 

Kind Regards
Martin W. Kuria


-- 
Edit bug report at http://bugs.php.net/?id=25184&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25184&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25184&r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=25184&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=25184&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25184&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=25184&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=25184&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=25184&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=25184&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=25184&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=25184&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25184&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=25184&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=25184&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=25184&r=gnused



#21764 [NoF->Opn]: imap_close does not close a a stream

2003-08-21 Thread mikael dot suvi at trigger dot ee
 ID:   21764
 User updated by:  mikael dot suvi at trigger dot ee
 Reported By:  mikael dot suvi at trigger dot ee
-Status:   No Feedback
+Status:   Open
 Bug Type: IMAP related
 Operating System: Linux 2.4.18-SMP
 PHP Version:  4.2.3
 New Comment:

Using version php4-STABLE-200308180730
The script still produces the same results.


Previous Comments:


[2003-08-20 23:58:06] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.





[2003-08-15 08:20:19] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip





[2003-01-20 05:05:14] mikael dot suvi at trigger dot ee

It works if I return by refrence. 
But still, if call imap_close() I'm expecting it to close my stream.

It will make some bugs things _very hard_ to track. 
For example: if I delete a message before closing stream and  after
closing I open a new stream to the same mailserver, I still get the
same number of messages in my mailbox.

";
imap_close($arr);

$arr1 = foo();
print imap_num_msg($arr1) . " message(s) in your INBOX";

?>

Output:
7 message(s) in your INBOX
8 message(s) in your INBOX



[2003-01-20 02:58:59] [EMAIL PROTECTED]

I think this is expected though, and I dont really consider it as a
bug. Try returning the resource by reference, or not using that global.
Does it work then?



[2003-01-20 02:45:07] mikael dot suvi at trigger dot ee

Script:


will not close my connection to mailserver when calling function
imap_close. 
In mailserver log the following lines indicate that the stream is not
closed:

Jan 20 10:28:46 mail-fe73 pop3d: LOGIN, user=suurjuht,
ip=[:::xxx.xxx.xxx.xxx]
Jan 20 10:28:50 mail-fe73 pop3d: LOGOUT, user=suurjuht,
ip=[:::xxx.xxx.xxx.xxx], top=0, retr=0

Notice the 4 second delay when user is logged out. In closes the
connection when script terminates.
I guess the problem is when assigning the resource value to global
variable the resources reference count is increased by one. When
calling imap_close the reference value is checked and internal
pop3_close is called only when reference count is 1.

c-client version is 2001

I think this behaviour is not good.




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



#25172 [Fbk->Opn]: register_globals=on and $HTTP_HOST sometimes empty

2003-08-21 Thread php at lansco dot de
 ID:   25172
 User updated by:  php at lansco dot de
-Reported By:  php at lnetz dot de
+Reported By:  php at lansco dot de
-Status:   Feedback
+Status:   Open
 Bug Type: *General Issues
 Operating System: Linux
 PHP Version:  4.3.2
 New Comment:

With http://snaps.php.net/php4-STABLE-latest.tar.gz the error also
occurs :(


Previous Comments:


[2003-08-20 17:31:39] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip





[2003-08-20 05:03:43] php at lansco dot de

Description:

Sometimes $HTTP_HOST is empty while $_SERVER["HTTP_HOST"] contains the
expected value.

After a reload $HTTP_HOST mostly contains the expected value.

This error also occurs with PHP-4.3.2


Reproduce code:
---
print "1: ".$HTTP_HOST."\n";
print "2: ".$_SERVER["HTTP_HOST"]."\n";


Expected result:

1: test.com
2: test.com

Actual result:
--
1: 
2: test.com





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