#28199 [Opn->Csd]: Add way to execute pgsql queries with sql bound parameters

2005-03-21 Thread chriskl
 ID:   28199
 Updated by:   [EMAIL PROTECTED]
 Reported By:  jlawson-php at bovine dot net
-Status:   Open
+Status:   Closed
 Bug Type: Feature/Change Request
 Operating System: FreeBSD
 PHP Version:  4.3.6
-Assigned To:  
+Assigned To:  chriskl
 New Comment:

This bug has been fixed in CVS.

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/.
 
Thank you for the report, and for helping us make PHP better.

Believe it or not I just commited an identical function independently. 
>From the NEWS file:

- Added several new functions to support the PostgreSQL v3 protocol
introduced
  in PostgreSQL 7.4. (Christopher)
  . pg_transaction_status() - in-transaction status of a database
connection.
  . pg_query_params() - execution of parameterized queries.
  . pg_prepare() - prepare named queries.
  . pg_execute() - execution of named prepared queries.
  . pg_send_query_params() - async equivalent of pg_query_params().
  . pg_send_prepare() - async equivalent of pg_prepare().
  . pg_send_execute() - async equivalent of pg_execute().
  . pg_result_error_field() - highly detailed error information,
most importantly the SQLSTATE error code.



Previous Comments:


[2004-04-28 04:49:42] jlawson-php at bovine dot net

I guess bug attachments aren't supported here.  In any case, you can
download it from here:

http://bugs.distributed.net/attachment.cgi?id=301&action=view

(If you case, the enhancement/bug that I developed this patch for at
distributed.net is available at
http://bugs.distributed.net/show_bug.cgi?id=3643 )



[2004-04-28 04:45:34] jlawson-php at bovine dot net

Description:

Using bound parameters when executing SQL commands should be
encouraged, since use of it for all substitutable variables will
eliminate most SQL injection types of attacks.

Although some of the database providers in PHP already provide ways to
prepare/execute queries with substituted parameters, not all of them
do.  The "pgsql" PHP extension for PostgreSQL does not include any
existing way, so I have implemented a new pg_query_params() function
that allows you to do this in a single function call.

Note that this my new method has chosen not follow the style of
providing two separate prepare/execute functions for bound parameter
execution.  This is because with PostgreSQL it would require the user
to use a significantly different SQL query format and assign the
prepared query a session-unique name, making it much more cumbersome to
use.  ie: "PREPARE mystmt(text,int,float8) AS insert into abc
values($1,$2,$3)" instead of just "insert into abc values($1,$2,$3)"

PostgreSQL requires that parameter binding uses numbered placeholders
($1, $2, $3, etc) instead of just an unlabelled "?", that is common for
the other providers (like ODBC).

The PQexecParams() pqlib function that I depend on is unfortunately
only available in PostgreSQL 7.4, so some autoconf checks will need to
be added before integrating my new function into PHP.

Reproduce code:
---
A patch including my new extension function will be attached later. 
However sample code that uses my function might be:

$params = array("joe's place", 22, 123.4);
pg_query_params("insert into abc values($1,$2,$3)", $params);


Expected result:

n/a

Actual result:
--
n/a





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


#32392 [NEW]: apache_request_headers() does not rturn Authorization header

2005-03-21 Thread lacak at users dot sourceforge dot net
From: lacak at users dot sourceforge dot net
Operating system: Win
PHP version:  4.3.10
PHP Bug Type: Feature/Change Request
Bug description:  apache_request_headers() does not rturn Authorization header

Description:

Help PHP Developers, please, please

if PHP is running as Apache module in safe_mode=on 
in result of function apache_request_headers() is not included
Authorization header.

When I use "HTTP Digest Authorization" in my PHP script I cannot validate
clients response, because I can not obtain supplied Authorization header.

Please change behavior of apache_request_headers(), so it hides
Authorization header only if :
(safe_mode=on) && (AuthType is set to [Basic|Digest] in httpd.conf or
.htaccess)
so only if Apache performs authentication

Please rply ...
Thank you

Reproduce code:
---
Sample code :



-- 
Edit bug report at http://bugs.php.net/?id=32392&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32392&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32392&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32392&r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=32392&r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=32392&r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=32392&r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=32392&r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=32392&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32392&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=32392&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=32392&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=32392&r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=32392&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32392&r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=32392&r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=32392&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32392&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32392&r=float
No Zend Extensions:  http://bugs.php.net/fix.php?id=32392&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32392&r=mysqlcfg


#24769 [Asn->Csd]: Add prepare/execute functions to the pgsql extension

2005-03-21 Thread chriskl
 ID:  24769
 Updated by:  [EMAIL PROTECTED]
 Reported By: martin at bugs dot unl dot edu dot ar
-Status:  Assigned
+Status:  Closed
 Bug Type:Feature/Change Request
 PHP Version: Irrelevant
-Assigned To: helly
+Assigned To: chriskl
 New Comment:

This bug has been fixed in CVS.

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/.
 
Thank you for the report, and for helping us make PHP better.

- Added several new functions to support the PostgreSQL v3 protocol
introduced
  in PostgreSQL 7.4. (Christopher)
  . pg_transaction_status() - in-transaction status of a database
connection.
  . pg_query_params() - execution of parameterized queries.
  . pg_prepare() - prepare named queries.
  . pg_execute() - execution of named prepared queries.
  . pg_send_query_params() - async equivalent of pg_query_params().
  . pg_send_prepare() - async equivalent of pg_prepare().
  . pg_send_execute() - async equivalent of pg_execute().
  . pg_result_error_field() - highly detailed error information,
most importantly the SQLSTATE error code.



Previous Comments:


[2003-07-23 10:19:30] martin at bugs dot unl dot edu dot ar

Description:

I would like to see pg_prepare, pg_execute functions in the pgsql
extension of PHP (any version).
Is it posible to have these functions?






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


#23865 [Opn->Csd]: Parametric Queries, and Parametric Stored Procedures in Postgres

2005-03-21 Thread chriskl
 ID:   23865
 Updated by:   [EMAIL PROTECTED]
 Reported By:  rcphp at littondale dot dyndns dot org
-Status:   Open
+Status:   Closed
 Bug Type: Feature/Change Request
 Operating System: Linux (Debian Unstable)
 PHP Version:  4.3.1
-Assigned To:  
+Assigned To:  chriskl
 New Comment:

This bug has been fixed in CVS.

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/.
 
Thank you for the report, and for helping us make PHP better.

- Added several new functions to support the PostgreSQL v3 protocol
introduced
  in PostgreSQL 7.4. (Christopher)
  . pg_transaction_status() - in-transaction status of a database
connection.
  . pg_query_params() - execution of parameterized queries.
  . pg_prepare() - prepare named queries.
  . pg_execute() - execution of named prepared queries.
  . pg_send_query_params() - async equivalent of pg_query_params().
  . pg_send_prepare() - async equivalent of pg_prepare().
  . pg_send_execute() - async equivalent of pg_execute().
  . pg_result_error_field() - highly detailed error information,
most importantly the SQLSTATE error code.



Previous Comments:


[2003-05-28 16:06:11] rcphp at littondale dot dyndns dot org

Feature reqeuest for parametric queries, SQL bind variables, 
parameterised procedure calls, or whatever people call them 
;-) 
 
For example 
 
 pg_query("UPDATE Wibble SET foo=? WHERE wombat=?", 
$newFoo, $wombat); 
 
 pg_exec("spAddComment(?,?,?)",$user,$title,$content); 
 
A notable feature of these is no need to build dynamic SQL, 
and remember to addslashes(). Security becomes easier, and 
if prepared statements can be reused, speed can become 
better. 
 
 $stmt = pg_prepare("INSERT INTO Events (date,msg) 
VALUES (?,?)"); 
 
 pg_execute($stmt,date(),"Wotzit Flobbled"); 
 ... 
 pg_execute($stmt,date(),"Slime Thoroughly Slaughtered"); 
 
(Does PHP have varargs by the way?) 
 
Some finer details to sort, due to the way different database 
backends work. Postgres has stored procedures, but it looks 
like you SELECT from them, and they behave like functions in 
other databases. 
 
Otherwise though, a good language. 
 
 - Richard 
 




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


#32390 [Fbk->Opn]: PHP can't compile with imap that enabled Kerberos by heimdal

2005-03-21 Thread ptiggerdine at fastmail dot com dot au
 ID:   32390
 User updated by:  ptiggerdine at fastmail dot com dot au
 Reported By:  ptiggerdine at fastmail dot com dot au
-Status:   Feedback
+Status:   Open
 Bug Type: IMAP related
 Operating System: Gentoo linux
 PHP Version:  4.3.10
 New Comment:

And what is 'heimdal' ? Does the c-client library support   
that..?
Honestly, why did you post if you didn't know what the bug is about.

while the CVS snapshot "may" work ( i doubt it)my production
environment requires that this be pushed into an official release. If
you are unable to do this, could you escalate this bug so that I can
have contact with  someone who can make that call.

I have a ./configure diff that patches the search of the libraries to
the right name, but I doubt that it's going to be that easy for
kerberos is play ball. This is also no ideal either cos it will break
on MIT libraries


Previous Comments:


[2005-03-21 08:23:52] [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

And what is 'heimdal' ? Does the c-client library support that..?






[2005-03-21 08:08:40] ptiggerdine at fastmail dot com dot au

I don't see how this is going to help considering it's a library check
issue, but here it is:

/configure --prefix=/usr --host=i686-pc-linux-gnu
--mandir=/usr/share/man \
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib \
--libdir=/usr/lib --disable-cgi --with-ttf --with-freetype-dir=/usr/lib
--enable-gd-native-ttf --enable-cli \
--with-ndbm=/usr --with-db4=/usr --with-mcrypt=/usr --with-mhash=/usr
--without-interbase --without-ming \
--without-swf --without-sybase --without-gdbm --without-fdftk
--without-java --without-mcal --with-unixODBC=/usr \
--without-pgsql --with-snmp=/usr --enable-ucd-snmp-hack --without-gmp
--without-mssql --with-pdflib=/usr --with-gd \
--disable-gd-native-ttf --with-png=/usr --with-png-dir=/usr
--with-jpeg=/usr --with-jpeg-dir=/usr --enable-exif \
--with-tiff=/usr --with-tiff-dir=/usr --with-mysql=/usr
--with-mysql-sock=/var/run/mysqld/mysqld.sock  \
--without-t1lib --with-gettext --without-qtdom --with-pspell=/usr
--with-openssl=/usr --with-imap=/usr \
--with-ldap=/usr --with-dom=/usr --with-dom-xslt=/usr
--with-dom-exslt=/usr --with-kerberos=/usr --with-pam \
--disable-memory-limit --enable-ipv6 --without-yaz --disable-debug
--without-curl --enable-dbx --with-imap-ssl \
--with-zlib=/usr --with-zlib-dir=/usr --with-sablot=/usr --enable-xslt
--with-xslt-sablot --with-xmlrpc --enable-wddx \
--with-xml --enable-mbstring=all --enable-mbregex --with-bz2=/usr
--with-crack=/usr --with-cdb --enable-pcntl \
--enable-bcmath --enable-calendar --enable-dbase --enable-filepro
--enable-ftp \
--with-mime-magic=/usr/share/misc/file/magic.mime --enable-sockets
--enable-sysvsem --enable-sysvshm --enable-sysvmsg \
--with-iconv --enable-shmop --enable-dio --enable-yp
--with-readline=/usr --with-ncurses=/usr \
--enable-inline-optimization --enable-track-vars --enable-trans-sid
--enable-versioning \
--with-config-file-path=/etc/php/cli-php4



[2005-03-21 07:50:29] [EMAIL PROTECTED]

What is the configure line that you used? (No, gentoo emerge lines are
not useful)



[2005-03-21 06:09:30] ptiggerdine at fastmail dot com dot au

Description:

This is exactly the same problem as:

http://bugs.php.net/bug.php?id=30640

And I challange anyone who says that this is bogus.  If you have a look
in the ./configure script, it only looks for MIT libraries NEVER looks
for heimdal libraries at all. Heimdal has different library names. 

Reproduce code:
---
for gentoo. export USE="kerberos imap ssl php" emerge heimdal && emerge
php

Expected result:

to compile

Actual result:
--
Actual result:
--
checking for IMAP support... yes
checking for pam_start in -lpam... (cached) yes
checking for crypt in -lcrypt... (cached) yes
checking whether SSL libraries are needed for c-client... /usr/lib
checking whether IMAP works... no
configure: error: build test failed. Please check the config.log for
details.

config.log:
configure:41193: checking whether SSL libraries are needed for
c-client
configure:41323: gcc -o conftest -g -O2   -Wl,-rpath,/var/tmp/imap/lib
-L/var/tmp/imap/lib conftest.c -lc-client  -lssl -lcrypto  -lcrypt
-lpam
-lresolv -lm -ldl -lnsl  -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
1>&5
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/b
in/ld: cannot find -lgssapi_krb5
collect2: ld returned 1 exit status
configure: failed program was:
#line 41298 "con

#32390 [Opn->Bgs]: PHP can't compile with imap that enabled Kerberos by heimdal

2005-03-21 Thread sniper
 ID:   32390
 Updated by:   [EMAIL PROTECTED]
 Reported By:  ptiggerdine at fastmail dot com dot au
-Status:   Open
+Status:   Bogus
 Bug Type: IMAP related
 Operating System: Gentoo linux
 PHP Version:  4.3.10
 New Comment:

I'm the one who this was "escaleted" to..so thanks anyway but   we
don't support any other kerberos library implementation than those that
are supported by the c-client library.



Previous Comments:


[2005-03-21 10:07:10] ptiggerdine at fastmail dot com dot au

And what is 'heimdal' ? Does the c-client library support   
that..?
Honestly, why did you post if you didn't know what the bug is about.

while the CVS snapshot "may" work ( i doubt it)my production
environment requires that this be pushed into an official release. If
you are unable to do this, could you escalate this bug so that I can
have contact with  someone who can make that call.

I have a ./configure diff that patches the search of the libraries to
the right name, but I doubt that it's going to be that easy for
kerberos is play ball. This is also no ideal either cos it will break
on MIT libraries



[2005-03-21 08:23:52] [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

And what is 'heimdal' ? Does the c-client library support that..?






[2005-03-21 08:08:40] ptiggerdine at fastmail dot com dot au

I don't see how this is going to help considering it's a library check
issue, but here it is:

/configure --prefix=/usr --host=i686-pc-linux-gnu
--mandir=/usr/share/man \
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib \
--libdir=/usr/lib --disable-cgi --with-ttf --with-freetype-dir=/usr/lib
--enable-gd-native-ttf --enable-cli \
--with-ndbm=/usr --with-db4=/usr --with-mcrypt=/usr --with-mhash=/usr
--without-interbase --without-ming \
--without-swf --without-sybase --without-gdbm --without-fdftk
--without-java --without-mcal --with-unixODBC=/usr \
--without-pgsql --with-snmp=/usr --enable-ucd-snmp-hack --without-gmp
--without-mssql --with-pdflib=/usr --with-gd \
--disable-gd-native-ttf --with-png=/usr --with-png-dir=/usr
--with-jpeg=/usr --with-jpeg-dir=/usr --enable-exif \
--with-tiff=/usr --with-tiff-dir=/usr --with-mysql=/usr
--with-mysql-sock=/var/run/mysqld/mysqld.sock  \
--without-t1lib --with-gettext --without-qtdom --with-pspell=/usr
--with-openssl=/usr --with-imap=/usr \
--with-ldap=/usr --with-dom=/usr --with-dom-xslt=/usr
--with-dom-exslt=/usr --with-kerberos=/usr --with-pam \
--disable-memory-limit --enable-ipv6 --without-yaz --disable-debug
--without-curl --enable-dbx --with-imap-ssl \
--with-zlib=/usr --with-zlib-dir=/usr --with-sablot=/usr --enable-xslt
--with-xslt-sablot --with-xmlrpc --enable-wddx \
--with-xml --enable-mbstring=all --enable-mbregex --with-bz2=/usr
--with-crack=/usr --with-cdb --enable-pcntl \
--enable-bcmath --enable-calendar --enable-dbase --enable-filepro
--enable-ftp \
--with-mime-magic=/usr/share/misc/file/magic.mime --enable-sockets
--enable-sysvsem --enable-sysvshm --enable-sysvmsg \
--with-iconv --enable-shmop --enable-dio --enable-yp
--with-readline=/usr --with-ncurses=/usr \
--enable-inline-optimization --enable-track-vars --enable-trans-sid
--enable-versioning \
--with-config-file-path=/etc/php/cli-php4



[2005-03-21 07:50:29] [EMAIL PROTECTED]

What is the configure line that you used? (No, gentoo emerge lines are
not useful)



[2005-03-21 06:09:30] ptiggerdine at fastmail dot com dot au

Description:

This is exactly the same problem as:

http://bugs.php.net/bug.php?id=30640

And I challange anyone who says that this is bogus.  If you have a look
in the ./configure script, it only looks for MIT libraries NEVER looks
for heimdal libraries at all. Heimdal has different library names. 

Reproduce code:
---
for gentoo. export USE="kerberos imap ssl php" emerge heimdal && emerge
php

Expected result:

to compile

Actual result:
--
Actual result:
--
checking for IMAP support... yes
checking for pam_start in -lpam... (cached) yes
checking for crypt in -lcrypt... (cached) yes
checking whether SSL libraries are needed for c-client... /usr/lib
checking whether IMAP works... no
configure: error: build test failed. Please check the config.log for
details.

config.log:
configure:41193: checking whether SSL libraries are needed for
c-client
configure:41323: gcc -o conftest -g -O2   -Wl,-rpath,/var/tmp/imap/lib
-L/var/tmp/imap/lib conftest.c -lc-client 

#32392 [Opn->Bgs]: apache_request_headers() does not rturn Authorization header

2005-03-21 Thread rasmus
 ID:   32392
 Updated by:   [EMAIL PROTECTED]
 Reported By:  lacak at users dot sourceforge dot net
-Status:   Open
+Status:   Bogus
 Bug Type: Feature/Change Request
 Operating System: Win
 PHP Version:  4.3.10
 New Comment:

That would allow you to steal passwords from other scripts on the same
shared server which is exactly what safemode is designed to counteract.
 So no, this won't change.


Previous Comments:


[2005-03-21 09:23:48] lacak at users dot sourceforge dot net

Description:

Help PHP Developers, please, please

if PHP is running as Apache module in safe_mode=on 
in result of function apache_request_headers() is not included
Authorization header.

When I use "HTTP Digest Authorization" in my PHP script I cannot
validate clients response, because I can not obtain supplied
Authorization header.

Please change behavior of apache_request_headers(), so it hides
Authorization header only if :
(safe_mode=on) && (AuthType is set to [Basic|Digest] in httpd.conf or
.htaccess)
so only if Apache performs authentication

Please rply ...
Thank you

Reproduce code:
---
Sample code :







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


#32390 [Bgs->Opn]: PHP can't compile with imap that enabled Kerberos by heimdal

2005-03-21 Thread ptiggerdine at fastmail dot com dot au
 ID:   32390
 User updated by:  ptiggerdine at fastmail dot com dot au
 Reported By:  ptiggerdine at fastmail dot com dot au
-Status:   Bogus
+Status:   Open
 Bug Type: IMAP related
 Operating System: Gentoo linux
 PHP Version:  4.3.10
 New Comment:

Can i ask why "you only support MIT only"?  Supporting heimdal would be
beneficial to php there are more project moving form MIT to heimdal.


Previous Comments:


[2005-03-21 10:22:40] [EMAIL PROTECTED]

I'm the one who this was "escaleted" to..so thanks anyway but   we
don't support any other kerberos library implementation than those that
are supported by the c-client library.




[2005-03-21 10:07:10] ptiggerdine at fastmail dot com dot au

And what is 'heimdal' ? Does the c-client library support   
that..?
Honestly, why did you post if you didn't know what the bug is about.

while the CVS snapshot "may" work ( i doubt it)my production
environment requires that this be pushed into an official release. If
you are unable to do this, could you escalate this bug so that I can
have contact with  someone who can make that call.

I have a ./configure diff that patches the search of the libraries to
the right name, but I doubt that it's going to be that easy for
kerberos is play ball. This is also no ideal either cos it will break
on MIT libraries



[2005-03-21 08:23:52] [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

And what is 'heimdal' ? Does the c-client library support that..?






[2005-03-21 08:08:40] ptiggerdine at fastmail dot com dot au

I don't see how this is going to help considering it's a library check
issue, but here it is:

/configure --prefix=/usr --host=i686-pc-linux-gnu
--mandir=/usr/share/man \
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib \
--libdir=/usr/lib --disable-cgi --with-ttf --with-freetype-dir=/usr/lib
--enable-gd-native-ttf --enable-cli \
--with-ndbm=/usr --with-db4=/usr --with-mcrypt=/usr --with-mhash=/usr
--without-interbase --without-ming \
--without-swf --without-sybase --without-gdbm --without-fdftk
--without-java --without-mcal --with-unixODBC=/usr \
--without-pgsql --with-snmp=/usr --enable-ucd-snmp-hack --without-gmp
--without-mssql --with-pdflib=/usr --with-gd \
--disable-gd-native-ttf --with-png=/usr --with-png-dir=/usr
--with-jpeg=/usr --with-jpeg-dir=/usr --enable-exif \
--with-tiff=/usr --with-tiff-dir=/usr --with-mysql=/usr
--with-mysql-sock=/var/run/mysqld/mysqld.sock  \
--without-t1lib --with-gettext --without-qtdom --with-pspell=/usr
--with-openssl=/usr --with-imap=/usr \
--with-ldap=/usr --with-dom=/usr --with-dom-xslt=/usr
--with-dom-exslt=/usr --with-kerberos=/usr --with-pam \
--disable-memory-limit --enable-ipv6 --without-yaz --disable-debug
--without-curl --enable-dbx --with-imap-ssl \
--with-zlib=/usr --with-zlib-dir=/usr --with-sablot=/usr --enable-xslt
--with-xslt-sablot --with-xmlrpc --enable-wddx \
--with-xml --enable-mbstring=all --enable-mbregex --with-bz2=/usr
--with-crack=/usr --with-cdb --enable-pcntl \
--enable-bcmath --enable-calendar --enable-dbase --enable-filepro
--enable-ftp \
--with-mime-magic=/usr/share/misc/file/magic.mime --enable-sockets
--enable-sysvsem --enable-sysvshm --enable-sysvmsg \
--with-iconv --enable-shmop --enable-dio --enable-yp
--with-readline=/usr --with-ncurses=/usr \
--enable-inline-optimization --enable-track-vars --enable-trans-sid
--enable-versioning \
--with-config-file-path=/etc/php/cli-php4



[2005-03-21 07:50:29] [EMAIL PROTECTED]

What is the configure line that you used? (No, gentoo emerge lines are
not useful)



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/32390

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


#31725 [Opn->Fbk]: sqlite/zend engine 2 weird problems

2005-03-21 Thread sniper
 ID:   31725
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: Zend Engine 2 problem
 Operating System: *
 PHP Version:  5CVS-2005-01-27
 New Comment:

Please try using this CVS snapshot:

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




Previous Comments:


[2005-01-31 01:31:13] [EMAIL PROTECTED]

$sql = 'CREATE TABLE changelog (
  name VARCHAR(200) PRIMARY KEY,';
foreach($tags as $tag) $sql .= " $tag TINYINT,";
$idx->query($sql);

You're going to end up with a query like

CREATE TABLE changelog (name VARCHAR(200) PRIMARY KEY, tag1 TINYINT,
tag2 TINYINT

Just pointing this out, might want to ) the end before querying? I just
saw this in passing.



[2005-01-27 17:00:56] [EMAIL PROTECTED]

Description:

I've found a couple of sqlite weird problems (php 5.1).
verified with both linux and windows.

Reproduce code:
---


prints a warning (and array empty). removing the $error declaration
outputs a notice, but works.


---
#2
query($sql);

Actual result:
--
1st example:
Warning: array_map(): The first argument, '~„©o', should be either NULL
or a valid callback in /transfer/test.php on line 6

(notice the garbidge in the name of the function)



2nd example:

Program received signal SIGSEGV, Segmentation fault.
0x403bb848 in pthread_mutex_lock () from /lib/libpthread.so.0
(gdb) bt
#0  0x403bb848 in pthread_mutex_lock () from /lib/libpthread.so.0
#1  0x40462925 in free () from /lib/libc.so.6
#2  0x081d4222 in shutdown_memory_manager (silent=0, full_shutdown=0)
at /cvs/php-src/Zend/zend_alloc.c:582
#3  0x081b3a01 in php_request_shutdown (dummy=0x0)
at /cvs/php-src/main/main.c:1225
#4  0x0824b1af in main (argc=2, argv=0xb9b4)
at /cvs/php-src/sapi/cli/php_cli.c:1047





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


#31984 [Opn->Fbk]: sessions fail randomly, causes a segmentation fault in apache

2005-03-21 Thread sniper
 ID:   31984
 Updated by:   [EMAIL PROTECTED]
 Reported By:  root at mediamonks dot net
-Status:   Open
+Status:   Feedback
 Bug Type: Session related
 Operating System: FreeBSD 4.11-STABLE
 PHP Version:  5CVS-2005-02-25
 New Comment:

Try without --enable-versioning


Previous Comments:


[2005-02-28 20:35:35] root at mediamonks dot net

'./configure' '--enable-versioning' '--enable-memory-limit'
'--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php'
'--disable-all' '--enable-libxml' '--with-libxml-dir=/usr/local'
'--enable-session' '--enable-spl' '--with-regex=php' '--disable-cli'
'--with-apxs2=/usr/local/sbin/apxs' '--disable-ipv6'
'--prefix=/usr/local' 

and

'./configure' '--enable-versioning' '--enable-memory-limit'
'--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php'
'--disable-all' '--enable-libxml' '--with-libxml-dir=/usr/local'
'--with-mm' '--enable-session' '--enable-spl' '--with-regex=php'
'--disable-cli' '--with-apxs2=/usr/local/sbin/apxs' '--disable-ipv6'
'--prefix=/usr/local'



[2005-02-28 20:25:14] [EMAIL PROTECTED]

What was the configure line you used to configure PHP?




[2005-02-26 22:47:55] root at mediamonks dot net

Backtrace:

#0  ps_mm_destroy (data=0x82df880) at
/home/terrence/php/php5-STABLE-200502211130/ext/session/mod_mm.c:243
#1  0x284d0a1d in zm_shutdown_ps_mm (type=1, module_number=3)
at
/home/terrence/php/php5-STABLE-200502211130/ext/session/mod_mm.c:295
#2  0x284cf895 in zm_shutdown_session (type=1, module_number=3)
at
/home/terrence/php/php5-STABLE-200502211130/ext/session/session.c:1824
#3  0x2856acfa in module_destructor (module=0x82f0c80) at
/home/terrence/php/php5-STABLE-200502211130/Zend/zend_API.c:1500
#4  0x2856d0bd in zend_hash_apply_deleter (ht=0x285e8360, p=0x82efd00)
at
/home/terrence/php/php5-STABLE-200502211130/Zend/zend_hash.c:574
#5  0x2856d1ee in zend_hash_graceful_reverse_destroy (ht=0x285e8360)
at
/home/terrence/php/php5-STABLE-200502211130/Zend/zend_hash.c:640
#6  0x28566f34 in zend_shutdown () at
/home/terrence/php/php5-STABLE-200502211130/Zend/zend.c:699
#7  0x28538b54 in php_module_shutdown () at
/home/terrence/php/php5-STABLE-200502211130/main/main.c:1516
#8  0x28538b23 in php_module_shutdown_wrapper
(sapi_globals=0x285e3140)
at /home/terrence/php/php5-STABLE-200502211130/main/main.c:1491
#9  0x285a3d85 in php_apache_server_shutdown (tmp=0x0)
at
/home/terrence/php/php5-STABLE-200502211130/sapi/apache2handler/sapi_apache2.c:331
#10 0x2831d8f8 in run_cleanups () from
/usr/local/lib/apache2/libapr-0.so.9
#11 0x2831cd11 in apr_pool_clear () from
/usr/local/lib/apache2/libapr-0.so.9
#12 0x806890e in main ()
#13 0x805ce2e in _start ()



[2005-02-18 13:09:46] root at mediamonks dot net

I thought I'd give the mm handler a try as a workaround, but the same
problem is present there:

PHP Fatal error:  Unknown: Cannot find save handler \x02 in Unknown on
line 0
[Fri Feb 18 13:08:04 2005] [notice] child pid 73434 exit signal
Segmentation fault (11)



[2005-02-16 16:02:35] root at mediamonks dot net

That CVS build has screwed even more on my system...

Log file records:

httpd in free(): warning: page is already free
httpd in free(): warning: page is already free
httpd in free(): warning: page is already free
httpd in free(): warning: page is already free
Allowed memory size of 16777216 bytes exhausted (tried to allocate 1
bytes)
httpd in free(): warning: page is already free
httpd in free(): warning: page is already free
httpd in free(): warning: page is already free
httpd in free(): warning: page is already free
httpd in free(): warning: page is already free
httpd in free(): warning: page is already free
httpd in free(): warning: page is already free
httpd in free(): warning: page is already free
httpd in free(): warning: page is already free
httpd in free(): warning: page is already free
[Wed Feb 16 16:00:54 2005] [notice] child pid 21258 exit signal
Segmentation fault (11)

This repeats thousands of times, apache children segfault after each 10
or so, original save handler error remains.



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/31984

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


#32392 [Bgs]: apache_request_headers() does not rturn Authorization header

2005-03-21 Thread lacak at users dot sourceforge dot net
 ID:   32392
 User updated by:  lacak at users dot sourceforge dot net
 Reported By:  lacak at users dot sourceforge dot net
 Status:   Bogus
 Bug Type: Feature/Change Request
 Operating System: Win
 PHP Version:  4.3.10
 New Comment:

Thank you rasmus, for reply :
1. So how can I use "HTTP Digest Authorization" in PHP script ? (is it
inpossible ? really is no solution, todasy ? or in the future ?)
2. Why is it security problem ? When safe_mode=on, then uid is added to
realm, so other scripts on same shared (ISP) server cannot simulate the
same realm and so steal passwords ?
And at other : when I use "HTTP Basic Authorization", then
$_SERVER["PHP_AUTH_USER"] and $_SERVER["PHP_AUTH_PW"] are set (so may
be steal) when safe_mode=on, but header Authorization is not set.


Previous Comments:


[2005-03-21 10:31:21] [EMAIL PROTECTED]

That would allow you to steal passwords from other scripts on the same
shared server which is exactly what safemode is designed to counteract.
 So no, this won't change.



[2005-03-21 09:23:48] lacak at users dot sourceforge dot net

Description:

Help PHP Developers, please, please

if PHP is running as Apache module in safe_mode=on 
in result of function apache_request_headers() is not included
Authorization header.

When I use "HTTP Digest Authorization" in my PHP script I cannot
validate clients response, because I can not obtain supplied
Authorization header.

Please change behavior of apache_request_headers(), so it hides
Authorization header only if :
(safe_mode=on) && (AuthType is set to [Basic|Digest] in httpd.conf or
.htaccess)
so only if Apache performs authentication

Please rply ...
Thank you

Reproduce code:
---
Sample code :







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


#31984 [Fbk->Opn]: sessions fail randomly, causes a segmentation fault in apache

2005-03-21 Thread root at mediamonks dot net
 ID:   31984
 User updated by:  root at mediamonks dot net
 Reported By:  root at mediamonks dot net
-Status:   Feedback
+Status:   Open
 Bug Type: Session related
 Operating System: FreeBSD 4.11-STABLE
-PHP Version:  5CVS-2005-02-25
+PHP Version:  5CVS-2005-03-21
 New Comment:

does not change anything


Previous Comments:


[2005-03-21 11:13:32] [EMAIL PROTECTED]

Try without --enable-versioning



[2005-02-28 20:35:35] root at mediamonks dot net

'./configure' '--enable-versioning' '--enable-memory-limit'
'--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php'
'--disable-all' '--enable-libxml' '--with-libxml-dir=/usr/local'
'--enable-session' '--enable-spl' '--with-regex=php' '--disable-cli'
'--with-apxs2=/usr/local/sbin/apxs' '--disable-ipv6'
'--prefix=/usr/local' 

and

'./configure' '--enable-versioning' '--enable-memory-limit'
'--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php'
'--disable-all' '--enable-libxml' '--with-libxml-dir=/usr/local'
'--with-mm' '--enable-session' '--enable-spl' '--with-regex=php'
'--disable-cli' '--with-apxs2=/usr/local/sbin/apxs' '--disable-ipv6'
'--prefix=/usr/local'



[2005-02-28 20:25:14] [EMAIL PROTECTED]

What was the configure line you used to configure PHP?




[2005-02-26 22:47:55] root at mediamonks dot net

Backtrace:

#0  ps_mm_destroy (data=0x82df880) at
/home/terrence/php/php5-STABLE-200502211130/ext/session/mod_mm.c:243
#1  0x284d0a1d in zm_shutdown_ps_mm (type=1, module_number=3)
at
/home/terrence/php/php5-STABLE-200502211130/ext/session/mod_mm.c:295
#2  0x284cf895 in zm_shutdown_session (type=1, module_number=3)
at
/home/terrence/php/php5-STABLE-200502211130/ext/session/session.c:1824
#3  0x2856acfa in module_destructor (module=0x82f0c80) at
/home/terrence/php/php5-STABLE-200502211130/Zend/zend_API.c:1500
#4  0x2856d0bd in zend_hash_apply_deleter (ht=0x285e8360, p=0x82efd00)
at
/home/terrence/php/php5-STABLE-200502211130/Zend/zend_hash.c:574
#5  0x2856d1ee in zend_hash_graceful_reverse_destroy (ht=0x285e8360)
at
/home/terrence/php/php5-STABLE-200502211130/Zend/zend_hash.c:640
#6  0x28566f34 in zend_shutdown () at
/home/terrence/php/php5-STABLE-200502211130/Zend/zend.c:699
#7  0x28538b54 in php_module_shutdown () at
/home/terrence/php/php5-STABLE-200502211130/main/main.c:1516
#8  0x28538b23 in php_module_shutdown_wrapper
(sapi_globals=0x285e3140)
at /home/terrence/php/php5-STABLE-200502211130/main/main.c:1491
#9  0x285a3d85 in php_apache_server_shutdown (tmp=0x0)
at
/home/terrence/php/php5-STABLE-200502211130/sapi/apache2handler/sapi_apache2.c:331
#10 0x2831d8f8 in run_cleanups () from
/usr/local/lib/apache2/libapr-0.so.9
#11 0x2831cd11 in apr_pool_clear () from
/usr/local/lib/apache2/libapr-0.so.9
#12 0x806890e in main ()
#13 0x805ce2e in _start ()



[2005-02-18 13:09:46] root at mediamonks dot net

I thought I'd give the mm handler a try as a workaround, but the same
problem is present there:

PHP Fatal error:  Unknown: Cannot find save handler \x02 in Unknown on
line 0
[Fri Feb 18 13:08:04 2005] [notice] child pid 73434 exit signal
Segmentation fault (11)



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/31984

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


#32337 [Opn]: Per Directory Values registry not working

2005-03-21 Thread vrana
 ID:   32337
 Updated by:   [EMAIL PROTECTED]
 Reported By:  jsonger at maintree dot com
 Status:   Open
 Bug Type: Feature/Change Request
 Operating System: Windows 2000
 PHP Version:  5.0.3
 New Comment:

Documented for now in XML sources.


Previous Comments:


[2005-03-19 21:54:07] baricak at post dot cz

[EMAIL PROTECTED], i am sorry, what is your point? I was setting up
different servers last week, with Apache and .htaccess there was not
any problem. Just because these scripts have to be at the IIS, I do not
come around it. I thought the sense of Per Directory Values Windows
Registry paradigm was reading out the registry at the starting point of
IIS, and setting local values for some directories, for specific
configuration settings.
According to http://de3.php.net/manual/en/ini.php#ini.list
register_globals is of type PHP_INI_PERDIR, which actually means you
can set it locally. Moreover, with Apache1.3 and Apache2.0 this
actually WORKS! So what's wrong with the Windows implementation?
I would not turn my scripts to register_globals on, but just as jsonger
I have some external scripts running on this server. Thats why I want to
have php.ini set to register_globals off and turn it on just for the
foreign scripts...



[2005-03-18 20:10:13] jsonger at maintree dot com

It read point needs to be adjusted then so it can work for
register_globals.  I don't want to for register_globals on for everyone
just because a couple of my customers have older scripts that like it.

I also don't understand why this is such a problem since the Apache
module can do it with a .htaccess file.  In a practicle since, I don't
see a difference between the .htaccess file in apache and the registry
in IIS.



[2005-03-18 19:16:00] [EMAIL PROTECTED]

This registry thing does NOT work for any option.
It's just before script execution so it techinally can't work with e.g.
register_globals.




[2005-03-17 10:38:53] baricak at post dot cz

And Last But not Least: When I try to 

echo ini_get();

,the value is correct as set in the registry, but the system does not
work like it says- phpinfo() returns the old php.ini value and the
system reacts as only the old php.ini was set.



[2005-03-17 10:30:23] baricak at post dot cz

Hello, I have the same problems. 
I just installed php5.0-win32-200503170130.zip on IIS5 with Windows
2000 as ISAPI module and Per Directory Values does not work with some
of the settings.
For instance, display_errors directive works fine, but register_globals
DOES NOT.
The another problem is, phpinfo() output is not correct. When I set
display_errors in the registry to a different value as in php.ini, in
the output of phpinfo() the value of "local" column stays  untouched,
even though the system reactions are like the new value was set.
The Version 5.0.3 has the same problems.



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/32337

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


#32392 [Bgs->Opn]: apache_request_headers() does not rturn Authorization header

2005-03-21 Thread lacak at users dot sourceforge dot net
 ID:   32392
 User updated by:  lacak at users dot sourceforge dot net
 Reported By:  lacak at users dot sourceforge dot net
-Status:   Bogus
+Status:   Open
 Bug Type: Feature/Change Request
 Operating System: Win
 PHP Version:  4.3.10
 New Comment:

Please reply ...


Previous Comments:


[2005-03-21 11:58:27] lacak at users dot sourceforge dot net

Thank you rasmus, for reply :
1. So how can I use "HTTP Digest Authorization" in PHP script ? (is it
inpossible ? really is no solution, todasy ? or in the future ?)
2. Why is it security problem ? When safe_mode=on, then uid is added to
realm, so other scripts on same shared (ISP) server cannot simulate the
same realm and so steal passwords ?
And at other : when I use "HTTP Basic Authorization", then
$_SERVER["PHP_AUTH_USER"] and $_SERVER["PHP_AUTH_PW"] are set (so may
be steal) when safe_mode=on, but header Authorization is not set.



[2005-03-21 10:31:21] [EMAIL PROTECTED]

That would allow you to steal passwords from other scripts on the same
shared server which is exactly what safemode is designed to counteract.
 So no, this won't change.



[2005-03-21 09:23:48] lacak at users dot sourceforge dot net

Description:

Help PHP Developers, please, please

if PHP is running as Apache module in safe_mode=on 
in result of function apache_request_headers() is not included
Authorization header.

When I use "HTTP Digest Authorization" in my PHP script I cannot
validate clients response, because I can not obtain supplied
Authorization header.

Please change behavior of apache_request_headers(), so it hides
Authorization header only if :
(safe_mode=on) && (AuthType is set to [Basic|Digest] in httpd.conf or
.htaccess)
so only if Apache performs authentication

Please rply ...
Thank you

Reproduce code:
---
Sample code :







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



#32331 [Opn]: Why static properties cannot be redeclared?

2005-03-21 Thread rael at grad dot icmc dot usp dot br
 ID:   32331
 User updated by:  rael at grad dot icmc dot usp dot br
-Summary:  Why static properties cannot be overwrite?
 Reported By:  rael at grad dot icmc dot usp dot br
 Status:   Open
 Bug Type: Feature/Change Request
 Operating System: Windows XP Professional SP2
 PHP Version:  5.0.1
 New Comment:

I was said "override", but the correct is "redeclare" in case of static
properties.


Previous Comments:


[2005-03-16 11:58:13] rael at grad dot icmc dot usp dot br

Description:

I'm a longer time java programmer, and I'm trying PHP5. But, for my
surprise, I saw that static properties cannot be overwrite. Why? This
make not sense!

Reproduce code:
---
class a { 
protected static $v = "aa";
public static function foo(){
  echo self::$v;
}
} 

class b extends a{
protected static $v = "bb";
public static function foo(){
  echo self::$v;
}
}


Expected result:

No runtime error

Actual result:
--
Cannot redeclare property static protected a::$v in
class b





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


#32331 [Opn->Fbk]: Why static properties cannot be redeclared?

2005-03-21 Thread tony2001
 ID:   32331
 Updated by:   [EMAIL PROTECTED]
 Reported By:  rael at grad dot icmc dot usp dot br
-Status:   Open
+Status:   Feedback
 Bug Type: Feature/Change Request
 Operating System: Windows XP Professional SP2
 PHP Version:  5.0.1
 New Comment:

Please try using this CVS snapshot:

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




Previous Comments:


[2005-03-21 12:38:45] rael at grad dot icmc dot usp dot br

I was said "override", but the correct is "redeclare" in case of static
properties.



[2005-03-16 11:58:13] rael at grad dot icmc dot usp dot br

Description:

I'm a longer time java programmer, and I'm trying PHP5. But, for my
surprise, I saw that static properties cannot be overwrite. Why? This
make not sense!

Reproduce code:
---
class a { 
protected static $v = "aa";
public static function foo(){
  echo self::$v;
}
} 

class b extends a{
protected static $v = "bb";
public static function foo(){
  echo self::$v;
}
}


Expected result:

No runtime error

Actual result:
--
Cannot redeclare property static protected a::$v in
class b





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


#32394 [NEW]: offsetUnset() segfaults in a foreach

2005-03-21 Thread guth at fiifo dot u-psud dot fr
From: guth at fiifo dot u-psud dot fr
Operating system: Linux
PHP version:  5.0.3
PHP Bug Type: SPL related
Bug description:  offsetUnset() segfaults in a foreach

Description:

Look at the following code :)

Reproduce code:
---
append(new stdClass);

foreach($object as $key => $value) {
$object->offsetUnset($key);
}

exit((string)mt_rand(0, 1000));

?>

Expected result:

No crash.

Actual result:
--
#0  0x404195df in zend_hash_get_current_key_type_ex (ht=0x817a6ec,
pos=0x815556c)
at /usr/src/php5-STABLE-200502101130/Zend/zend_hash.c:1083
#1  0x402ffe1b in spl_array_next (intern=0x81c) at
/usr/src/php5-STABLE-200502101130/ext/spl/spl_array.c:498
#2  0x403001b7 in spl_array_it_move_forward (iter=0x817f6ec) at
/usr/src/php5-STABLE-200502101130/ext/spl/spl_array.c:586
#3  0x4043d6e0 in zend_fe_fetch_handler (execute_data=0xbfffcc10,
opline=0x817ef44, op_array=0x817a57c)
at /usr/src/php5-STABLE-200502101130/Zend/zend_execute.c:3847
#4  0x40435156 in execute (op_array=0x817a57c) at
/usr/src/php5-STABLE-200502101130/Zend/zend_execute.c:1406
#5  0x404113c0 in zend_execute_scripts (type=8, retval=0x0, file_count=3)
at /usr/src/php5-STABLE-200502101130/Zend/zend.c:1068
#6  0x403d0c7e in php_execute_script (primary_file=0xbfffef80) at
/usr/src/php5-STABLE-200502101130/main/main.c:1630
#7  0x4043ec7e in apache_php_module_main (r=0x817100c,
display_source_mode=0)
at /usr/src/php5-STABLE-200502101130/sapi/apache/sapi_apache.c:54
#8  0x4043f901 in send_php (r=0x817100c, display_source_mode=0,
filename=0x8171b14 "/anticorps/www/test.php")
at /usr/src/php5-STABLE-200502101130/sapi/apache/mod_php5.c:622
#9  0x4043f968 in send_parsed_php (r=0x817100c) at
/usr/src/php5-STABLE-200502101130/sapi/apache/mod_php5.c:637
#10 0x08071e88 in ap_invoke_handler ()
#11 0x08086f10 in process_request_internal ()
#12 0x08086f6f in ap_process_request ()
#13 0x0807df91 in child_main ()
#14 0x0807e19c in make_child ()
#15 0x0807e300 in startup_children ()
#16 0x0807e9bf in standalone_main ()
#17 0x0807f1d7 in main ()

-- 
Edit bug report at http://bugs.php.net/?id=32394&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32394&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32394&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32394&r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=32394&r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=32394&r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=32394&r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=32394&r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=32394&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32394&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=32394&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=32394&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=32394&r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=32394&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32394&r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=32394&r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=32394&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32394&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32394&r=float
No Zend Extensions:  http://bugs.php.net/fix.php?id=32394&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32394&r=mysqlcfg


#28605 [Fbk->Opn]: bug21523.phpt test never end

2005-03-21 Thread tbp at poly dot polytechnique dot fr
 ID:   28605
 User updated by:  tbp at poly dot polytechnique dot fr
 Reported By:  tbp at poly dot polytechnique dot fr
-Status:   Feedback
+Status:   Open
 Bug Type: Math related
 Operating System: Compaq Tru64 UNIX v5.1
 PHP Version:  4CVS-2005-02-10
 New Comment:

No hangup anymore, but coredump instead.

[EMAIL PROTECTED]:/Admin/SRC/Apache/php4-STABLE-200503211130]# sapi/cli/php
ext/standard/tests/math/bug21523.phpt
--TEST--
Bug #21523 number_format tries to allocate negative amount of memory
--FILE--
Floating point exception (core dumped)


FAIL Bug #21523 number_format tries to allocate negative amount of
memory [ext/standard/tests/math/bug21523.phpt]


Previous Comments:


[2005-03-20 17:49:13] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz

The build is fixed now.




[2005-03-16 14:08:22] tbp at poly dot polytechnique dot fr

Sorry, but again build problem:

[EMAIL PROTECTED]:/Admin/SRC/Apache/php4-STABLE-200503161130]# make
gcc  -Iext/ctype/
-I/Admin/SRC/Apache/php4-STABLE-200503161130/ext/ctype/ -DPHP_ATOM_INC
-I/Admin/SRC/Apache/php4-STABLE-200503161130/include
-I/Admin/SRC/Apache/php4-STABLE-200503161130/main
-I/Admin/SRC/Apache/php4-STABLE-200503161130
-I/Admin/SRC/Apache/php4-STABLE-200503161130/Zend
-I/Admin/SRC/Apache/php4-STABLE-200503161130/ext/xml/expat-g -O2 
-c /Admin/SRC/Apache/php4-STABLE-200503161130/ext/ctype/ctype.c -o
ext/ctype/ctype.o  && echo > ext/ctype/ctype.lo
In file included from
/Admin/SRC/Apache/php4-STABLE-200503161130/Zend/zend_alloc.h:26,
 from
/Admin/SRC/Apache/php4-STABLE-200503161130/Zend/zend.h:223,
 from
/Admin/SRC/Apache/php4-STABLE-200503161130/main/php.h:34,
 from
/Admin/SRC/Apache/php4-STABLE-200503161130/ext/ctype/ctype.c:23:
/Admin/SRC/Apache/php4-STABLE-200503161130/TSRM/TSRM.h:18:26:
tsrm_config.h: No such file or directory
In file included from
/Admin/SRC/Apache/php4-STABLE-200503161130/ext/ctype/ctype.c:23:
/Admin/SRC/Apache/php4-STABLE-200503161130/main/php.h:393:30:
tsrm_virtual_cwd.h: No such file or directory

So, just for testing purpose I have done:
CFLAGS=-I/Admin/SRC/Apache/php4-STABLE-200503161130/TSRM ./configure

and:

[EMAIL PROTECTED]:/Admin/SRC/Apache/php4-STABLE-200503161130]# sapi/cli/php
ext/standard/tests/math/bug21523.phpt
--TEST--
Bug #21523 number_format tries to allocate negative amount of memory
--FILE--
Floating point exception (core dumped)



make: *** [ext/ctype/ctype.lo] Error 1



[2005-03-16 07:44:16] [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





[2005-02-11 01:34:24] tbp at poly dot polytechnique dot fr

Compilation ok, but initial problem persists. New trace:

[EMAIL PROTECTED]:/Admin/SRC/Apache/php4-STABLE-200502102330]# sapi/cli/php
ext/standard/tests/math/bug21523.phpt
--TEST--
Bug #21523 number_format tries to allocate negative amount of memory
--FILE--

[EMAIL PROTECTED]:/Admin/SRC/Apache/php4-STABLE-200502102330]# gdb
sapi/cli/php
GNU gdb 6.1
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "alphaev68-dec-osf5.1"...
(gdb) run ext/standard/tests/math/bug21523.phpt
Starting program:
/Admin/SRC/Apache/php4-STABLE-200502102330/sapi/cli/php
ext/standard/tests/math/bug21523.phpt
--TEST--
Bug #21523 number_format tries to allocate negative amount of memory
--FILE--
warning: (Internal error: pc 0x12010e784 in read in psymtab, but not in
symtab.)


Program received signal SIGINT, Interrupt.
0x00012010e784 in ap_php_cvt (arg=0, ndigits=78, decpt=0x11fff9ac8,
sign=0x0, eflag=0, buf=0x11fff9ad0 '0' )
at /Admin/SRC/Apache/php4-STABLE-200502102330/main/snprintf.c:317
317 fj = modf(fi / 10, &fi);
(gdb) bt
#0  0x00012010e784 in ap_php_cvt (arg=0, ndigits=78,
decpt=0x11fff9ac8, sign=0x0, eflag=0, buf=0x11fff9ad0 '0' )
at /Admin/SRC/Apache/php4-STABLE-200502102330/main/snprintf.c:317
warning: (Internal error: pc 0x12010e628 in read in psymtab, but not in
symtab.)

#1  0x00012010e628 in ap_php_conv_fp (format=102 'f', num=0,
add_dp=NO, precision=2768, is_negative=0x11fff9dc0, buf=0x11fff9bb1 "",
len=0x11fff9ba8)
at /Admin/SRC/Apache/php4-STABLE-200502102330/main/snprintf.c:176
warning: (Internal error: pc 0x1201104fc in

#32394 [Opn->Ver]: offsetUnset() segfaults in a foreach

2005-03-21 Thread tony2001
 ID:   32394
 Updated by:   [EMAIL PROTECTED]
 Reported By:  guth at fiifo dot u-psud dot fr
-Status:   Open
+Status:   Verified
 Bug Type: SPL related
 Operating System: Linux
-PHP Version:  5.0.3
+PHP Version:  5CVS-2005-03-21
 New Comment:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1079353056 (LWP 31492)]
0x0829c122 in zend_hash_get_current_key_type_ex (ht=0x85c6234,
pos=0x85deaac) at /usr/src/dev/php-src/Zend/zend_hash.c:1083
1083if (p->nKeyLength) {
(gdb) bt
#0  0x0829c122 in zend_hash_get_current_key_type_ex (ht=0x85c6234,
pos=0x85deaac) at /usr/src/dev/php-src/Zend/zend_hash.c:1083
#1  0x081b9320 in spl_array_next (intern=0x85dea9c) at
/usr/src/dev/php-src/ext/spl/spl_array.c:583
#2  0x081b96bc in spl_array_it_move_forward (iter=0x85dd124) at
/usr/src/dev/php-src/ext/spl/spl_array.c:671
#3  0x082ca35c in ZEND_FE_FETCH_SPEC_VAR_HANDLER
(execute_data=0xbfffcca0) at zend_vm_execute.h:7616
#4  0x082b7f3a in execute (op_array=0x85d8d9c) at zend_vm_execute.h:78
#5  0x08293a90 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /usr/src/dev/php-src/Zend/zend.c:1059
#6  0x08251382 in php_execute_script (primary_file=0xb0d0) at
/usr/src/dev/php-src/main/main.c:1640
#7  0x083072cc in main (argc=2, argv=0xb1a4) at
/usr/src/dev/php-src/sapi/cli/php_cli.c:951
(gdb) p p
$1 = (Bucket *) 0x5a5a5a5a
(gdb) f 1
#1  0x081b9320 in spl_array_next (intern=0x85dea9c) at
/usr/src/dev/php-src/ext/spl/spl_array.c:583
583 return
zend_hash_has_more_elements_ex(aht, &intern->pos);
(gdb) p intern->pos
$3 = 0x5a5a5a5a
(gdb) f 2
#2  0x081b96bc in spl_array_it_move_forward (iter=0x85dd124) at
/usr/src/dev/php-src/ext/spl/spl_array.c:671
671 spl_array_next(object TSRMLS_CC);
(gdb) p *object
$5 = {std = {ce = 0x8561758, properties = 0x85d8e5c, in_get = 0, in_set
= 0}, array = 0x85c61f4, pos = 0x5a5a5a5a, is_ref = 0, fptr_offset_get =
0x0, fptr_offset_set = 0x0,
  fptr_offset_has = 0x0, fptr_offset_del = 0x0}
  


Previous Comments:


[2005-03-21 13:29:39] guth at fiifo dot u-psud dot fr

Description:

Look at the following code :)

Reproduce code:
---
append(new stdClass);

foreach($object as $key => $value) {
$object->offsetUnset($key);
}

exit((string)mt_rand(0, 1000));

?>

Expected result:

No crash.

Actual result:
--
#0  0x404195df in zend_hash_get_current_key_type_ex (ht=0x817a6ec,
pos=0x815556c)
at /usr/src/php5-STABLE-200502101130/Zend/zend_hash.c:1083
#1  0x402ffe1b in spl_array_next (intern=0x81c) at
/usr/src/php5-STABLE-200502101130/ext/spl/spl_array.c:498
#2  0x403001b7 in spl_array_it_move_forward (iter=0x817f6ec) at
/usr/src/php5-STABLE-200502101130/ext/spl/spl_array.c:586
#3  0x4043d6e0 in zend_fe_fetch_handler (execute_data=0xbfffcc10,
opline=0x817ef44, op_array=0x817a57c)
at /usr/src/php5-STABLE-200502101130/Zend/zend_execute.c:3847
#4  0x40435156 in execute (op_array=0x817a57c) at
/usr/src/php5-STABLE-200502101130/Zend/zend_execute.c:1406
#5  0x404113c0 in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
at /usr/src/php5-STABLE-200502101130/Zend/zend.c:1068
#6  0x403d0c7e in php_execute_script (primary_file=0xbfffef80) at
/usr/src/php5-STABLE-200502101130/main/main.c:1630
#7  0x4043ec7e in apache_php_module_main (r=0x817100c,
display_source_mode=0)
at /usr/src/php5-STABLE-200502101130/sapi/apache/sapi_apache.c:54
#8  0x4043f901 in send_php (r=0x817100c, display_source_mode=0,
filename=0x8171b14 "/anticorps/www/test.php")
at /usr/src/php5-STABLE-200502101130/sapi/apache/mod_php5.c:622
#9  0x4043f968 in send_parsed_php (r=0x817100c) at
/usr/src/php5-STABLE-200502101130/sapi/apache/mod_php5.c:637
#10 0x08071e88 in ap_invoke_handler ()
#11 0x08086f10 in process_request_internal ()
#12 0x08086f6f in ap_process_request ()
#13 0x0807df91 in child_main ()
#14 0x0807e19c in make_child ()
#15 0x0807e300 in startup_children ()
#16 0x0807e9bf in standalone_main ()
#17 0x0807f1d7 in main ()





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


#27798 [Fbk->Csd]: private / protected variables not exposed by get_object_vars() inside class

2005-03-21 Thread ricardo at ish dot com dot br
 ID:   27798
 User updated by:  ricardo at ish dot com dot br
 Reported By:  ricardo at ish dot com dot br
-Status:   Feedback
+Status:   Closed
 Bug Type: Zend Engine 2 problem
 Operating System: *
 PHP Version:  5.0.2
 Assigned To:  helly
 New Comment:

YEEAAA IT IS WORKING NOW :)

Thanks!


Previous Comments:


[2005-03-18 19:44:41] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2005-03-16 14:08:15] ricardo at ish dot com dot br

So, any news from developers?



[2004-10-04 07:46:56] eros at speedy dot com dot ar

Yes, it should definetely work inside the public method.



[2004-08-13 15:17:26] ricardo at ish dot com dot br

I'll try to show a new example, to make my point:

Source:
===
var1 = 'A';
$this->var2 = 'B';
  }

  public function dumpVars() {
print_r(get_object_vars($this));
  }

}
?>

\n";
$myFoo->dumpVars();
?>

==





Behavior:
=

My VARS:
Array
(
[var1] => A
)

==

Array
(
[var1] => A
)

Expected Behavior (IMHO):
=

My VARS:
Array
(
[var1] => A
[var2] => B
)

==

Array
(
[var1] => A
)

Explanation:


Note the difference between calling get_object_vars($this) inside a
public method, inside the class (where all variables should be seen),
and calling in the outside - get_object_vars($myFoo).



[2004-07-20 13:54:12] ricardo at ish dot com dot br

I've tried and isn't working yet (and I also get this error message -
phpinfo() is ok and show PHP 5.0.1-dev):

PHP has encountered an Access Violation at 00B4737A
My VARS:
Array
(
[var1] => A
)

HTTP/1.1 500 Server Error Server: Microsoft-IIS/5.1 Date: Tue, 20 Jul
2004 11:51:51 GMT Content-Type: text/html Content-Length: 44
-2147417842 (0x8001010e)



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/27798

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


#32392 [Opn->Bgs]: apache_request_headers() does not rturn Authorization header

2005-03-21 Thread rasmus
 ID:   32392
 Updated by:   [EMAIL PROTECTED]
 Reported By:  lacak at users dot sourceforge dot net
-Status:   Open
+Status:   Bogus
 Bug Type: Feature/Change Request
 Operating System: Win
 PHP Version:  4.3.10
 New Comment:

1. In safemode, you can't.  
2. They can't simulate the realm in safemode, but they don't need to. 
Adding the user id to the realm means you can't pretend to be them, but
if the user has already visited and logged into that other site and then
visit your site, without even sending an Authenticate header their
browser will send you their Authorization header for the other site
(assuming same domain like example.com/~bob vs. example.com/~joe) and
if you could grab all the request headers you will now have stolen the
user's username and password.
3. This is not a support forum


Previous Comments:


[2005-03-21 12:38:37] lacak at users dot sourceforge dot net

Please reply ...



[2005-03-21 11:58:27] lacak at users dot sourceforge dot net

Thank you rasmus, for reply :
1. So how can I use "HTTP Digest Authorization" in PHP script ? (is it
inpossible ? really is no solution, todasy ? or in the future ?)
2. Why is it security problem ? When safe_mode=on, then uid is added to
realm, so other scripts on same shared (ISP) server cannot simulate the
same realm and so steal passwords ?
And at other : when I use "HTTP Basic Authorization", then
$_SERVER["PHP_AUTH_USER"] and $_SERVER["PHP_AUTH_PW"] are set (so may
be steal) when safe_mode=on, but header Authorization is not set.



[2005-03-21 10:31:21] [EMAIL PROTECTED]

That would allow you to steal passwords from other scripts on the same
shared server which is exactly what safemode is designed to counteract.
 So no, this won't change.



[2005-03-21 09:23:48] lacak at users dot sourceforge dot net

Description:

Help PHP Developers, please, please

if PHP is running as Apache module in safe_mode=on 
in result of function apache_request_headers() is not included
Authorization header.

When I use "HTTP Digest Authorization" in my PHP script I cannot
validate clients response, because I can not obtain supplied
Authorization header.

Please change behavior of apache_request_headers(), so it hides
Authorization header only if :
(safe_mode=on) && (AuthType is set to [Basic|Digest] in httpd.conf or
.htaccess)
so only if Apache performs authentication

Please rply ...
Thank you

Reproduce code:
---
Sample code :







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


#29442 [Fbk->Opn]: php -i gives an error

2005-03-21 Thread nlopess
 ID:   29442
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: windows
-PHP Version:  5CVS-2005-03-07
+PHP Version:  5CVS-2005-03-21
 New Comment:

Sorry, but yes.


Previous Comments:


[2005-03-21 11:07:27] [EMAIL PROTECTED]

Simple way to test without php.ini: php -n -i 
Does that crash?




[2005-03-12 13:05:01] [EMAIL PROTECTED]

I've already tried to disable all the extensions in the php.ini, but I
still get the same errors.



[2005-03-09 22:01:32] [EMAIL PROTECTED]

How can we reproduce this? Is it some module causing this that you load
in the php.ini of yours? Or something else?
Not enough info -> bogus soon.. 




[2005-03-07 20:59:06] [EMAIL PROTECTED]

Yep, I can still reproduce it, both '-i' and '--version'.



[2005-03-06 20:53:46] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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

..and again, update the Version field accordingly. (something like
5CVS-2005-03-06 should appear in it if you can verify this bug..)




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/29442

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


#31725 [Fbk]: sqlite/zend engine 2 weird problems

2005-03-21 Thread nlopess
 ID:   31725
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Feedback
 Bug Type: Zend Engine 2 problem
 Operating System: *
-PHP Version:  5CVS-2005-01-27
+PHP Version:  5CVS-2005-03-21
 New Comment:

Yep, both my examples still fail. And sqlite is leaking somewhere.


Previous Comments:


[2005-03-21 11:12:26] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2005-01-31 01:31:13] [EMAIL PROTECTED]

$sql = 'CREATE TABLE changelog (
  name VARCHAR(200) PRIMARY KEY,';
foreach($tags as $tag) $sql .= " $tag TINYINT,";
$idx->query($sql);

You're going to end up with a query like

CREATE TABLE changelog (name VARCHAR(200) PRIMARY KEY, tag1 TINYINT,
tag2 TINYINT

Just pointing this out, might want to ) the end before querying? I just
saw this in passing.



[2005-01-27 17:00:56] [EMAIL PROTECTED]

Description:

I've found a couple of sqlite weird problems (php 5.1).
verified with both linux and windows.

Reproduce code:
---


prints a warning (and array empty). removing the $error declaration
outputs a notice, but works.


---
#2
query($sql);

Actual result:
--
1st example:
Warning: array_map(): The first argument, '~„©o', should be either NULL
or a valid callback in /transfer/test.php on line 6

(notice the garbidge in the name of the function)



2nd example:

Program received signal SIGSEGV, Segmentation fault.
0x403bb848 in pthread_mutex_lock () from /lib/libpthread.so.0
(gdb) bt
#0  0x403bb848 in pthread_mutex_lock () from /lib/libpthread.so.0
#1  0x40462925 in free () from /lib/libc.so.6
#2  0x081d4222 in shutdown_memory_manager (silent=0, full_shutdown=0)
at /cvs/php-src/Zend/zend_alloc.c:582
#3  0x081b3a01 in php_request_shutdown (dummy=0x0)
at /cvs/php-src/main/main.c:1225
#4  0x0824b1af in main (argc=2, argv=0xb9b4)
at /cvs/php-src/sapi/cli/php_cli.c:1047





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


#31725 [Fbk->Opn]: sqlite/zend engine 2 weird problems

2005-03-21 Thread nlopess
 ID:   31725
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   Open
 Bug Type: Zend Engine 2 problem
 Operating System: *
 PHP Version:  5CVS-2005-03-21


Previous Comments:


[2005-03-21 16:20:28] [EMAIL PROTECTED]

Yep, both my examples still fail. And sqlite is leaking somewhere.



[2005-03-21 11:12:26] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2005-01-31 01:31:13] [EMAIL PROTECTED]

$sql = 'CREATE TABLE changelog (
  name VARCHAR(200) PRIMARY KEY,';
foreach($tags as $tag) $sql .= " $tag TINYINT,";
$idx->query($sql);

You're going to end up with a query like

CREATE TABLE changelog (name VARCHAR(200) PRIMARY KEY, tag1 TINYINT,
tag2 TINYINT

Just pointing this out, might want to ) the end before querying? I just
saw this in passing.



[2005-01-27 17:00:56] [EMAIL PROTECTED]

Description:

I've found a couple of sqlite weird problems (php 5.1).
verified with both linux and windows.

Reproduce code:
---


prints a warning (and array empty). removing the $error declaration
outputs a notice, but works.


---
#2
query($sql);

Actual result:
--
1st example:
Warning: array_map(): The first argument, '~„©o', should be either NULL
or a valid callback in /transfer/test.php on line 6

(notice the garbidge in the name of the function)



2nd example:

Program received signal SIGSEGV, Segmentation fault.
0x403bb848 in pthread_mutex_lock () from /lib/libpthread.so.0
(gdb) bt
#0  0x403bb848 in pthread_mutex_lock () from /lib/libpthread.so.0
#1  0x40462925 in free () from /lib/libc.so.6
#2  0x081d4222 in shutdown_memory_manager (silent=0, full_shutdown=0)
at /cvs/php-src/Zend/zend_alloc.c:582
#3  0x081b3a01 in php_request_shutdown (dummy=0x0)
at /cvs/php-src/main/main.c:1225
#4  0x0824b1af in main (argc=2, argv=0xb9b4)
at /cvs/php-src/sapi/cli/php_cli.c:1047





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


#30593 [Com]: --with-ingres option generates broken Makefile

2005-03-21 Thread grant dot croker at ca dot com
 ID:   30593
 Comment by:   grant dot croker at ca dot com
 Reported By:  sean dot lincolne at gmail dot com
 Status:   Open
 Bug Type: Ingres II related
 Operating System: *
 PHP Version:  4CVS, 5CVS (2005-02-17)
 New Comment:

This is happening because config.m4 uses the static ingres libraries
libingres.a and libiiapi.a. Changing this file to use the correct
shared libs allows the build to complete without hacking any Makefile
also has the added feature of enabling the build of an ingres shared
module. See below for a cvs diff. This diff applies to all versions of
PHP from 4.3 upwards.

Index: ext/ingres_ii/config.m4
===
RCS file: /repository/php-src/ext/ingres_ii/config.m4,v
retrieving revision 1.8.4.1
diff -u -b -w -B -d -r1.8.4.1 config.m4
--- ext/ingres_ii/config.m4 23 Jan 2003 05:33:17 - 
1.8.4.1
+++ ext/ingres_ii/config.m4 21 Mar 2005 15:35:13 -
@@ -29,7 +29,9 @@
 AC_MSG_ERROR(Cannot find libiiapi.a under $II_DIR/lib)
   fi

-  PHP_ADD_LIBRARY_WITH_PATH(iiapi, $II_LIB_DIR, II_SHARED_LIBADD)
-  PHP_ADD_LIBRARY_WITH_PATH(ingres, $II_LIB_DIR, II_SHARED_LIBADD)
+  PHP_ADD_LIBRARY_WITH_PATH(iiapi.1, $II_LIB_DIR, II_SHARED_LIBADD)
+  PHP_ADD_LIBRARY_WITH_PATH(q.1, $II_LIB_DIR, II_SHARED_LIBADD)
+  PHP_ADD_LIBRARY_WITH_PATH(frame.1, $II_LIB_DIR, II_SHARED_LIBADD)
+  PHP_ADD_LIBRARY_WITH_PATH(compat.1, $II_LIB_DIR, II_SHARED_LIBADD)
   PHP_ADD_INCLUDE($II_INC_DIR)
 fi


Previous Comments:


[2004-11-24 07:36:25] sean dot lincolne at gmail dot com

I was trying everything to see if I could force 'configure' to
recognise that it needs the 'libpthread' library.

Either way it has no impact on the problem, nor does it impact on the
use of libpthread.  Currently the only workaround is to manually edit
'Makefile' after 'configure' but before 'make'.  Not particularly
friendly or elegant.



[2004-11-24 01:35:15] [EMAIL PROTECTED]

WHY do you want to use the --with-tsrm-phtreads option?
You're compiling an apache 1.x module which isn't multithreaded..




[2004-10-31 04:44:59] sean dot lincolne at gmail dot com

Configuration command as follows:

./configure --with-apxs --without-mysql \
--with-ingres --with-ldap \
--without-pear --disable-shared \
--enable-static --with-tsrm-pthreads

Make fails with the following error:

/opt/ingres/lib/libingres.a(louniq.o): In function `LOuniq':
louniq.o(.text+0x16d): the use of `mktemp' is dangerous, better use
`mkstemp'
/opt/ingres/lib/libingres.a(mepages.o): In function `IIMEget_pages':
mepages.o(.text+0x1c5): undefined reference to `pthread_mutex_trylock'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
[EMAIL PROTECTED] php-4.3.9]#


The 'config.log' file can be found at

http://www.batute.com/config.log

Thanks,

Sean



[2004-10-28 08:11:15] [EMAIL PROTECTED]

Please provide your 1. configure line, 2. the error itself, 3. a link
to the output of config.log (do not paste it here!)



[2004-10-28 02:07:21] sean dot lincolne at gmail dot com

Description:

Configuring a PHP build with the '--with-ingres' option results in an
incomplete Makefile.  When you attempt to make PHP the make fails.

If you manually edit the Makefile after configure, and add '-lpthread'
to the 'EXTRA_LIBS' line the make will complete successfully.

Specifiying the '--with-tsrm-pthreads' as a configure option does not
fix this.

Can someone examine the Ingres build code in PHP and ensure that when
the '--with-ingres' option is specified the 'libpthread' library is
included in the library list ?






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


#32299 [Fbk->Opn]: The errors aren't shown at all

2005-03-21 Thread poison at telenet dot be
 ID:   32299
 User updated by:  poison at telenet dot be
 Reported By:  poison at telenet dot be
-Status:   Feedback
+Status:   Open
 Bug Type: Output Control
 Operating System: Linux
 PHP Version:  4.3.10
 New Comment:

What other info should I provide?

I've recompiled apache and php and I still get no errors :s
What should I do?


Previous Comments:


[2005-03-15 11:08:44] [EMAIL PROTECTED]

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


Works fine here...



[2005-03-15 10:44:00] poison at telenet dot be

I asked for support in the #PHP channel on FreeNode and they suggested
to submit a bug. We've tried everything and I get no error messages.



[2005-03-14 21:17:22] [EMAIL PROTECTED]

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. 

Even if you think it is not a bug, we often know better than you,
please consult the support channels first before even considering
to reopen this report.

Thank you for your interest in PHP.





[2005-03-14 12:42:33] poison at telenet dot be

Description:

When I run a script as  I don't see anything. Error
outputting doesn't work at all.
Although everything in my php.ini is set as appropriate and I
recompiled the whole php with new downloaded tarballs and with
./configure --with-apxs2=/usr/local/apache2/bin/apxs --disable-all
I replaced my php.ini by the php.ini-dist and still got the problem.

The strange thing is that it works in the CLI but not with apache


Output from browser:





Output from CLI:
[EMAIL PROTECTED]:~/ToolServer$ php -f error.php

Fatal error: Call to undefined function:  error() in
/home/toolserver/ToolServer/error.php on line 3


Reproduce code:
---
./configure --with-apxs2=/usr/local/apache2/bin/apxs --disable-all
make
make install
cp php.ini-dist /usr/local/lib/php.ini
/usr/local/apache2/bin/apachectl restart

Expected result:

Fatal error: Call to undefined function:  error() in
/home/toolserver/ToolServer/error.php on line 3


Actual result:
--









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


#32361 [Fbk->Opn]: connection oci_connect stay persist after process the php

2005-03-21 Thread diego dot veiga at embraer dot com dot br
 ID:   32361
 User updated by:  diego dot veiga at embraer dot com dot br
 Reported By:  diego dot veiga at embraer dot com dot br
-Status:   Feedback
+Status:   Open
 Bug Type: Oracle related
 Operating System: fedora 3
 PHP Version:  5.0.2
 New Comment:

I upgraded the php to 5.0.3 and reproduce the same error, it seems the
oci_connect is working like the oci_pconnect. 

Does anybody has an idea?


Previous Comments:


[2005-03-18 19:12:59] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2005-03-18 13:22:14] diego dot veiga at embraer dot com dot br

Description:

machine 1:
Linux redhat 7.2 2.4.18 #4 Fri Apr 12 08:10:27 BRT 2002 i686 unknown
configure with php4.3.4 and apache 1.3.29
./configure  --with-dbtcp=/usr/src/dbtcp-0.1.17
--with-oci8=/ora8i/u01/app/oracle/product/8.1.6 --enable-track-vars
--enable-sigchild --enable-trans-sid
--with-apache=/usr/src/apache_1.3.29 --with-unixODBC --enable-xslt
--with-xslt-sa
blot=/usr/local --with-expat-dir=/usr/local --with-gd
--enable-gd-native-ttf --with-jpeg-dir=/usr --with-zlib-dir=/usr
 --with-zlib=/usr/ --with-freetype-dir=/usr/local/include/freetype2
--with-png-dir=/usr --with-openssl=/usr/local/ssl
--with-config-file-path=/etc/php --sysconfdir=/etc/php
--with-pdflib=/usr/local --without-mysql --with-tiff-dir=/usr -
-with-java=/usr/java/j2sdk1.4.0_03 --enable-shared --with-layout=GNU

machine 2:
Linux fedora3 2.6.9-i386-1 #3 SMP Thu Feb 17 16:06:06 BRST 2005 i686
i686 i386 GNU/Linux
configure with php5.0.2 and apache 1.3.33
./configure --with-dbtcp=/usr/src/dbtcp-0.1.18a
--with-oci8=/ora8i/u01/app/oracle/product/8.1.6 --enable-sigchild
--enable-trans-sid --enable-track-vars
--with-apxs=/usr/local/apache/sbin/apxs --with-unixODBC --enable-xsl
--with-exp
at-dir=/usr/local/ --with-gd --enable-gd-native-ttf
--with-jpeg-dir=/usr --with-zlib-dir=/usr --with-zlib=/usr --with-
freetype-dir=/usr/ --with-png-dir=/usr --with-openssl=/usr
--with-config-file-path=/etc/php --sysconfdir=/etc/php --wi
th-pdflib=/usr/local --without-mysql --with-tiff-dir=/usr
--with-java=/usr/java/j2sdk1.4.0_03 --enable-shared --with-l
ayout=GNU

version of oracle: client 8.1.6, server 8.1.7


both machine with the php and include...

Reproduce code:
---
include:

function SetDatabase( $database )
{
case 'ORA_PROD' :
  global $ORACLEVARS;
  $ORACLEVARS['database'] = 'ORA_P';
  $ORACLEVARS['username'] = 'x';
  $ORACLEVARS['password'] = 'y';
break;
}

function sql_connect_simple(){
  global $ORACLEVARS;
  if ( $ORACLEVARS['log'] )
__log('CON:' . $ORACLEVARS['database']);

  //$ORACLEVARS['conn'] = OCILogon( $ORACLEVARS['username'],
$ORACLEVARS['password'], $ORACLEVARS['database'] );
  $ORACLEVARS['conn'] = oci_connect( $ORACLEVARS['username'],
$ORACLEVARS['password'], $ORACLEVARS['database'] );
}

function sql_query( $sql, $update = 0 ) {
global $ORACLEVARS;
if ( $ORACLEVARS['conn'] == 0 ) {
__err('*** QUERY: NOT CONNECTED');
return 0;
}
if ( $ORACLEVARS['log'] )
  __log('QUE:' . $sql);
$handle = oci_parse( $ORACLEVARS['conn'], $sql );

if ( ! $handle ) {
__err('*** QUERY: PARSE ERROR');
return 0;
}

if ( ! oci_execute( $handle, $ORACLEVARS['mode'] ) ) {
__err('*** QUERY: EXECUTE ERROR');
oci_free_statement($handle);
return 0;
}

if ( $update ) {
oci_free_statement($handle);
$handle = 0;
}
$ORACLEVARS['dataset'][$handle] = 0;
return $handle;
}

php:

$SQL = '';
$SQL .= ' SELECT ';
$SQL .= '   NUM_BOL, ( ';
$SQL .= '   SGL_COLC_BOL||';
$SQL .= '   TRIM(COD_PROJ_AENV) || ';
$SQL .= '   \'-\' || ';
$SQL .= '   TRIM(COD_CAP_A100)  || \'-\' ||
';
$SQL .= '   IND_ALRT_BOL|| ';
$SQL .= '   TRIM(TO_CHAR(NUM_SEQ_BOL, \'000\')) || \'/\' ||
';
$SQL .= '   TRIM(TO_CHAR(NUM_REV_BOL, \'00\')) ';
$SQL .= '   ) AS NUM_BOL_FORMTD, ';
$SQL .= '   NUM_REV_BOL, ';
$SQL .= '   DSC_TITL_BOL ';
$SQL .= ' FROM ';
$SQL .= '   CBS.CBS_BOLETIM';
$SQL .= ' WHERE 1=1';
$SQL .= '   AND ROWNUM <= ' . $P_QT;
$SQL .= '   AND COD_PROJ_AENV = \'' . $P_STR_COD_PROJ_AENV
. '\'';
$SQL .= '   AND SGL_COLC_BOL in (\'SB\', \'BS\') ';
$SQL .= ' ORDER BY ';
$SQL .= '   NUM_BOL ';

SetDatabase('ORA_P');
sql_connect_simple();
$RESULT = sql_query($SQL);



Expected result:
-

#32395 [NEW]: odbc_execute modifies the param array

2005-03-21 Thread treehousetim at gmail dot com
From: treehousetim at gmail dot com
Operating system: Windows 2000/XP
PHP version:  4.3.10
PHP Bug Type: ODBC related
Bug description:  odbc_execute modifies the param array

Description:

Calling odbc_execute modifies the input paramList array.
This happens even when I try to make a copy of the array before passing it
to odbc_execute.

Specifically, null parameters are changed to zero length strings.


Reproduce code:
---


Expected result:

NULL
string
Array
(
[0] => 44
[1] => 
[2] => 
)

Actual result:
--
NULL
NULL
Array
(
[0] => 44
[1] => 
[2] => 
)

-- 
Edit bug report at http://bugs.php.net/?id=32395&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32395&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32395&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32395&r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=32395&r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=32395&r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=32395&r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=32395&r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=32395&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32395&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=32395&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=32395&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=32395&r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=32395&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32395&r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=32395&r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=32395&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32395&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32395&r=float
No Zend Extensions:  http://bugs.php.net/fix.php?id=32395&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32395&r=mysqlcfg


#32397 [NEW]: new DOMDocument('1.0', 'iso-8859-1'); fails: "expects parameter 2 to be long"

2005-03-21 Thread m at tacker dot org
From: m at tacker dot org
Operating system: Gentoo Linux
PHP version:  4.3.9
PHP Bug Type: DOM XML related
Bug description:  new DOMDocument('1.0', 'iso-8859-1'); fails: "expects 
parameter 2 to be long"

Description:

$XML = new DOMDocument('1.0', 'iso-8859-1');
produces a warning:
"Warning:  domdocument() expects parameter 2 to be long, string given"

Expected result:

DOMDocument() should accept strings as second argument, as stated in the
docs:
http://de3.php.net/manual/en/function.dom-domdocument-construct.php


-- 
Edit bug report at http://bugs.php.net/?id=32397&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32397&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32397&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32397&r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=32397&r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=32397&r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=32397&r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=32397&r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=32397&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32397&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=32397&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=32397&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=32397&r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=32397&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32397&r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=32397&r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=32397&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32397&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32397&r=float
No Zend Extensions:  http://bugs.php.net/fix.php?id=32397&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32397&r=mysqlcfg


#32397 [Opn->Bgs]: new DOMDocument('1.0', 'iso-8859-1'); fails: "expects parameter 2 to be long"

2005-03-21 Thread tony2001
 ID:   32397
 Updated by:   [EMAIL PROTECTED]
 Reported By:  m at tacker dot org
-Status:   Open
+Status:   Bogus
 Bug Type: DOM XML related
 Operating System: Gentoo Linux
 PHP Version:  4.3.9
 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

This documentation tells about DOM extension (that is available since
PHP 5.0) and has nothing to do with DOM XML.


Previous Comments:


[2005-03-21 19:34:05] m at tacker dot org

Description:

$XML = new DOMDocument('1.0', 'iso-8859-1');
produces a warning:
"Warning:  domdocument() expects parameter 2 to be long, string given"

Expected result:

DOMDocument() should accept strings as second argument, as stated in
the docs:
http://de3.php.net/manual/en/function.dom-domdocument-construct.php






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


#32398 [NEW]: Call to undefined function ocilogon() in ....

2005-03-21 Thread buxalex at libero dot it
From: buxalex at libero dot it
Operating system: windows
PHP version:  5.0.3
PHP Bug Type: OCI8 related
Bug description:  Call to undefined function ocilogon() in 

Description:

Hello, 
I've installed Apache and PHP, and I have oracle 9 installed
on my laptop with a db created and working. When I try to connect to the
db I get the error: Call to undefined function ocilogon() in ...

I've entered the following statement in the PHP:INI file:

extension_dir = d:\php_world\php\ext\
extension = php_oci8.dll
extension = php_oracle.dll

but the probel is the same.

I tried also to modify the php code entering:

require ('db-include.php')
$conn = ocilogon(DB_USER,DB_PASS,DB_NAME);

But I still get the same error.

running the print_r(get_loaded_extensions()); statement I cannot see the
in the list any OCI

How I can let it work?

Thanks












-- 
Edit bug report at http://bugs.php.net/?id=32398&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32398&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32398&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32398&r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=32398&r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=32398&r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=32398&r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=32398&r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=32398&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32398&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=32398&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=32398&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=32398&r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=32398&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32398&r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=32398&r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=32398&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32398&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32398&r=float
No Zend Extensions:  http://bugs.php.net/fix.php?id=32398&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32398&r=mysqlcfg


#32399 [NEW]: isapi marshalling problem

2005-03-21 Thread shunt at ctg dot queensu dot ca
From: shunt at ctg dot queensu dot ca
Operating system: windows 2003 
PHP version:  5.0.3
PHP Bug Type: Unknown/Other Function
Bug description:  isapi marshalling problem 

Description:

Hi, 

This bug was already reported for a previous version of php.
(Bug #10480 ISAPI module conflicts with asp.dll) but I am having the same
problem running a newer version of php and running IIS6. 
Thanks for your time on this. 

Steve.


-- 
Edit bug report at http://bugs.php.net/?id=32399&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32399&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32399&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32399&r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=32399&r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=32399&r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=32399&r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=32399&r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=32399&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32399&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=32399&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=32399&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=32399&r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=32399&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32399&r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=32399&r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=32399&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32399&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32399&r=float
No Zend Extensions:  http://bugs.php.net/fix.php?id=32399&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32399&r=mysqlcfg


#32400 [NEW]: MSSQL Error ignoring

2005-03-21 Thread davidc at densi dot com
From: davidc at densi dot com
Operating system: Debian Testing
PHP version:  4.3.10
PHP Bug Type: MSSQL related
Bug description:  MSSQL Error ignoring

Description:

This is a simple bug that I can fix in the mssql query but I believe that
this should be ignored automaticly by PHP. Basicly, I run this specific
sql query and it outputs an Unknown Error. Then I go to query analyzer and
the query works. But there's null values warnings. I can't use any @ to
ignore the error, it doesn't *ignore* it. I can run any other queries in
my php scripts and they work fine.

Reproduce code:
---
http://undernetlinuxnewbie.org/pastebin/view.php?id=126

which works but I get this:

Warning: Null value is eliminated by an aggregate or other SET operation.

Expected result:

SalesNAMELineDate   Incoming   Outgoing   Area
12   David   Mar 21, 2005   16 13 QC
04   Rob Mar 21, 2004   12 28 ON

Actual result:
--
PHP:
Query error!

Error message: DB Error: unknown error


MSSQL:
Query Outputs the good result.
but this in the warnings:

Warning: Null value is eliminated by an aggregate or other SET operation.



-- 
Edit bug report at http://bugs.php.net/?id=32400&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32400&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32400&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32400&r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=32400&r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=32400&r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=32400&r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=32400&r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=32400&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32400&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=32400&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=32400&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=32400&r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=32400&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32400&r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=32400&r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=32400&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32400&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32400&r=float
No Zend Extensions:  http://bugs.php.net/fix.php?id=32400&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32400&r=mysqlcfg


#32401 [NEW]: fail to configure --with-curl

2005-03-21 Thread alessio at ware dot it
From: alessio at ware dot it
Operating system: debian sarge
PHP version:  4.3.10
PHP Bug Type: Compile Failure
Bug description:  fail to configure --with-curl

Description:

if i try to configure --with-curl or --with-curl=/usr or
--with-curl=shared,/usr configuration stop 
checking for CURL support... yes
checking for CURL in default path... found in /usr
checking for cURL 7.9.8 or greater... libcurl 7.13.1
checking for curl_easy_perform in -lcurl... no
configure: error: There is something wrong. Please check config.log for
more information.

Reproduce code:
---

IN config log : gcc -o conftest -g -O2 -pthread  -D_REENTRANT  -lcurl
-lidn -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz conftest.c -lcurl 
-lcurl -lbz2 -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl  -lcurl -lidn
-lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz 1>&5
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libcurl.so: undefined reference
to `tld_strerror'
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libcurl.so: undefined reference
to `idna_strerror'
collect2: ld returned 1 exit status
configure: failed program was:
#line 20458 "configure"
#include "confdefs.h"

char curl_easy_perform();

int main() {
curl_easy_perform()
; return 0; }



-- 
Edit bug report at http://bugs.php.net/?id=32401&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32401&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32401&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32401&r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=32401&r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=32401&r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=32401&r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=32401&r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=32401&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32401&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=32401&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=32401&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=32401&r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=32401&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32401&r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=32401&r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=32401&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32401&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32401&r=float
No Zend Extensions:  http://bugs.php.net/fix.php?id=32401&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32401&r=mysqlcfg


#32394 [Asn->Csd]: offsetUnset() segfaults in a foreach

2005-03-21 Thread helly
 ID:   32394
 Updated by:   [EMAIL PROTECTED]
 Reported By:  guth at fiifo dot u-psud dot fr
-Status:   Assigned
+Status:   Closed
 Bug Type: SPL related
 Operating System: *
 PHP Version:  5.0.3
 Assigned To:  helly
 New Comment:

This bug has been fixed in CVS.

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/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:


[2005-03-21 13:53:45] [EMAIL PROTECTED]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1079353056 (LWP 31492)]
0x0829c122 in zend_hash_get_current_key_type_ex (ht=0x85c6234,
pos=0x85deaac) at /usr/src/dev/php-src/Zend/zend_hash.c:1083
1083if (p->nKeyLength) {
(gdb) bt
#0  0x0829c122 in zend_hash_get_current_key_type_ex (ht=0x85c6234,
pos=0x85deaac) at /usr/src/dev/php-src/Zend/zend_hash.c:1083
#1  0x081b9320 in spl_array_next (intern=0x85dea9c) at
/usr/src/dev/php-src/ext/spl/spl_array.c:583
#2  0x081b96bc in spl_array_it_move_forward (iter=0x85dd124) at
/usr/src/dev/php-src/ext/spl/spl_array.c:671
#3  0x082ca35c in ZEND_FE_FETCH_SPEC_VAR_HANDLER
(execute_data=0xbfffcca0) at zend_vm_execute.h:7616
#4  0x082b7f3a in execute (op_array=0x85d8d9c) at zend_vm_execute.h:78
#5  0x08293a90 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /usr/src/dev/php-src/Zend/zend.c:1059
#6  0x08251382 in php_execute_script (primary_file=0xb0d0) at
/usr/src/dev/php-src/main/main.c:1640
#7  0x083072cc in main (argc=2, argv=0xb1a4) at
/usr/src/dev/php-src/sapi/cli/php_cli.c:951
(gdb) p p
$1 = (Bucket *) 0x5a5a5a5a
(gdb) f 1
#1  0x081b9320 in spl_array_next (intern=0x85dea9c) at
/usr/src/dev/php-src/ext/spl/spl_array.c:583
583 return
zend_hash_has_more_elements_ex(aht, &intern->pos);
(gdb) p intern->pos
$3 = 0x5a5a5a5a
(gdb) f 2
#2  0x081b96bc in spl_array_it_move_forward (iter=0x85dd124) at
/usr/src/dev/php-src/ext/spl/spl_array.c:671
671 spl_array_next(object TSRMLS_CC);
(gdb) p *object
$5 = {std = {ce = 0x8561758, properties = 0x85d8e5c, in_get = 0, in_set
= 0}, array = 0x85c61f4, pos = 0x5a5a5a5a, is_ref = 0, fptr_offset_get =
0x0, fptr_offset_set = 0x0,
  fptr_offset_has = 0x0, fptr_offset_del = 0x0}
  



[2005-03-21 13:29:39] guth at fiifo dot u-psud dot fr

Description:

Look at the following code :)

Reproduce code:
---
append(new stdClass);

foreach($object as $key => $value) {
$object->offsetUnset($key);
}

exit((string)mt_rand(0, 1000));

?>

Expected result:

No crash.

Actual result:
--
#0  0x404195df in zend_hash_get_current_key_type_ex (ht=0x817a6ec,
pos=0x815556c)
at /usr/src/php5-STABLE-200502101130/Zend/zend_hash.c:1083
#1  0x402ffe1b in spl_array_next (intern=0x81c) at
/usr/src/php5-STABLE-200502101130/ext/spl/spl_array.c:498
#2  0x403001b7 in spl_array_it_move_forward (iter=0x817f6ec) at
/usr/src/php5-STABLE-200502101130/ext/spl/spl_array.c:586
#3  0x4043d6e0 in zend_fe_fetch_handler (execute_data=0xbfffcc10,
opline=0x817ef44, op_array=0x817a57c)
at /usr/src/php5-STABLE-200502101130/Zend/zend_execute.c:3847
#4  0x40435156 in execute (op_array=0x817a57c) at
/usr/src/php5-STABLE-200502101130/Zend/zend_execute.c:1406
#5  0x404113c0 in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
at /usr/src/php5-STABLE-200502101130/Zend/zend.c:1068
#6  0x403d0c7e in php_execute_script (primary_file=0xbfffef80) at
/usr/src/php5-STABLE-200502101130/main/main.c:1630
#7  0x4043ec7e in apache_php_module_main (r=0x817100c,
display_source_mode=0)
at /usr/src/php5-STABLE-200502101130/sapi/apache/sapi_apache.c:54
#8  0x4043f901 in send_php (r=0x817100c, display_source_mode=0,
filename=0x8171b14 "/anticorps/www/test.php")
at /usr/src/php5-STABLE-200502101130/sapi/apache/mod_php5.c:622
#9  0x4043f968 in send_parsed_php (r=0x817100c) at
/usr/src/php5-STABLE-200502101130/sapi/apache/mod_php5.c:637
#10 0x08071e88 in ap_invoke_handler ()
#11 0x08086f10 in process_request_internal ()
#12 0x08086f6f in ap_process_request ()
#13 0x0807df91 in child_main ()
#14 0x0807e19c in make_child ()
#15 0x0807e300 in startup_children ()
#16 0x0807e9bf in standalone_main ()
#17 0x0807f1d7 in main ()





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


#32401 [Opn->Bgs]: fail to configure --with-curl

2005-03-21 Thread alessio at ware dot it
 ID:   32401
 User updated by:  alessio at ware dot it
 Reported By:  alessio at ware dot it
-Status:   Open
+Status:   Bogus
 Bug Type: Compile Failure
 Operating System: debian sarge
 PHP Version:  4.3.10
 New Comment:

Not a bug in PHP, but in Debian's libidn package.


Previous Comments:


[2005-03-21 21:11:22] alessio at ware dot it

Description:

if i try to configure --with-curl or --with-curl=/usr or
--with-curl=shared,/usr configuration stop 
checking for CURL support... yes
checking for CURL in default path... found in /usr
checking for cURL 7.9.8 or greater... libcurl 7.13.1
checking for curl_easy_perform in -lcurl... no
configure: error: There is something wrong. Please check config.log for
more information.

Reproduce code:
---

IN config log : gcc -o conftest -g -O2 -pthread  -D_REENTRANT  -lcurl
-lidn -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz conftest.c -lcurl 
-lcurl -lbz2 -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl  -lcurl -lidn
-lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz 1>&5
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libcurl.so: undefined
reference to `tld_strerror'
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libcurl.so: undefined
reference to `idna_strerror'
collect2: ld returned 1 exit status
configure: failed program was:
#line 20458 "configure"
#include "confdefs.h"

char curl_easy_perform();

int main() {
curl_easy_perform()
; return 0; }







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


#32381 [Bgs]: T1lib configuring error

2005-03-21 Thread dbarth at gmx dot net
 ID:   32381
 User updated by:  dbarth at gmx dot net
 Reported By:  dbarth at gmx dot net
 Status:   Bogus
 Bug Type: GD related
 Operating System: Mandrake 10
 PHP Version:  5.0.3
 New Comment:

So, i did like you say and upgraded t1lib, but now
imageloadpsfont (the function i actually need) say's that it cant't
load the font i supplied. What the hell is wrong? Is that a problem of
t1lib? Under php4 with my old t1lib there wasn't any problem.


Previous Comments:


[2005-03-20 17:54:27] [EMAIL PROTECTED]

Update your t1lib.




[2005-03-20 10:22:32] dbarth at gmx dot net

Description:

Hello I need to compile php with t1lib support, but i get follwing
error while configuring:

configure:30293: checking for jpeg_read_header in -ljpeg   
   
configure:30576: checking for png_write_image in -lpng 
   
configure:31675: checking for T1_StrError in -lt1  
   
configure:31694: gcc -o conftest -g -O2   conftest.c -lt1  -lpng -lz
-ljpeg -lg
bm -lbz2 -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm
-lxml2 -lz 
lm 1>&5
   
/tmp//ccaz46FM.o(.text+0x9): In function `main':   
   
/usr/local/src/php-5.0.3/configure:31690: undefined reference to
`T1_StrError' 
collect2: ld returned 1 exit status
   
configure: failed program was: 
   
#line 31683 "configure"
   
#include "confdefs.h"  
   
/* Override any gcc2 internal prototype to avoid an error.  */ 
   
/* We use char because int might match the return type of a gcc2   
   
builtin and then its argument prototype would still apply.  */ 
   
char T1_StrError();
   
   
   
int main() {   
   
T1_StrError()  
   
; return 0; }  
   

any suggestions?

(ver: t1lib 1.3.1)






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


#32402 [NEW]: you failed to compress a significant part of PHP.... ITS ASS!!!!!

2005-03-21 Thread somejerk at lotsofjerks dot net
From: somejerk at lotsofjerks dot net
Operating system: any
PHP version:  5.0.3
PHP Bug Type: *Compression related
Bug description:  you failed to compress a significant part of PHP ITS 
ASS!

Description:

php has a large posterior

Reproduce code:
---


Expected result:

moderately sized

Actual result:
--
frickin' huge!

-- 
Edit bug report at http://bugs.php.net/?id=32402&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32402&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32402&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32402&r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=32402&r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=32402&r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=32402&r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=32402&r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=32402&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32402&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=32402&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=32402&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=32402&r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=32402&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32402&r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=32402&r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=32402&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32402&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32402&r=float
No Zend Extensions:  http://bugs.php.net/fix.php?id=32402&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32402&r=mysqlcfg


#32402 [Opn->Bgs]: you failed to compress a significant part of PHP.... ITS ASS!!!!!

2005-03-21 Thread rasmus
 ID:   32402
 Updated by:   [EMAIL PROTECTED]
 Reported By:  somejerk at lotsofjerks dot net
-Status:   Open
+Status:   Bogus
 Bug Type: *Compression related
 Operating System: any
 PHP Version:  5.0.3
 New Comment:

Yeah, we like big butts!


Previous Comments:


[2005-03-21 22:17:33] somejerk at lotsofjerks dot net

Description:

php has a large posterior

Reproduce code:
---


Expected result:

moderately sized

Actual result:
--
frickin' huge!





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


#28605 [Opn->Fbk]: bug21523.phpt test never end

2005-03-21 Thread sniper
 ID:   28605
 Updated by:   [EMAIL PROTECTED]
 Reported By:  tbp at poly dot polytechnique dot fr
-Status:   Open
+Status:   Feedback
 Bug Type: Math related
 Operating System: Compaq Tru64 UNIX v5.1
-PHP Version:  4CVS-2005-02-10
+PHP Version:  4CVS-2005-03-21
 New Comment:

Please provide the GDB backtrace of the crash with the snapshot.


Previous Comments:


[2005-03-21 13:42:14] tbp at poly dot polytechnique dot fr

No hangup anymore, but coredump instead.

[EMAIL PROTECTED]:/Admin/SRC/Apache/php4-STABLE-200503211130]# sapi/cli/php
ext/standard/tests/math/bug21523.phpt
--TEST--
Bug #21523 number_format tries to allocate negative amount of memory
--FILE--
Floating point exception (core dumped)


FAIL Bug #21523 number_format tries to allocate negative amount of
memory [ext/standard/tests/math/bug21523.phpt]



[2005-03-20 17:49:13] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz

The build is fixed now.




[2004-07-11 21:43:33] [EMAIL PROTECTED]

run the single test like this:

# gdb sapi/cli/php
(gdb) run ext/standard/tests/math/bug21523.phpt

And if/when it hangs, press ctrl+c and then type:

(gdb) bt

And paste output here.





[2004-06-01 22:21:01] tbp at poly dot polytechnique dot fr

Description:

I was upgrading my apache/mod-ssl/php to latest version and I have now
trouble to do “make test”:
I expect “make test” to give me some results in minute or some, but it
continue running for hours.
But I could stop it with CTRL-C

Same results for php 4.3.6/4.3.7RC1/php4-STABLE-200406011430
php 4.3.4 works fine.

My tests shows that php go in to some kind of loop while it try to
execute number_format(-2000, 2768):
[EMAIL PROTECTED]:/Admin/SRC/Apache/php-4.3.4]# ps auxwwa | grep php
root 468861 97.9  0.0 6.38M 1.1M pts/5R  + 22:04:31 0:08.71
sapi/cli/php bug21523.phpt


Configure:
./configure --with-apache=../apache_1.3.31 --with-ssl=/Local/ssl
--prefix=/Local/php --enable-memory-limit --with-zlib=/Local
--with-zlib-dir=/Local --with-mysql=/Local/mysql
--with-pgsql=/Local/pgsql --enable-ftp

Problem is irrelevant to php.ini (I have also done all tests without
any php.ini)




Reproduce code:
---
make test

Expected result:

with php-4.3.4 I have somesing like:
…
PASS GetImageSize() for compressed swf files
[ext/standard/tests/image/getimagesize_swc.phpt]
PASS image_type_to_mime_type()
[ext/standard/tests/image/image_type_to_mime_type.phpt]
FAIL Simple math tests [ext/standard/tests/math/abs.phpt]
PASS Bug #21523 number_format tries to allocate negative amount of
memory [ext/standard/tests/math/bug21523.phpt]
PASS Bug #24142 (round() problems)
[ext/standard/tests/math/bug24142.phpt]
…


Actual result:
--
make test on php 4.3.6/4.3.7RC1/php4-STABLE-200406011430:

…
PASS image_type_to_mime_type()
[ext/standard/tests/image/image_type_to_mime_type.phpt]
PASS Simple math tests [ext/standard/tests/math/abs.phpt]
make: *** [test] Interrupt
(By CTRL-C) <- it was me who stop it






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


#32400 [Opn->Fbk]: MSSQL Error ignoring

2005-03-21 Thread sniper
 ID:   32400
 Updated by:   [EMAIL PROTECTED]
 Reported By:  davidc at densi dot com
-Status:   Open
+Status:   Feedback
 Bug Type: MSSQL related
 Operating System: Debian Testing
 PHP Version:  4.3.10
 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:


[2005-03-21 21:01:06] davidc at densi dot com

Description:

This is a simple bug that I can fix in the mssql query but I believe
that this should be ignored automaticly by PHP. Basicly, I run this
specific sql query and it outputs an Unknown Error. Then I go to query
analyzer and the query works. But there's null values warnings. I can't
use any @ to ignore the error, it doesn't *ignore* it. I can run any
other queries in my php scripts and they work fine.

Reproduce code:
---
http://undernetlinuxnewbie.org/pastebin/view.php?id=126

which works but I get this:

Warning: Null value is eliminated by an aggregate or other SET
operation.

Expected result:

SalesNAMELineDate   Incoming   Outgoing   Area
12   David   Mar 21, 2005   16 13 QC
04   Rob Mar 21, 2004   12 28 ON

Actual result:
--
PHP:
Query error!

Error message: DB Error: unknown error


MSSQL:
Query Outputs the good result.
but this in the warnings:

Warning: Null value is eliminated by an aggregate or other SET
operation.







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


#32299 [Opn->Bgs]: The errors aren't shown at all

2005-03-21 Thread sniper
 ID:   32299
 Updated by:   [EMAIL PROTECTED]
 Reported By:  poison at telenet dot be
-Status:   Open
+Status:   Bogus
 Bug Type: Output Control
 Operating System: Linux
 PHP Version:  4.3.10
 New Comment:

Stop bugging us about it, it's not any bug as we can't reproduce it.
Just something you're doing wrong.



Previous Comments:


[2005-03-21 17:43:34] poison at telenet dot be

What other info should I provide?

I've recompiled apache and php and I still get no errors :s
What should I do?



[2005-03-15 11:08:44] [EMAIL PROTECTED]

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


Works fine here...



[2005-03-15 10:44:00] poison at telenet dot be

I asked for support in the #PHP channel on FreeNode and they suggested
to submit a bug. We've tried everything and I get no error messages.



[2005-03-14 21:17:22] [EMAIL PROTECTED]

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. 

Even if you think it is not a bug, we often know better than you,
please consult the support channels first before even considering
to reopen this report.

Thank you for your interest in PHP.





[2005-03-14 12:42:33] poison at telenet dot be

Description:

When I run a script as  I don't see anything. Error
outputting doesn't work at all.
Although everything in my php.ini is set as appropriate and I
recompiled the whole php with new downloaded tarballs and with
./configure --with-apxs2=/usr/local/apache2/bin/apxs --disable-all
I replaced my php.ini by the php.ini-dist and still got the problem.

The strange thing is that it works in the CLI but not with apache


Output from browser:





Output from CLI:
[EMAIL PROTECTED]:~/ToolServer$ php -f error.php

Fatal error: Call to undefined function:  error() in
/home/toolserver/ToolServer/error.php on line 3


Reproduce code:
---
./configure --with-apxs2=/usr/local/apache2/bin/apxs --disable-all
make
make install
cp php.ini-dist /usr/local/lib/php.ini
/usr/local/apache2/bin/apachectl restart

Expected result:

Fatal error: Call to undefined function:  error() in
/home/toolserver/ToolServer/error.php on line 3


Actual result:
--









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


#32403 [NEW]: PHP does not free memory, occupied by cross-referencing objects

2005-03-21 Thread valyala at tut dot by
From: valyala at tut dot by
Operating system: any
PHP version:  Irrelevant
PHP Bug Type: Zend Engine 2 problem
Bug description:  PHP does not free memory, occupied by cross-referencing 
objects

Description:

See reproducible code below


Reproduce code:
---
 $a,
);
// construct parent
$parent = array(
'data' => $a,
'child' => &$child,
);
// comment following line to prevent memleak
$child['parent'] = &$parent;
}

// try to leak of 1GB memory
for ($i = 0; $i < 1000; $i++) memleak(100);

sleep(10);

?>

Expected result:

normal execution of script

Actual result:
--
PHP occupies all available memory.

-- 
Edit bug report at http://bugs.php.net/?id=32403&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32403&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32403&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32403&r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=32403&r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=32403&r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=32403&r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=32403&r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=32403&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32403&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=32403&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=32403&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=32403&r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=32403&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32403&r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=32403&r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=32403&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32403&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32403&r=float
No Zend Extensions:  http://bugs.php.net/fix.php?id=32403&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32403&r=mysqlcfg


#32395 [Opn->Fbk]: odbc_execute modifies the param array

2005-03-21 Thread sniper
 ID:   32395
 Updated by:   [EMAIL PROTECTED]
 Reported By:  treehousetim at gmail dot com
-Status:   Open
+Status:   Feedback
 Bug Type: ODBC related
 Operating System: Windows 2000/XP
 PHP Version:  4.3.10
 New Comment:

Please change print_r -> var_dump to get more detailed information out
of the $paramList variable.


Previous Comments:


[2005-03-21 18:38:28] treehousetim at gmail dot com

Description:

Calling odbc_execute modifies the input paramList array.
This happens even when I try to make a copy of the array before passing
it to odbc_execute.

Specifically, null parameters are changed to zero length strings.


Reproduce code:
---


Expected result:

NULL
string
Array
(
[0] => 44
[1] => 
[2] => 
)

Actual result:
--
NULL
NULL
Array
(
[0] => 44
[1] => 
[2] => 
)





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


#28605 [Fbk->Opn]: bug21523.phpt test never end

2005-03-21 Thread tbp at poly dot polytechnique dot fr
 ID:   28605
 User updated by:  tbp at poly dot polytechnique dot fr
 Reported By:  tbp at poly dot polytechnique dot fr
-Status:   Feedback
+Status:   Open
 Bug Type: Math related
 Operating System: Compaq Tru64 UNIX v5.1
 PHP Version:  4CVS-2005-03-21
 New Comment:

[EMAIL PROTECTED]:/Admin/SRC/Apache/php4-STABLE-200503211130]# gdb
sapi/cli/php
This GDB was configured as "alphaev68-dec-osf5.1"...
(gdb) run ext/standard/tests/math/bug21523.phpt
Starting program:
/Admin/SRC/Apache/php4-STABLE-200503211130/sapi/cli/php
ext/standard/tests/math/bug21523.phpt
--TEST--
Bug #21523 number_format tries to allocate negative amount of memory
--FILE--
warning: (Internal error: pc 0x1200a72b8 in read in psymtab, but not in
symtab.)


Program received signal SIGFPE, Arithmetic exception.
0x0001200a72b8 in _php_math_number_format (d=2000, dec=2768,
dec_point=46 '.', thousand_sep=44 ',')
at
/Admin/SRC/Apache/php4-STABLE-200503211130/ext/standard/math.c:1025
1025PHP_ROUND_WITH_FUZZ(d, dec);
(gdb)


Previous Comments:


[2005-03-21 22:35:46] [EMAIL PROTECTED]

Please provide the GDB backtrace of the crash with the snapshot.



[2005-03-21 13:42:14] tbp at poly dot polytechnique dot fr

No hangup anymore, but coredump instead.

[EMAIL PROTECTED]:/Admin/SRC/Apache/php4-STABLE-200503211130]# sapi/cli/php
ext/standard/tests/math/bug21523.phpt
--TEST--
Bug #21523 number_format tries to allocate negative amount of memory
--FILE--
Floating point exception (core dumped)


FAIL Bug #21523 number_format tries to allocate negative amount of
memory [ext/standard/tests/math/bug21523.phpt]



[2005-03-20 17:49:13] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz

The build is fixed now.




[2004-07-11 21:43:33] [EMAIL PROTECTED]

run the single test like this:

# gdb sapi/cli/php
(gdb) run ext/standard/tests/math/bug21523.phpt

And if/when it hangs, press ctrl+c and then type:

(gdb) bt

And paste output here.





[2004-06-01 22:21:01] tbp at poly dot polytechnique dot fr

Description:

I was upgrading my apache/mod-ssl/php to latest version and I have now
trouble to do “make test”:
I expect “make test” to give me some results in minute or some, but it
continue running for hours.
But I could stop it with CTRL-C

Same results for php 4.3.6/4.3.7RC1/php4-STABLE-200406011430
php 4.3.4 works fine.

My tests shows that php go in to some kind of loop while it try to
execute number_format(-2000, 2768):
[EMAIL PROTECTED]:/Admin/SRC/Apache/php-4.3.4]# ps auxwwa | grep php
root 468861 97.9  0.0 6.38M 1.1M pts/5R  + 22:04:31 0:08.71
sapi/cli/php bug21523.phpt


Configure:
./configure --with-apache=../apache_1.3.31 --with-ssl=/Local/ssl
--prefix=/Local/php --enable-memory-limit --with-zlib=/Local
--with-zlib-dir=/Local --with-mysql=/Local/mysql
--with-pgsql=/Local/pgsql --enable-ftp

Problem is irrelevant to php.ini (I have also done all tests without
any php.ini)




Reproduce code:
---
make test

Expected result:

with php-4.3.4 I have somesing like:
…
PASS GetImageSize() for compressed swf files
[ext/standard/tests/image/getimagesize_swc.phpt]
PASS image_type_to_mime_type()
[ext/standard/tests/image/image_type_to_mime_type.phpt]
FAIL Simple math tests [ext/standard/tests/math/abs.phpt]
PASS Bug #21523 number_format tries to allocate negative amount of
memory [ext/standard/tests/math/bug21523.phpt]
PASS Bug #24142 (round() problems)
[ext/standard/tests/math/bug24142.phpt]
…


Actual result:
--
make test on php 4.3.6/4.3.7RC1/php4-STABLE-200406011430:

…
PASS image_type_to_mime_type()
[ext/standard/tests/image/image_type_to_mime_type.phpt]
PASS Simple math tests [ext/standard/tests/math/abs.phpt]
make: *** [test] Interrupt
(By CTRL-C) <- it was me who stop it






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


#32404 [NEW]: Bug concerning use of preg_replace

2005-03-21 Thread thomas-meyer at uni dot de
From: thomas-meyer at uni dot de
Operating system: Windows XP
PHP version:  4.3.10
PHP Bug Type: PCRE related
Bug description:  Bug concerning use of preg_replace

Description:

There is a problem with PCRE in both PHP-versions (4.3.10 and 5.0.3)

When using preg_replace with:

$b = preg_replace("/(some)thing/", "\\1$replace", $a);

This works fine, as long as $replace does start with any character that is
NOT a number.

BUT: if $replace starts with a number (like "1abc") FIRST this string:
"\\11abc" will be created.
THEN it will try to replace \\11 by the 11th remembered position instead
of replacing \\1 with the 1st one.

This bug could lead to strange/unexpected results and should be fixed
soon.

Reproduce code:
---
';
  $a = 123;

  echo "Perl\n";

  $temp1 = preg_replace("/(<[^>]*)test([^>]*>)/Usi", "\\1".$a."\\2",
$temp);
  echo $temp1;
  
  echo "POSIX\n";

  $temp1 = eregi_replace("(<[^>]*)test([^>]*>)", "\\1".$a."\\2", $temp);
  echo $temp1;

?>

Expected result:

Perl

POSIX


Actual result:
--
Perl
23">
POSIX


-- 
Edit bug report at http://bugs.php.net/?id=32404&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32404&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32404&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32404&r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=32404&r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=32404&r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=32404&r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=32404&r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=32404&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32404&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=32404&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=32404&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=32404&r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=32404&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32404&r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=32404&r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=32404&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32404&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32404&r=float
No Zend Extensions:  http://bugs.php.net/fix.php?id=32404&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32404&r=mysqlcfg


#32395 [Fbk->Opn]: odbc_execute modifies the param array

2005-03-21 Thread treehousetim at gmail dot com
 ID:   32395
 User updated by:  treehousetim at gmail dot com
 Reported By:  treehousetim at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: ODBC related
 Operating System: Windows 2000/XP
 PHP Version:  4.3.10
 New Comment:

More specifically, all entries in the array are changed to string
types.
here is more data as requested using var_dump instead of print_r.

BEFORE:

array(3) {
  [0]=>
  int(44)
  [1]=>
  NULL
  [2]=>
  NULL
}

AFTER:
array(3) {
  [0]=>
  string(2) "44"
  [1]=>
  string(0) ""
  [2]=>
  string(0) ""
}


Previous Comments:


[2005-03-21 22:45:37] [EMAIL PROTECTED]

Please change print_r -> var_dump to get more detailed information out
of the $paramList variable.



[2005-03-21 18:38:28] treehousetim at gmail dot com

Description:

Calling odbc_execute modifies the input paramList array.
This happens even when I try to make a copy of the array before passing
it to odbc_execute.

Specifically, null parameters are changed to zero length strings.


Reproduce code:
---


Expected result:

NULL
string
Array
(
[0] => 44
[1] => 
[2] => 
)

Actual result:
--
NULL
NULL
Array
(
[0] => 44
[1] => 
[2] => 
)





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


#32399 [Opn->Fbk]: isapi marshalling problem

2005-03-21 Thread sniper
 ID:   32399
 Updated by:   [EMAIL PROTECTED]
 Reported By:  shunt at ctg dot queensu dot ca
-Status:   Open
+Status:   Feedback
-Bug Type: Unknown/Other Function
+Bug Type: IIS related
 Operating System: windows 2003
 PHP Version:  5.0.3
 New Comment:

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.





Previous Comments:


[2005-03-21 20:52:40] shunt at ctg dot queensu dot ca

Description:

Hi, 

This bug was already reported for a previous version of php.
(Bug #10480 ISAPI module conflicts with asp.dll) but I am having the
same problem running a newer version of php and running IIS6. 
Thanks for your time on this. 

Steve.






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


#32405 [NEW]: mysqli->fetch() is returning bad data

2005-03-21 Thread paul at thehedron dot com
From: paul at thehedron dot com
Operating system: Linux (fedora core 3)
PHP version:  5.0.3
PHP Bug Type: MySQLi related
Bug description:  mysqli->fetch() is returning bad data

Description:

mysqli->fetch() is returning bad data on int columns.  I saw this listed,
then closed as bogus (29002).  I just hit it today and assure you it is
not bogus.  

Here is my full setup:
---
CPU: AMD64 
OS:  Fedora Core 3 (2.6.9-1.667)
PHP: 5.0.3
 libmcrypt-2.5.7
 mcrypt-2.6.4
 mhash-0.9.2
Apache: 1.3.33
 mod_ssl-2.8.22-1.3.33
 openssl-0.9.7e
MySQL: 4.1.10
GCC: 3.4.2
---
PHP configuration:
./configure \
--with-apxs=/www/bin/apxs \
--with-mysql=/usr/local/mysql \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-mcrypt=/shared/LAMP/PHP5/libmcrypt-2.5.7 \
--enable-ftp \
--enable-trans-sid 


Reproduce code:
---
CREATE TABLE users (
user_id INT UNSIGNED NOT NULL AUTO_INCREMENT,
lastname VARCHAR(50) NOT NULL,
PRIMARY KEY(user_id));
---
prepare("SELECT user_id, lastname FROM users")) {
   $stmt->execute();

   $stmt->bind_result($col1, $col2);

   while ($stmt->fetch()) {
   printf("%s %s ", $col1, $col2);
   }
   $stmt->close();
}
$mysqli->close();
?> 


Expected result:

Expected results:
1 Peterson
2 Asenbach

Actual result:
--
Actual results:
32199691940659210 Peterson 
32199691940659211 Asenbach 

-- 
Edit bug report at http://bugs.php.net/?id=32405&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32405&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32405&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32405&r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=32405&r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=32405&r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=32405&r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=32405&r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=32405&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32405&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=32405&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=32405&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=32405&r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=32405&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32405&r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=32405&r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=32405&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32405&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32405&r=float
No Zend Extensions:  http://bugs.php.net/fix.php?id=32405&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32405&r=mysqlcfg


#32405 [Opn->Fbk]: mysqli->fetch() is returning bad data

2005-03-21 Thread tony2001
 ID:   32405
 Updated by:   [EMAIL PROTECTED]
 Reported By:  paul at thehedron dot com
-Status:   Open
+Status:   Feedback
 Bug Type: MySQLi related
 Operating System: Linux (fedora core 3)
 PHP Version:  5.0.3
 New Comment:

Please try using this CVS snapshot:

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




Previous Comments:


[2005-03-22 00:06:09] paul at thehedron dot com

Description:

mysqli->fetch() is returning bad data on int columns.  I saw this
listed, then closed as bogus (29002).  I just hit it today and assure
you it is not bogus.  

Here is my full setup:
---
CPU: AMD64 
OS:  Fedora Core 3 (2.6.9-1.667)
PHP: 5.0.3
 libmcrypt-2.5.7
 mcrypt-2.6.4
 mhash-0.9.2
Apache: 1.3.33
 mod_ssl-2.8.22-1.3.33
 openssl-0.9.7e
MySQL: 4.1.10
GCC: 3.4.2
---
PHP configuration:
./configure \
--with-apxs=/www/bin/apxs \
--with-mysql=/usr/local/mysql \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-mcrypt=/shared/LAMP/PHP5/libmcrypt-2.5.7 \
--enable-ftp \
--enable-trans-sid 


Reproduce code:
---
CREATE TABLE users (
user_id INT UNSIGNED NOT NULL AUTO_INCREMENT,
lastname VARCHAR(50) NOT NULL,
PRIMARY KEY(user_id));
---
prepare("SELECT user_id, lastname FROM users")) {
   $stmt->execute();

   $stmt->bind_result($col1, $col2);

   while ($stmt->fetch()) {
   printf("%s %s ", $col1, $col2);
   }
   $stmt->close();
}
$mysqli->close();
?> 


Expected result:

Expected results:
1 Peterson
2 Asenbach

Actual result:
--
Actual results:
32199691940659210 Peterson 
32199691940659211 Asenbach 





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


#32406 [NEW]: PHP claims that headers are set when __destruct is called

2005-03-21 Thread webmaster at benliles dot com
From: webmaster at benliles dot com
Operating system: Slackware 10 and Solaris
PHP version:  5.0.3
PHP Bug Type: Zend Engine 2 problem
Bug description:  PHP claims that headers are set when __destruct is called

Description:

It appears that PHP has a flag set for headers already being sent when
__destruct() is called despite the fact that nothing is being sent before
that.  This has been seen in PHP 5.0.2 and PHP 5.0.3 with two different
operating systems.  This is not documented as claimed in an earlier bug
report.

Reproduce code:
---
\nOn Line:
".$line."\n";
  }
 }
}

$test = new letsTestThis();
?>

Expected result:

Some cool XML



Actual result:
--
Headers already sent in file: 
On Line: 0

-- 
Edit bug report at http://bugs.php.net/?id=32406&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32406&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32406&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32406&r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=32406&r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=32406&r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=32406&r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=32406&r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=32406&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32406&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=32406&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=32406&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=32406&r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=32406&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32406&r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=32406&r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=32406&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32406&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32406&r=float
No Zend Extensions:  http://bugs.php.net/fix.php?id=32406&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32406&r=mysqlcfg


#32406 [Opn->Bgs]: PHP claims that headers are set when __destruct is called

2005-03-21 Thread helly
 ID:   32406
 Updated by:   [EMAIL PROTECTED]
 Reported By:  webmaster at benliles dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Zend Engine 2 problem
-Operating System: Slackware 10 and Solaris
+Operating System: *
-PHP Version:  5.0.3
+PHP Version:  5.*
 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

__destruct is called during script shut down - that is everything has
already been sent. Add a '$test = NULL;' in front of the '?>' and
you'll see.


Previous Comments:


[2005-03-22 00:16:31] webmaster at benliles dot com

Description:

It appears that PHP has a flag set for headers already being sent when
__destruct() is called despite the fact that nothing is being sent
before that.  This has been seen in PHP 5.0.2 and PHP 5.0.3 with two
different operating systems.  This is not documented as claimed in an
earlier bug report.

Reproduce code:
---
\nOn Line:
".$line."\n";
  }
 }
}

$test = new letsTestThis();
?>

Expected result:

Some cool XML



Actual result:
--
Headers already sent in file: 
On Line: 0





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


#32381 [Bgs->Opn]: T1lib configuring error

2005-03-21 Thread dbarth at gmx dot net
 ID:   32381
 User updated by:  dbarth at gmx dot net
 Reported By:  dbarth at gmx dot net
-Status:   Bogus
+Status:   Open
 Bug Type: GD related
 Operating System: Mandrake 10
 PHP Version:  5.0.3
 New Comment:

huh, now i tried the same with ttf fonts... and encountered the same
error:

Warning: imageftbbox() [function.imageftbbox]: Could not read font in
... on line 56

hmm, do these functions share the same lib?


Previous Comments:


[2005-03-21 21:55:22] dbarth at gmx dot net

So, i did like you say and upgraded t1lib, but now
imageloadpsfont (the function i actually need) say's that it cant't
load the font i supplied. What the hell is wrong? Is that a problem of
t1lib? Under php4 with my old t1lib there wasn't any problem.



[2005-03-20 17:54:27] [EMAIL PROTECTED]

Update your t1lib.




[2005-03-20 10:22:32] dbarth at gmx dot net

Description:

Hello I need to compile php with t1lib support, but i get follwing
error while configuring:

configure:30293: checking for jpeg_read_header in -ljpeg   
   
configure:30576: checking for png_write_image in -lpng 
   
configure:31675: checking for T1_StrError in -lt1  
   
configure:31694: gcc -o conftest -g -O2   conftest.c -lt1  -lpng -lz
-ljpeg -lg
bm -lbz2 -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm
-lxml2 -lz 
lm 1>&5
   
/tmp//ccaz46FM.o(.text+0x9): In function `main':   
   
/usr/local/src/php-5.0.3/configure:31690: undefined reference to
`T1_StrError' 
collect2: ld returned 1 exit status
   
configure: failed program was: 
   
#line 31683 "configure"
   
#include "confdefs.h"  
   
/* Override any gcc2 internal prototype to avoid an error.  */ 
   
/* We use char because int might match the return type of a gcc2   
   
builtin and then its argument prototype would still apply.  */ 
   
char T1_StrError();
   
   
   
int main() {   
   
T1_StrError()  
   
; return 0; }  
   

any suggestions?

(ver: t1lib 1.3.1)






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


#32303 [Fbk->NoF]: if $foo is unset in to curl_init($foo); apache will crash.

2005-03-21 Thread php-bugs
 ID:   32303
 Updated by:   php-bugs@lists.php.net
 Reported By:  willi at almado dot de
-Status:   Feedback
+Status:   No Feedback
 Bug Type: cURL related
 Operating System: Debian sid
 PHP Version:  4.3.10
 New Comment:

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".


Previous Comments:


[2005-03-14 21:14:15] [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

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
If you do get it to crash with the snapshot, provide a GDB backtrace:
  
  http://bugs.php.net/bugs-generating-backtrace.php





[2005-03-14 17:47:54] willi at almado dot de

Description:

by accident i initialized curl with a wrong variable.
apache crashed.jae1fuPe

Reproduce code:
---


Expected result:

there should be an error message.

Actual result:
--
apache crashes.





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


#30660 [Fbk->NoF]: Using Tidy as shared extension crashes PHP (CLI)

2005-03-21 Thread php-bugs
 ID:   30660
 Updated by:   php-bugs@lists.php.net
 Reported By:  margus at zone dot ee
-Status:   Feedback
+Status:   No Feedback
 Bug Type: Reproducible crash
 Operating System: SuSe Linux 9.0
 PHP Version:  5.0.2
 Assigned To:  john
 New Comment:

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".


Previous Comments:


[2005-03-14 22:43:52] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2004-12-03 18:29:28] brent at jeneral dot com

I have two systems w/ apparently identical software systems--FreeBSD
5.2.1 with the same ported application versions (PHP 5.0.2).  One fails
the simple test as identified in the notes below and the other works
perfectly.  I do not see any software differences between the systems,
only hardware differences.  Unfortunately, the failing system is the
production box.



[2004-11-08 12:34:13] [EMAIL PROTECTED]

I'll look into it, hopefully I'll be able to reproduce it in RH



[2004-11-02 14:23:54] margus at zone dot ee

linux:/home/margus/install/php-5.0.2 # gdb sapi/cli/php 
GNU gdb 5.3.92
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i586-suse-linux"...
(gdb) run -c . tidytest.php
Starting program: /home/margus/install/php-5.0.2/sapi/cli/php -c .
tidytest.php
[New Thread 16384 (LWP 21668)]
Exiting...
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 21668)]
0x0816a055 in _zval_dtor (zvalue=0x826ad1c) at
/home/margus/install/php-5.0.2/Zend/zend_variables.c:61
61 
Z_OBJ_HT_P(zvalue)->del_ref(zvalue TSRMLS_CC);
(gdb) bt
#0  0x0816a055 in _zval_dtor (zvalue=0x826ad1c) at
/home/margus/install/php-5.0.2/Zend/zend_variables.c:61
#1  0x08161e89 in _zval_ptr_dtor (zval_ptr=0x826fe48) at
/home/margus/install/php-5.0.2/Zend/zend_execute_API.c:394
#2  0x081715e9 in zend_hash_apply_deleter (ht=0x81ea6d0, p=0x826fe3c)
at /home/margus/install/php-5.0.2/Zend/zend_hash.c:574
#3  0x08171679 in zend_hash_graceful_reverse_destroy (ht=0x81ea6d0) at
/home/margus/install/php-5.0.2/Zend/zend_hash.c:640
#4  0x08161944 in shutdown_executor () at
/home/margus/install/php-5.0.2/Zend/zend_execute_API.c:210
#5  0x0816b126 in zend_deactivate () at
/home/margus/install/php-5.0.2/Zend/zend.c:818
#6  0x081395c7 in php_request_shutdown (dummy=0x0) at
/home/margus/install/php-5.0.2/main/main.c:1212
#7  0x081987d0 in main (argc=4, argv=0xb704) at
/home/margus/install/php-5.0.2/sapi/cli/php_cli.c:1046
(gdb)



[2004-11-02 13:34:32] margus at zone dot ee

");

  echo "Exiting...";
?>



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/30660

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


#32406 [Bgs->Opn]: PHP claims that headers are set when __destruct is called

2005-03-21 Thread webmaster at benliles dot com
 ID:   32406
 User updated by:  webmaster at benliles dot com
 Reported By:  webmaster at benliles dot com
-Status:   Bogus
+Status:   Open
 Bug Type: Zend Engine 2 problem
 Operating System: *
 PHP Version:  5.*
 New Comment:

We are output buffering and in the destructor for a page class, we dump
the output buffer.  There is nothing in the documentation to indicate
when headers would be sent before this point.

Also, the headers_sent function is not reporting correct information. 
The file name is blank and line number is zero.


Previous Comments:


[2005-03-22 00:19:27] [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

__destruct is called during script shut down - that is everything has
already been sent. Add a '$test = NULL;' in front of the '?>' and
you'll see.



[2005-03-22 00:16:31] webmaster at benliles dot com

Description:

It appears that PHP has a flag set for headers already being sent when
__destruct() is called despite the fact that nothing is being sent
before that.  This has been seen in PHP 5.0.2 and PHP 5.0.3 with two
different operating systems.  This is not documented as claimed in an
earlier bug report.

Reproduce code:
---
\nOn Line:
".$line."\n";
  }
 }
}

$test = new letsTestThis();
?>

Expected result:

Some cool XML



Actual result:
--
Headers already sent in file: 
On Line: 0





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


#31984 [Fbk->Opn]: sessions fail randomly, causes a segmentation fault in apache

2005-03-21 Thread root at mediamonks dot net
 ID:   31984
 User updated by:  root at mediamonks dot net
 Reported By:  root at mediamonks dot net
-Status:   Feedback
+Status:   Open
 Bug Type: Session related
 Operating System: FreeBSD 4.11-STABLE
 PHP Version:  5CVS-2005-03-21
 New Comment:

Every time I tried, I downloaded the latest stable CVS snapshot and
deleted the old dirs.

php5-200503220330 does not change anything about the error or the
effects.


Previous Comments:


[2005-03-21 23:39:02] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2005-03-21 23:37:42] [EMAIL PROTECTED]

You tried it with latest CVS snapshot? Fresh sources?
(delete config.cache always before reconfigure, and 'make clean' before
'make')
 



[2005-03-21 12:21:55] root at mediamonks dot net

does not change anything



[2005-03-21 11:13:32] [EMAIL PROTECTED]

Try without --enable-versioning



[2005-02-28 20:35:35] root at mediamonks dot net

'./configure' '--enable-versioning' '--enable-memory-limit'
'--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php'
'--disable-all' '--enable-libxml' '--with-libxml-dir=/usr/local'
'--enable-session' '--enable-spl' '--with-regex=php' '--disable-cli'
'--with-apxs2=/usr/local/sbin/apxs' '--disable-ipv6'
'--prefix=/usr/local' 

and

'./configure' '--enable-versioning' '--enable-memory-limit'
'--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php'
'--disable-all' '--enable-libxml' '--with-libxml-dir=/usr/local'
'--with-mm' '--enable-session' '--enable-spl' '--with-regex=php'
'--disable-cli' '--with-apxs2=/usr/local/sbin/apxs' '--disable-ipv6'
'--prefix=/usr/local'



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/31984

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