#32360 [NEW]: Unicode support

2005-03-18 Thread vogje01 at ca dot com
From: vogje01 at ca dot com
Operating system: Win2k3
PHP version:  5CVS-2005-03-18 (dev)
PHP Bug Type: Ingres II related
Bug description:  Unicode support

Description:

Hi,
I tried to compile php5-200503170530 with ingres support on Win2k3 using
VC7 (.net). I found out that unicode (nchar and nvarchar are not
supported.

The following lines should be added to ext\ingres_ii\ii.c

1287,1293c1287
 #ifdef WIN32  
   case IIAPI_NVCH_TYPE:   
/* variable length unicode character string
*/
   case IIAPI_NCHA_TYPE:   
/* variable length unicode character string
*/
   len = 
wcslen((columnData[k - 1]).dv_value)*sizeof( WCHAR);
   
IIAPI_CONVERT(IIAPI_CHA_TYPE, len, 0);
   /* NO break */
 #endif
---
   
Could you please add the new lines? Currently I only tested win32. I will
also test on Linux and Solaris.

Best regards
Dr. Jens Vogt


Reproduce code:
---
$intext = This is a unicode test: öäüèàé;
$db = ingres_connect('iidbdb', $user, $passwd);

$query = create table temp ( name nvarchar(50) );
ingres_query( $query, $db );

$query = insert into temp (name) values('{$intext}');
ingres_query( $query, $db );

$query = select name from temp;
ingres_query( $query, $db );

$row = ingres_fetch_row( $db );
$outtext = trim($row[1]);

$query = drop table temp;
ingres_query( $query, $db );

echo Outext: {$outtext}\n;

Expected result:

This is a unicode test: öäüèàé

Actual result:
--
Garbage...

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


#32311 [Fbk-Opn]: mb_encode_mimeheader does not properly escape characters

2005-03-18 Thread mortoray at ecircle-ag dot com
 ID:   32311
 User updated by:  mortoray at ecircle-ag dot com
 Reported By:  mortoray at ecircle-ag dot com
-Status:   Feedback
+Status:   Open
 Bug Type: mbstring related
 Operating System: Windows2000
 PHP Version:  4.3.10
 New Comment:

I tried the snapshot and got the same results.  What appears to be
happening is that the encoders detection of disallowed characters does
not include the escape sequences required to do the encoding.

That is, as long as the string is 7-bit ASCII no encoding is ever done,
even if a MIME escape occurs in the source string, no encoding will be
done.

From the reproduction, it is obviously expected that a MIME escape
sequence will also be properly encoded.


Previous Comments:


[2005-03-17 18:09:26] [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-03-16 07:11:03] mortoray at ecircle-ag dot com

The snapshop provided does not contain an php_mbstring.dll, and thus
this function does not appear to be defined (Windows ZIP)



[2005-03-16 00:58:48] [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-03-15 10:30:51] mortoray at ecircle-ag dot com

Description:

At least for Q encoding, this function is unsafe and does not encode
correctly. Raw characters which appear as RFC2047 sequences are simply
left as is.

Ex:

mb_encode_mimeheader( '=?iso-8859-1?q?this=20is=20some=20text?=' );

returns '=?iso-8859-1?q?this=20is=20some=20text?='

The exact same string, which is obviously not the encoding for the
source string.  That is, mb_encode_mimeheader does not do any type of
escaping.

That is, the following condition is not always true:
mb_decode_mimeheader( mb_encode_mimeheader( $text ) ) == $text

Reproduce code:
---
$text = '=?iso-8859-1?q?this=20is=20some=20text?=';

assert( mb_decode_mimeheader( mb_encode_mimeheader( $text ) ) == $text
);

Expected result:

The decode/encode sequence should always return the original text.


Actual result:
--
Returned result is different than original (that is, the assertion
fails).






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


#32358 [Opn-Bgs]: GD Functionality Missing JPEG

2005-03-18 Thread sniper
 ID:   32358
 Updated by:   [EMAIL PROTECTED]
 Reported By:  kklee at cbs dot com
-Status:   Open
+Status:   Bogus
 Bug Type: GD related
 Operating System: Linux Fedora Core 3
 PHP Version:  4.3.10
 New Comment:

You have to install the -devel RPMs too.



Previous Comments:


[2005-03-18 06:38:08] kklee at cbs dot com

Description:

When I ran an standard ./configure --with-zlib --with-gd
--with-jpeg-dir=/usr --with-png-dir=/usr I am able to create PNG
images but not JPEG images.  The symptoms I experienced are:

1. imagepng() works but imagejpeg() does not
2. phpinfo() does not show JPG Support enabled under the GD module

I have tried the gd-2.0.28 and gd-2.0.32-3.rpm from Fedora Core
installed.  I also have libjpeg-6b-33 and libpng-1.2.7-1 rpms
installed.

I couldn't figure out what else to try to I compiled php 4.3.9 with the
exact same options and all JPEG features listed above works.  Am I the
only one unable to utilize JPEG in 4.3.10?  Sorry for the neophyte bug
report but I could not find the related bug in your bug database.








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



#25876 [Opn-Fbk]: session_start(): Failed to initialize storage module

2005-03-18 Thread sniper
 ID:   25876
 Updated by:   [EMAIL PROTECTED]
 Reported By:  golden at riscom dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Session related
 Operating System: freebsd 4.8
 PHP Version:  4.3.9-4.3.10
-Assigned To:  
+Assigned To:  sniper
 New Comment:

See bug #32330 for similar issue. Do you use session_destroy()
anywhere? Or session_decode()? 



Previous Comments:


[2005-03-16 10:24:06] meier at schnubbelchen dot de

Same problem (not reproducable always) on Apache 1.3.33, PHP 4.3.10,
enough Space in /tmp, permissions OK

/configure --prefix=/usr --with-apxs=/usr/local/apache/bin/apxs
--enable-cli --with-config-file-path=/etc --enable-safe-mode
--with-exec-dir=/usr/bin --with-mysql=/usr --with-zlib
--with-xml --enable-wddx --with-gd --with-imap-ssl --enable-shared
--with-pear --with-ldap --with-ldap-sasl --with-gettext --with-imap
--with-mcrypt --with-openssl --with-dom --enable-ftp --with-snmp



[2005-03-10 20:42:46] dmih at in-solve dot ru

I can confirm this.
We are hosting privider, 5+ servers with PHP sites.

* Apache 1.3.33 / PHP 4.3.9, mod_php.
* Session folder is OK, rather empty.
* Bug is not related to Zend Optmiziser, not installed.
* Under heavy load this bug freqency increases, more than just to
reflect increased load.
* I cannot approve or reject wherever CGI PHP is affected by this bug.
I suspect that it is not affected.



[2005-03-08 15:35:18] xtrange at gmail dot com

In the php.ini I put:

register_argc_argv = On

...and problem solved!



[2005-03-03 21:26:59] reaper at fudo dot org

To follow up to myself:

my problem was that in php.ini i had:
session.save_handler = user

This is not the default.  The default setting, that works for me, is:
session.save_handler = files

It was changed by a fellow admin, and i was unaware of this.  Changing
the setting back to teh defualt allowed everything to work exactly as
it should.



[2005-03-03 21:09:30] reaper at fudo dot org

I am experiencing the same thing with apache 2.0.53, php 4.3.10, and
linux 2.6 (debian).

I notice that there is no real fix, and that this problem is
persistent.  I will investigate further, but is this a real problem or
not?  If it is, it should be dealt with.



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

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


#32343 [Bgs]: oci8.so problem

2005-03-18 Thread Gustavo_Portillo at cantv dot net
 ID:   32343
 User updated by:  Gustavo_Portillo at cantv dot net
 Reported By:  Gustavo_Portillo at cantv dot net
 Status:   Bogus
 Bug Type: OCI8 related
 Operating System: suse 9.1
 PHP Version:  4.3.10
 New Comment:

Ok, thanks.

  Have you any rmp that conntain the oci8.so?

Greetings


Previous Comments:


[2005-03-17 09:43:02] [EMAIL PROTECTED]

We don't support any binary releases which we don't release ourselves..
Ask SUSE support for help.




[2005-03-16 22:01:03] Gustavo_Portillo at cantv dot net

Description:

Good Afternoon.

   I need connect to a oracle 9 database from a php page.

   I installed oracle 9.2.0 client on my web sever, when I try to run
the php-oci8-4.3.2-19.ent.O9206.i386.rpm its fail. The oracle client
was installed ok, you can connect to the data base using sqplplus.

  I wish use oci8.so to connect to the data base, but oci8.so not
exists in /usr/lib/php/extension paht, toh solve this I tried to run
php-oci8-4.3.2-19.ent.O9206.i386.rpm but it´s fail an show the
message:

warning: php-oci8-4.3.2-19.ent.O9206.i386.rpm: V3 DSA signature: NOKEY,
key ID 0c98ff9d
error: Failed dependencies:
 libclntsh.so.9.0 is needed by php-oci8-4.3.2-19.ent.O9206

  I don´t know wath is happend. The variable LD_LIBRERY_PATH, was
defined in .bashrc file, and it's contain : export
LD_LIBRARY_PATH=$ORACLE_HOME/lib.

   If you could help me it´s going to be very pretiated.

Greettings

Gustavo.


Reproduce code:
---
rpm -ivh php-oci8-4.3.2-19.ent.O9206.i386.rpm


Expected result:

warning: php-oci8-4.3.2-19.ent.O9206.i386.rpm: V3 DSA signature: NOKEY,
key ID 0c98ff9d
error: Failed dependencies:
 libclntsh.so.9.0 is needed by php-oci8-4.3.2-19.ent.O9206


Actual result:
--
warning: php-oci8-4.3.2-19.ent.O9206.i386.rpm: V3 DSA signature: NOKEY,
key ID 0c98ff9d
error: Failed dependencies:
 libclntsh.so.9.0 is needed by php-oci8-4.3.2-19.ent.O9206






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


#32361 [NEW]: connection oci_connect stay persist after process the php

2005-03-18 Thread diego dot veiga at embraer dot com dot br
From: diego dot veiga at embraer dot com dot br
Operating system: fedora 3
PHP version:  5.0.2
PHP Bug Type: Oracle related
Bug description:  connection oci_connect stay persist after process the php

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:

In php4.3.4
monitoring the status of connection with netstat the webserver connect and
disconnect to the server ORA_P:

while true; do netstat | grep ORA_P; echo; sleep 1; done

tcp0  0 webserver:32896   ORA_P:1521 ESTABLISHED

tcp0  0 webserver:32896   ORA_P:1521 ESTABLISHED

tcp0  0 webserver:32896   ORA_P:1521 ESTABLISHED

tcp0  0 webserver:32896   ORA_P:1521 TIME_WAIT

tcp0  0 webserver:32896   ORA_P:1521 TIME_WAIT

tcp0  0 webserver:32896   ORA_P:1521 TIME_WAIT

In 5.0.2
monitoring 

#32313 [Csd-Bgs]: mb_decode_mimeheader drops encoded parts

2005-03-18 Thread moriyoshi
 ID:   32313
 Updated by:   [EMAIL PROTECTED]
 Reported By:  mortoray at ecircle-ag dot com
-Status:   Closed
+Status:   Bogus
 Bug Type: mbstring related
 Operating System: Windows2000
 PHP Version:  4.3.10
 New Comment:

Not a bug = bogus


Previous Comments:


[2005-03-18 07:32:41] mortoray at ecircle-ag dot com

moriyoshi is correct.  I had another case of text not showing up, but
as I am unable to reproduce it again, we can assume I made a mistake.



[2005-03-18 01:44:01] [EMAIL PROTECTED]

Probably you are trying to show the result in your 
browser. every  and the enclosed string form a tag 
that won't be visible.



[2005-03-17 18:09:21] [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-03-16 07:09:46] mortoray at ecircle-ag dot com

The snapshop provided does not contain an php_mbstring.dll, and thus
this function does not appear to be defined



[2005-03-16 00:45:44] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





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

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


#30160 [Com]: Installing PHP SAPI module fails

2005-03-18 Thread jcmauroux at bluewin dot ch
 ID:   30160
 Comment by:   jcmauroux at bluewin dot ch
 Reported By:  tessarek at evermeet dot cx
 Status:   Open
 Bug Type: Compile Failure
 Operating System: AIX 5.x
 PHP Version:  5CVS-2005-03-08
 New Comment:

same problem AIX 5.1.0.0 with Apache Version 2.0.53. Do you have a
solution?


$ make install
Installing PHP SAPI module:   apache2handler
/ssw/apache-2.0.53/build/instdso.sh
SH_LIBTOOL='/ssw/apache-2.0.53/build/libtool' libphp5.la
/ssw/apache-2.0.53/modules
rm -f /ssw/apache-2.0.53/modules/libphp5.so
/ssw/apache-2.0.53/build/libtool --mode=install cp libphp5.la
/ssw/apache-2.0.53/modules/
cp .libs/libphp5.a /ssw/apache-2.0.53/modules/libphp5.a
cp .libs/libphp5.lai /ssw/apache-2.0.53/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish
/ssw/apache-engineering/source/php-5.0.3/libs'
chmod 755 /ssw/apache-2.0.53/modules/libphp5.so
chmod: /ssw/apache-2.0.53/modules/libphp5.so: A file or directory in
the path name does not exist.
apxs:Error: Command failed with rc=65536
.
make: 1254-004 The error code from the last command is 1.


Stop.


Previous Comments:


[2005-03-10 16:57:34] dave at neteffekt dot co dot uk

I have excatly the same problem on my mandrake 10.1 community version,
however I have recently update the version of gcc to 3.4.3

I dont think that will be the issue though because I have compiled just
about everything else under the sun today doing a new server install,
which is now taking 5 times a long as it should

Just what I need after being up so late working on a mail server :(



[2005-03-09 15:08:22] tessarek at evermeet dot cx

Very interesting. PHP4 does not install either:

vulcan14:[root] /ext/php4-STABLE-200503091130 make install
Installing PHP SAPI module:   apache2filter
/opt/apache/build/instdso.sh SH_LIBTOOL='/opt/apache/build/libtool'
libphp4.la /opt/apache/modules
rm -f /opt/apache/modules/libphp4.so
/opt/apache/build/libtool --mode=install cp libphp4.la
/opt/apache/modules/
cp .libs/libphp4.a /opt/apache/modules/libphp4.a
cp .libs/libphp4.lai /opt/apache/modules/libphp4.la
libtool: install: warning: remember to run `libtool --finish
/ext/php4-STABLE-200503091130/libs'
chmod 755 /opt/apache/modules/libphp4.so
chmod: /opt/apache/modules/libphp4.so: A file or directory in the path
name does not exist.
apxs:Error: Command failed with rc=65536
.
make: 1254-004 The error code from the last command is 1.


Stop.


I think I can remember that there was a time when PHP4.x installed
without problems on AIX.
You said that the Apache2 instdso.sh script could be responsible for
the error. I was able to compile and install Apache2 without problems
on AIX and I'm pretty sure that the Apache install uses the instdso.sh
script aswell.

The point is that the .so module is in the .libs directory and I can
move or copy it manually into the Apache modules directory but that
solves the problem only partially. The binary and the pear stuff are
not installed in the target directory, if the 'make install' stops
where it actually does.



[2005-03-09 01:02:55] [EMAIL PROTECTED]

IIRC, this was actually caused by the Apache2 instdso.sh script. But
I'm not sure and can't check it right now.

Does the latest PHP 4 snapshots work for you on AIX?




[2005-03-08 15:52:46] tessarek at evermeet dot cx

It works on Fedora Core 3 with gcc (GCC) 3.4.2 20041017 (Red Hat
3.4.2-6.fc3).

No problems with make install:

Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).

[EMAIL PROTECTED] php5-200503081130]$ make install
Installing PHP SAPI module:   apache2filter
/usr/lib/httpd/build/instdso.sh SH_LIBTOOL='/bin/sh
/usr/lib/apr/build/libtool' libphp5.la /usr/lib/httpd/modules
/bin/sh /usr/lib/apr/build/libtool --mode=install cp libphp5.la
/usr/lib/httpd/modules/
cp .libs/libphp5.so /usr/lib/httpd/modules/libphp5.so
cp .libs/libphp5.lai /usr/lib/httpd/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish
/ext/php5-200503081130/libs'
chmod 755 /usr/lib/httpd/modules/libphp5.so
[activating module `php5' in /etc/httpd/conf/httpd.conf]
Installing PHP CLI binary:/opt/php5/bin/
Installing PHP CLI man page:  /opt/php5/man/man1/
Installing PEAR environment:  /opt/php5/lib/php/
[PEAR] Archive_Tar: 'xml' PHP extension is not installed
[PEAR] Console_Getopt: 'xml' PHP extension is not installed
[PEAR] PEAR: 'xml' PHP extension is not installed
[PEAR] XML_RPC: 'xml' PHP extension is not installed
Installing build environment: /opt/php5/lib/php/build/
Installing header files:  /opt/php5/include/php/
Installing helper programs:   /opt/php5/bin/
  program: phpize
  program: 

#32349 [Fbk-Opn]: basename with \

2005-03-18 Thread zamorov at edinorog dot ru
 ID:   32349
 User updated by:  zamorov at edinorog dot ru
 Reported By:  zamorov at edinorog dot ru
-Status:   Feedback
+Status:   Open
 Bug Type: Filesystem function related
 Operating System: FreeBSD
-PHP Version:  4.3.10
+PHP Version:  php4-STABLE-200503181130
 New Comment:

That problem remained open.


Previous Comments:


[2005-03-17 09:34:06] [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-03-17 09:28:13] zamorov at edinorog dot ru

Description:

basename not work correctly with windows path

Reproduce code:
---
$win = basename('C:\Windows\win.ini');
$unix = basename('/usr/local/etc/win.ini');

Expected result:

$win = 'win.ini';
$unix = 'win.ini';

Actual result:
--
$win = 'C:\Windows\win.ini';
$unix = 'win.ini';





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



#32362 [NEW]: Some functions to manipulate include_path (or any path list in general)

2005-03-18 Thread ceefour at gauldong dot net
From: ceefour at gauldong dot net
Operating system: All
PHP version:  5.0.3
PHP Bug Type: Feature/Change Request
Bug description:  Some functions to manipulate include_path (or any path list 
in general)

Description:

include_path *is* complex. How do you add something to include path
without detecting the operating system first? How do you remove something
from the include path?
It would be great if PHP has an API that allows manipulation of include
paths as array.

include_path is so tied to the operating system platform and many
libraries have tried to autodetect the platform and map it to a path
separator (usually ';' for Windows and ':' for non-Windows, but you can
easily see that even my statement is wrong, as is not always the case).
How to separate paths in Mac? It uses ':' as the path element separator,
so? (I don't know the answer).

Adding a constant for path separator ('/', '\', ...) and path list
separator (';', ':', ...) would partly solve the problem. It'll be even
better if there are some functions to manipulate them. Of course not tied
to include_path, but general functions to manipulate any path list, since
they're very often used, like for manipulating the PATH environment
variable, and other stuff.


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


#32349 [Opn-Bgs]: basename with \

2005-03-18 Thread johannes
 ID:   32349
 Updated by:   [EMAIL PROTECTED]
 Reported By:  zamorov at edinorog dot ru
-Status:   Open
+Status:   Bogus
 Bug Type: Filesystem function related
 Operating System: FreeBSD
 PHP Version:  php4-STABLE-200503181130
 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

Qutiong php.net/basename 
 
On Windows, both slash (/) and backslash (\) are used as 
directory separator character. In other environments, it is 
the forward slash (/). 


Previous Comments:


[2005-03-18 14:41:29] zamorov at edinorog dot ru

That problem remained open.



[2005-03-17 09:34:06] [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-03-17 09:28:13] zamorov at edinorog dot ru

Description:

basename not work correctly with windows path

Reproduce code:
---
$win = basename('C:\Windows\win.ini');
$unix = basename('/usr/local/etc/win.ini');

Expected result:

$win = 'win.ini';
$unix = 'win.ini';

Actual result:
--
$win = 'C:\Windows\win.ini';
$unix = 'win.ini';





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


#27908 [Com]: xml default_handlers not being called when using libxml (works fine with expat)

2005-03-18 Thread werner at esmt dot org
 ID:   27908
 Comment by:   werner at esmt dot org
 Reported By:  ahundiak at ingr dot com
 Status:   Verified
 Bug Type: XML related
 Operating System: *
 PHP Version:  5CVS-2005-03-06
 New Comment:

..but what can i do, if i want to run my current php4 
applications with php5 and other webs the new libxml2 
stuff? its not really a solution, only a workaround ...


Previous Comments:


[2005-03-06 19:45:41] [EMAIL PROTECTED]

It is a bug in the compatibility layer used when ext/xml is build with
libxml2. It works fine with expat. 




[2004-04-07 12:34:00] ahundiak at ingr dot com

Description:

As the test case shows, it does not appear that the default handler is
being called under PHP5RC1.  The other handlers seem to work but the
default handler is required to get the document type line.  PHP4.3.5
works. Using libxml2 2.6.5.



Reproduce code:
---
function x_default_handler($xp,$data) 
{ 
echo x_default_handler $data\n; 
} 
$xp = xml_parser_create(); 
xml_set_default_handler($xp,'x_default_handler'); 
xml_parse($xp,'root/root',TRUE); 
xml_parser_free($xp); 
echo Parse Test  . PHP_VERSION .  Done\n; 


Expected result:

x_default_handler root 
x_default_handler /root 
Parse Test 5.0.0RC1 Done 


Actual result:
--
Parse Test 5.0.0RC1





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


#32363 [NEW]: socket_bind can't bind

2005-03-18 Thread motion_4u at hotmail dot com
From: motion_4u at hotmail dot com
Operating system: Apache 2 on win2k
PHP version:  5.0.3
PHP Bug Type: Sockets related
Bug description:  socket_bind can't bind

Description:

socket_bind() function on Apache2/ Win2k can't bind

Reproduce code:
---
$dest=127.0.0.1;
$port=80;
//daemon in UDP
$socketD = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP); 

if($socketD === FALSE) { // something went wrong
   echo 'socket_create failed:
'.socket_strerror(socket_last_error()).\n;
   exit(1);
   } 
   /*
   This is the second option but still doesn't work
   if(!socket_bind($socketD, 0.0.0.0, 27123)) 
   */
   if(!socket_bind ($socketD, 0, $port))
   {
   socket_close($socketD);
   echo 'socket_bind failed: '.socket_strerror(socket_last_error()).\n;
exit(1);
   }

Expected result:

This is the PHP error message:
Warning: socket_bind() [function.socket-bind]: unable to bind address
[0];

I realy dug into the documentations and examples and find it hard to
believe that I do something wrong. The warning message explains that the
socket it already binded and cannot be used twice :((


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


#29378 [Com]: foreach() doesn't work with arrays returned by __get

2005-03-18 Thread jrhernandez05 at gmail dot com
 ID:   29378
 Comment by:   jrhernandez05 at gmail dot com
 Reported By:  chernyshevsky at hotmail dot com
 Status:   No Feedback
 Bug Type: Zend Engine 2 problem
 Operating System: Windows 2000
 PHP Version:  5.0.0
 New Comment:

I have tried the original reproduce code using the latest PHP snapshot,
and have also tried it using some similar code I'm using in my
application, and it's working fine now! My environment is Windows 2000
using Apache2.


Previous Comments:


[2005-03-14 01:00:20] php-bugs at lists dot php dot net

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.



[2005-03-06 20:52:40] [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-02-11 15:42:50] l0cky at jolt dot co dot uk

The simplest solution I have is

//Copy works
foreach($array = $object-array as $element)
{
print($element);
}

However, if you want to access the array elements by reference instead
of copy, then you're in trouble.

Even this produces the same error:

$array_ref = $object-array;



[2004-10-25 23:14:57] benneh at gmail dot com

I've just run into this problem, here is my test case

Testcase:
-
class Language {
private $lang_bits = array(); 
public function __get($lang_bit) {
global $$lang_bit;

if(!isset($this-lang_bits[$lang_bit])) {
$this-lang_bits[$lang_bit] = $$lang_bit;
}
return $this-lang_bits[$lang_bit];
}
}

$page = array('bla' = 'xyz');
$lang = new Language;
foreach($lang-page as $lang_key = $lang_bit) {
echo $lang_key.' = '.$lang_bit;
}

Expected Results :
--
bla = xyz

Actual Results :

Fatal error: Cannot access undefined property for object with
overloaded property access
Just confirming its presence in 5.0.2 WinXP SP2 Apache 1.3.31



[2004-07-28 01:02:28] chernyshevsky at hotmail dot com

I know the class doesn't have a member called 'cows'. That's what
__get() and __set() is for after all. If I change the code to

$O-cows = array(Betty, Agnes, Jeff);
$temp = $O-cows;
foreach($temp as $cow) {
echo div$cow/div;
}

Now why should it fail just because the property access is through
foreach()?



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

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


#32364 [NEW]: Alternate info for PHP install on Mac OS X

2005-03-18 Thread ofho-xbtb at spamex dot com
From: ofho-xbtb at spamex dot com
Operating system: irrelevant
PHP version:  Irrelevant
PHP Bug Type: Unknown/Other Function
Bug description:  Alternate info for PHP install on Mac OS X

Description:

The PHP.net site only links to the entropy.ch web site
(http://www.entropy.ch/software/macosx/php/) for installation instructions
for PHP on Mac OS X.  (see http://www.php.net/downloads.php)

Apple provides excellent information for installing/configuring PHP in Mac
OS X.  I believe that a link to Apple's PHP page would be an appropriate
addition to the PHP.net downloads page:

http://developer.apple.com/internet/opensource/php.html

Cheers,

- Orest

Reproduce code:
---
n/a

Expected result:

n/a

Actual result:
--
n/a

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


#32363 [Opn-Bgs]: socket_bind can't bind

2005-03-18 Thread sniper
 ID:   32363
 Updated by:   [EMAIL PROTECTED]
 Reported By:  motion_4u at hotmail dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Sockets related
 Operating System: Apache 2 on win2k
 PHP Version:  5.0.3
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.




Previous Comments:


[2005-03-18 17:36:56] motion_4u at hotmail dot com

Description:

socket_bind() function on Apache2/ Win2k can't bind

Reproduce code:
---
$dest=127.0.0.1;
$port=80;
//daemon in UDP
$socketD = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP); 

if($socketD === FALSE) { // something went wrong
   echo 'socket_create failed:
'.socket_strerror(socket_last_error()).\n;
   exit(1);
   } 
   /*
   This is the second option but still doesn't work
   if(!socket_bind($socketD, 0.0.0.0, 27123)) 
   */
   if(!socket_bind ($socketD, 0, $port))
   {
   socket_close($socketD);
   echo 'socket_bind failed:
'.socket_strerror(socket_last_error()).\n;
exit(1);
   }

Expected result:

This is the PHP error message:
Warning: socket_bind() [function.socket-bind]: unable to bind address
[0];

I realy dug into the documentations and examples and find it hard to
believe that I do something wrong. The warning message explains that
the socket it already binded and cannot be used twice :((






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


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

2005-03-18 Thread sniper
 ID:   32361
 Updated by:   [EMAIL PROTECTED]
 Reported By:  diego dot veiga at embraer dot com dot br
-Status:   Open
+Status:   Feedback
 Bug Type: Oracle related
 Operating System: fedora 3
 PHP Version:  5.0.2
 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-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:

In php4.3.4
monitoring the status of connection with netstat the webserver connect
and disconnect to the server ORA_P:

while true; do netstat | grep ORA_P; echo; sleep 1; done

tcp0  0 webserver:32896   ORA_P:1521
ESTABLISHED

tcp0  0 

#32350 [Opn-Csd]: call_user_func_array() with parent causing loop and calls incorrect method

2005-03-18 Thread sniper
 ID:   32350
 Updated by:   [EMAIL PROTECTED]
 Reported By:  wb at pro-net dot co dot uk
-Status:   Open
+Status:   Closed
 Bug Type: *General Issues
 Operating System: FreeBSD 5.2.1
 PHP Version:  5.0.3
 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-17 12:56:28] wb at pro-net dot co dot uk

Description:

When trying to use call_user_func_array() to call a parent method php
calls the current class method and therefore goes into a loop.

Reproduce code:
---
?php
class a {
public function xyz () {
$args = func_get_args();
print(\n\na:\n);
var_export($args);
}
}
class b extends a {
public function xyz () {
$args = func_get_args();
print(\n\nb:\n);
var_export($args);
call_user_func_array(array('parent', 'xyz'), $args);   
}   
}
$b = new b();
$b-xyz('zero', 'one', 'two', 'three', 'four');
?

Expected result:

b:
array (
  0 = 'zero',
  1 = 'one',
  2 = 'two',
  3 = 'three',
  4 = 'four',
)

a:
array (
  0 = 'zero',
  1 = 'one',
  2 = 'two',
  3 = 'three',
  4 = 'four',
)

Actual result:
--
b:
array (
  0 = 'zero',
  1 = 'one',
  2 = 'two',
  3 = 'three',
  4 = 'four',
)

b:
array (
  0 = 'zero',
  1 = 'one',
  2 = 'two',
  3 = 'three',
  4 = 'four',
)

b:
array (
  0 = 'zero',
  1 = 'one',
  2 = 'two',
  3 = 'three',
  4 = 'four',
)

... [Inf loop]





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


#32346 [Opn-Fbk]: syntax error, unexpected T_WHITESPACE in every script

2005-03-18 Thread sniper
 ID:   32346
 Updated by:   [EMAIL PROTECTED]
 Reported By:  zxd at zhangxiaodong dot net
-Status:   Open
+Status:   Feedback
 Bug Type: Compile Failure
 Operating System: RedHat Linux AS3 2.4.21-20 i686
 PHP Version:  5.0.3
 New Comment:

What GCC version do you have? flex? bison?



Previous Comments:


[2005-03-17 02:39:53] zxd at zhangxiaodong dot net

Description:

   configure/make from a folder out of PHP package folder will success
but fail when make install with error like syntax error, unexpected
T_WHITESPACE in .../pear/install-pear.php.  
and sapi/cgi/php, sapi/cli/php will say same error on every
script.

   

Reproduce code:
---
1. tar xzf php-5.0.3.tar.gz
2. mkdir obj
3. cd obj
4. ../php-5.0.3/configure
5. make
6. find -name php
7. cd sapi/cgi
8. vi t.php as this:
   ?php

  echo hello\n;

   ?
9. ./php t.php

Expected result:

hello

Actual result:
--
Content-type: text/html
X-Powered-By: PHP/5.0.3

br /
bParse error/b:  syntax error, unexpected T_WHITESPACE in
b/root/obj/sapi/cgi/t.php/b on line b3/bbr /






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


#32339 [Opn-Bgs]: apache crash when try to serialize an object with a reflection class in

2005-03-18 Thread sniper
 ID:   32339
 Updated by:   [EMAIL PROTECTED]
 Reported By:  fdussert at gmail dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Reproducible crash
 Operating System: win xp sp1
 PHP Version:  5.0.1
 New Comment:

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

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




Previous Comments:


[2005-03-16 22:52:07] fdussert at gmail dot com

i think the crash appened cose i have a __call method in my object and
when i put it in session __call catch the __sleep call.



[2005-03-16 16:27:02] fdussert at gmail dot com

Description:

hello,
i'm using php 5.01 on apache 2.
I've a class with an attribute which is a reflection class instance.
I put a __call method to be able to manipulate my reflection class
instance.
I don't know if apache crash cose there's no __sleep method in my
reflection class instance or cose i try to put my class in a session
var.
thanks 
PS : sorry for my english, i'm french


Reproduce code:
---
function __construct($serv,$clname)
{
$this-serv = $serv;
$this-ref  = new ReflectionClass($clname);
$this-instance = $this-ref-newInstance($serv);
}

Actual result:
--
apache crash





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


#32338 [Opn-Fbk]: 'UTF-8' badly supported by html_entity_decode ()

2005-03-18 Thread sniper
 ID:   32338
 Updated by:   [EMAIL PROTECTED]
 Reported By:  webmaster at reddi dot de
-Status:   Open
+Status:   Feedback
 Bug Type: Strings related
 Operating System: Linux infong 2.4
 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-16 16:17:21] webmaster at reddi dot de

Description:

Where 
html_entity_decode ( 'fnof;', ENT_NOQUOTES, 'ISO-8859-1') 
yields the expected result,


html_entity_decode ( 'fnof;', ENT_NOQUOTES, 'UTF-8') 

does NOT.

Reproduce code:
---
?= html_entity_decode ( 'fnof;', ENT_NOQUOTES, 'UTF-8') ; ?


Expected result:

ƒ

/* which is 402 0192LATIN SMALL LETTER F WITH HOOK   (entity name is
fnof;) */

Actual result:
--
#400;

/* which is 400 0190LATIN CAPITAL LETTER OPEN E */





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


#32333 [Opn-Bgs]: Unable to perform command line build

2005-03-18 Thread sniper
 ID:   32333
 Updated by:   [EMAIL PROTECTED]
 Reported By:  grant dot croker at ca dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Ingres II related
 Operating System: Windows
 PHP Version:  5CVS-2005-03-16 (dev)
 New Comment:

Bogusing this report as duplicate of bug #32359 which has a patch.



Previous Comments:


[2005-03-16 14:36:48] grant dot croker at ca dot com

a patch has been submitted to internals at php dot net



[2005-03-16 13:13:56] grant dot croker at ca dot com

Description:

'--with-ingres' is missing from 'cscript /nologo configure.js --help'.
Looking in ext/ingres_ii it would appear there is no config.w32.

Expected result:

Ingres to be included for building.

Actual result:
--
Unknown option --with-ingres; please try configure.js --help for a list
of valid options.





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


#32327 [Opn-Fbk]: Inherited DirectoryIterator and permissions failure causes segfault

2005-03-18 Thread sniper
 ID:   32327
 Updated by:   [EMAIL PROTECTED]
 Reported By:  tm at iprog dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Reproducible crash
 Operating System: os x 10.3 / linux 2.4
 PHP Version:  5.0.3
 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-03-15 22:38:07] tm at iprog dot com

Description:

Tested on PHP 5.0.3 on Mac OS X 10.3.8 and also PHP 5.0.2 on Linux
2.4.22.  Reproducible from inside Apache and also on command line via
PHP-CLI.

To reproduce, do the following:
% mkdir breakme
% chmod -r breakme
% php crash1.php

Because of the lack of permissions on directory 'breakme', the script
will segfault.  If breakme has read perms, the script executes fine. 
Additionally, if line 14 of the script is changed to:
  $rdir = new resourcedir('./breakme');
then an exception is generated.  However, for some reason it is not
being generated with the example as provided.

Reproduce code:
---
?php
class resourcedir extends DirectoryIterator {
  public function __construct($newdir) {
print __c:$newdir\n;
parent::__construct($newdir);
  }
  public function current() {
parent::current();
if ($this-isDir())
  return new resourcedir($this-getpathname());
return null;
  }
}
$rdir = new resourcedir('.');
foreach ($rdir as $res)
  if (is_object($res))
print 'dir:'.$res-getPathname().\n;
?


Expected result:

A basic directory listing w/o a seg fault.

Actual result:
--
The directory listing up until it hits the restricted directory and
then a seg fault.  

From OS X's crash log (when running via apache):

Date/Time:  2005-03-15 14:21:52 -0700
OS Version: 10.3.8 (Build 7U16)
Report Version: 2

Command: httpd
Path:/usr/sbin/httpd
Version: ??? (???)
PID: 29678
Thread:  0

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:  KERN_PROTECTION_FAILURE (0x0002) at 0x0008

Thread 0 Crashed:
0   libphp5.so  0x02e0c664 zend_fe_fetch_handler + 0x5c8
1   libphp5.so  0x02e03178 execute + 0x1f0
2   libphp5.so  0x02dd0d58 zend_execute_scripts + 0x140
3   libphp5.so  0x02d73d68 php_execute_script + 0x380
4   libphp5.so  0x02e134d8 apache_php_module_main + 0xd4
5   libphp5.so  0x02e14818 send_php + 0x380
6   libphp5.so  0x02e14898 send_parsed_php + 0x28
7   httpd   0xdbbc ap_invoke_handler + 0xe8
8   httpd   0x00017c6c process_request_internal + 0x280
9   httpd   0x00017cec ap_process_request + 0x48
10  httpd   0x6a10 child_main + 0x69c
11  httpd   0x6c74 make_child + 0x138
12  httpd   0x6fa4 perform_idle_server_maintenance + 0x23c
13  httpd   0x7580 standalone_main + 0x3c4
14  httpd   0x7c24 main + 0x41c
15  httpd   0x27a8 _start + 0x188
16  httpd   0x261c start + 0x30






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


#32325 [Opn-Fbk]: Can't retrieve collection using OCI8

2005-03-18 Thread sniper
 ID:   32325
 Updated by:   [EMAIL PROTECTED]
 Reported By:  ldixon at communityconnect dot com
-Status:   Open
+Status:   Feedback
 Bug Type: OCI8 related
 Operating System: Fedora Core release 2 (Tettnang)
 PHP Version:  5.0.3
 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-03-15 20:42:06] ldixon at communityconnect dot com

Description:

SYS INFO

kernel: 2.6.10-1.14_FC2 #1
httpd:  apache2
Oracle:
SQL select * from v$version;
 
BANNER

Oracle Database 10g Release 10.1.0.3.0 - Production
PL/SQL Release 10.1.0.3.0 - Production
CORE10.1.0.3.0  Production
TNS for Linux: Version 10.1.0.3.0 - Production
NLSRTL Version 10.1.0.3.0 - Production

I can create a collection and pass it to oracle fine, but it crashes
everytime I try to read one.  I've tried several variations (select
from a nested table directly, bind :list  to and out param of a stored
proc, etc).  They all fail in the same way.



Reproduce code:
---
#!/usr/local/bin/php
?php
 
/*
create or replace type ut_num_list_t as table of number;
*/
 
$conn = oci_connect(ctk_main, ctk_main);
 
$sql  = 
begin
select ut_num_list_t(1,2,3,4) into :list from dual;
end;;
 
$stmt = oci_parse($conn, $sql);
 
$collection = oci_new_collection($conn, UT_NUM_LIST_T);
 
oci_bind_by_name($stmt, :list,  $collection, -1, OCI_B_NTY);
 
oci_execute($stmt);
?

Expected result:

I expect to be able to access the elements of $collection using
$collection-getElem(1), etc.

Actual result:
--
$ ./coll_test.php
kgepop: no error frame to pop to for error 21522
OCI-21522: attempted to use an invalid connection in OCI (object mode
only)
Errors in file :
OCI-21522: attempted to use an invalid connection in OCI (object mode
only)
 
 
- Call Stack Trace -
Cannot open /proc/4283/exe.
calling  call entryargument values in
hex
location type point(? means dubious
value)
  

Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
0107A607 CALL 00EAF428 107A536 ? 0 ?
8408FFC ?
   BFFF773C ? 14849BE
?
   8408FFC ?
014849BC CALLr 0 ? BFFF775C ?
01485135 CALL 014848DE BFFF777C ? 1484F3F
?
   8408FFC ?
01484F3A CALL 00E9BEC8 BFFF77C4 ? 131CA90
?
   8408FFC ? 840D2A4 ?
5412 ?
0131CA8B CALL 00EADF18 84ACADC ? 0 ?
84C0A50 ?
012A72B7 CALL 00E996E8 17EDF84 ? 84C062C ?
84670B4 ?   17EDF84 ?
84C062C ? 84670B4 ?012A6D31 CALL 012A708C
8408FFC ? 84670B4 ? 84BFE10 ?  
8469374 ? BFFF796C ?
   12A8115 ?
012A8113 CALLr 0 ? 0 ?
012BD5F5 CALL 00EB1BC8 18B0BFC ? 84ACB08 ?
0 ? 0 ?
   0 ? 0 

#32322 [Opn-Fbk]: OOP singleton instance

2005-03-18 Thread sniper
 ID:   32322
 Updated by:   [EMAIL PROTECTED]
 Reported By:  rickd at commando-pernod dot net
-Status:   Open
+Status:   Feedback
 Bug Type: Zend Engine 2 problem
 Operating System: Win2000
 PHP Version:  5.0.3
 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-03-15 21:03:10] rickd at commando-pernod dot net

same but static inside class function and cant be killed with
referencing, remember in the other code i dont use getinstance() so
the function do not return a reference how its describe in manual (
both need reference, caller and function code)

class test {
   static function getinstance() {
  static $instance;
  if ( $instance == null ) {
 $instance = new test();
  }
  return $instance;
   }
}
$user = test::getinstance();
$user = null; // dont destroy instance
$user = test::getinstance();
unset( $user ); // dont destroy instance



[2005-03-15 21:00:00] rickd at commando-pernod dot net

upps i did i typing mistake :

so i mean

class test {
   static private $instance = null;
   static function getinstance() {
  if ( self::$instance == null ) {
 self::$instance = new test();
  }
  return self::$instance;
   }
}
$user = test::getinstance();
$user = null; // destroy singleton instance
$user = test::getinstance();
unset( $user ); // dont destroy instance



[2005-03-15 20:29:41] [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

Please use support forums to get help with your singleton 
implementation... 



[2005-03-15 19:54:01] rickd at commando-pernod dot net

Description:

We use a user singleton instance for our cms user authed ids that
should not be able to killed from third party addons or worse coders so
easily, but accessable from all.

But when someone get the instance with reference it can be killed easy
with setting the reference var to null, unset dont work.

If you put the static $instance holder inside the getinstance()
function it seems to be work correct and cant be deleted from setting
reference to NULL



Reproduce code:
---
class test {
   static private $instance = null;
   static function getinstance() {
  if ( self::$instance == null ) {
 return new test();
  }
  return self::$instance;
   }
}
$user = test::getinstance();
$user = null; // destroy singleton instance
$user = test::getinstance();
unset( $user ); // dont destroy instance

Expected result:

singleton not destroying with setting a getted instance with
reference to null

Actual result:
--
singleton destroyed





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


#32321 [Opn-Fbk]: SQL state 00000 in SQLConnect

2005-03-18 Thread sniper
 ID:   32321
 Updated by:   [EMAIL PROTECTED]
 Reported By:  jogo_2 at yahoo dot com
-Status:   Open
+Status:   Feedback
 Bug Type: ODBC related
 Operating System: Windows XP
 PHP Version:  5.0.3
 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-03-15 19:46:57] jogo_2 at yahoo dot com

I also have installed mdac 2.8



[2005-03-15 19:42:16] jogo_2 at yahoo dot com

Description:

I'm using IIS from Windows XP and PHP 5.0.3

This code:

$cx = odbc_connect(BDNEO, , );

returns this error:

Warning: odbc_connect() [function.odbc-connect]: SQL error: , SQL state
0 in SQLConnect in D:\tr\webroot\neoturismo\prueba3.php on line 8


All my file permissions are right and there's no user or password.
I tried User DSN and System DSN, both with the same result

What am i doing wrong?








Reproduce code:
---
html
head
/head
body
/body
h1Prueba de BD/h1
?php
$cx = odbc_connect(BDNEO, , );
   odbc_close($cx);
?
/html

Expected result:

Connect to ODBC

Actual result:
--
Warning: odbc_connect() [function.odbc-connect]: SQL error: , SQL state
0 in SQLConnect in D:\tr\webroot\neoturismo\prueba3.php on line 8





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


#32320 [Opn-Fbk]: Problem with negative exponent handling

2005-03-18 Thread sniper
 ID:   32320
 Updated by:   [EMAIL PROTECTED]
 Reported By:  blucasco at gmail dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Output Control
 Operating System: FC3
 PHP Version:  5.0.3
 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

I have FC3, so..



Previous Comments:


[2005-03-16 16:56:01] blucasco at gmail dot com

I think that's a good thing (tm) if it outputs correctly for you --
perhaps it was some element of the build on FC3.   

But I must caution (before my bug gets immediately discounted), the
incorrect results in 5.0.3 listed here were the exact same on two
different machines with different processors (AMD vs Intel) with a
source build of PHP 5.0.3, running FC3.

Glibtools, gcc, c++, binutils were all slightly different versions on
both machines to minimize the chance that it was a anamoly with one of
those builds.

I rebuilt a machine with SuSE and will post results of same test here. 
But, it would be beneficial if someone with FC3 can address whether this
actually happens on their machine.



[2005-03-16 07:48:10] [EMAIL PROTECTED]

Can you explain why I get exactly same results with both PHP 4 and 5 ?




[2005-03-15 19:08:37] blucasco at gmail dot com

Description:

PHP 5.03 appears to handle math equations with negative exponents
differently than PHP 4.3.x.  I am trying to use the following example
in a larger script, but the primary difference is included below. 

Reproduce code:
---
PHP 4.3:
? echo (-4738698913^43814); ?
outputs:
-443704711

PHP 5.03:
? echo (-4738698913^43814); ?
outputs:
-2147439834

Expected result:

I believe 5.03 should output what 4.3 does, but this is an
extraordinarily large number so I can't say for certain.  

PHP 4.3:
? echo (-4738698913^43814); ?
outputs:
-443704711

Actual result:
--
PHP 5.03:
? echo (-4738698913^43814); ?
outputs:
-2147439834





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


#32315 [Opn-Fbk]: Destructor is called although Constructor throws an exc. after = assignment

2005-03-18 Thread sniper
 ID:   32315
 Updated by:   [EMAIL PROTECTED]
 Reported By:  m dot wiegard at brandsetter dot de
-Status:   Open
+Status:   Feedback
 Bug Type: Class/Object related
 Operating System: MacOs x (10.3.7)
 PHP Version:  5.0.3
 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-03-15 15:40:18] m dot wiegard at brandsetter dot de

Description:

The bug appears if I'm using any method calls with  
(and only with , I read the other bug reports !!) 
to assign the result to a variable within the 
constructor. 
if an Exception is thrown after that within the 
constructor, the destructor is called, although no 
object was instantiated.

Reproduce code:
---
?php
class test1 {
private $test;
function __construct() {
$this-test = test1::staticMethod();
throw new Exception();
}
static function staticMethod() {
return true;
}

function __destruct() {
print 'DESTRUCTOR';
}
}
$test = new test1();
?

Expected result:

I Expected to see no output of my little listing itself, 
only the error messages.

Actual result:
--
After the exception was printed out in the output, 
DESTRUCTOR appeared.





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


#32301 [Opn-Fbk]: PHP hangs during decompression

2005-03-18 Thread sniper
 ID:   32301
 Updated by:   [EMAIL PROTECTED]
 Reported By:  ralph at cs dot cf dot ac dot uk
-Status:   Open
+Status:   Feedback
 Bug Type: Zlib Related
 Operating System: MacOS X 10.3.x
 PHP Version:  5.0.3
 New Comment:

2nd try:

  http://snaps.php.net/php5-latest.tar.gz

(for your convinience I removed the url for the win32
binaries..*SIGH*)

There's nothing wrong with the snapshot, I checked it myself.




Previous Comments:


[2005-03-14 14:42:35] ralph at cs dot cf dot ac dot uk

Description:

Running the following compression / decompression code 
on MacOS X results in php hanging, and control never 
being retuyrned to the user.

One particular side effect is that doing
sudo pear upgrade-all
does not install the upgrades and hangs. However, this 
problem appears to be in php itself, not pear.

Reproduce code:
---
?php
$fd = gzopen('temp.gz', 'wb9');
for ($i=0; $i5000; $i++)
  gzwrite($fd, hello world !);
gzclose($fd);

$fd = gzopen('temp.gz', 'rb');
while (strlen($v_binary_data = gzread($fd, 512)) != 0) {
}
gzclose($fd);
echo OK Done !;
?

Expected result:

OK Done!

on completion.

Actual result:
--
Never returns.





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


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

2005-03-18 Thread jsonger at maintree dot com
 ID:   32337
 User updated by:  jsonger at maintree dot com
 Reported By:  jsonger at maintree dot com
 Status:   Open
-Bug Type: Documentation problem
+Bug Type: Feature/Change Request
 Operating System: Windows 2000
 PHP Version:  5.0.3
 New Comment:

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.


Previous Comments:


[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(ini_directive);

,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.



[2005-03-16 14:30:14] jsonger at maintree dot com

Description:

In both 5.0.3 and 5.0.4RC1 built on Mar 16 2005 10:19:30, the ISAPI
module is not using the Per Directory Values registry settings.

I have not tried this with the CGI version.






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


#32365 [Fbk-Opn]: error in build php

2005-03-18 Thread tempo at kgs dot ru
 ID:   32365
 User updated by:  tempo at kgs dot ru
 Reported By:  tempo at kgs dot ru
-Status:   Feedback
+Status:   Open
 Bug Type: Compile Failure
 Operating System: freebsd 5.3-p5
 PHP Version:  4.3.10
 New Comment:

I tried the latest release , same error ...


Previous Comments:


[2005-03-18 20:02:02] [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-03-18 19:40:45] tempo at kgs dot ru

Description:

cd /usr/ports/www/mod_php
make - this ok
make install - failure

Expected result:

# make install
===  Installing for mod_php4-4.3.10_2,1
===   mod_php4-4.3.10_2,1 depends on file: /usr/local/sbin/apxs -
found
===   Generating temporary packing list
===  Checking if www/mod_php4 already installed
Installing PHP SAPI module:   apache2handler
/usr/local/share/apache2/build/instdso.sh
SH_LIBTOOL='/usr/local/share/apache2/build/libtool' libphp4.la
/usr/local/libexec/apache2
/usr/local/share/apache2/build/libtool --mode=install cp libphp4.la
/usr/local/libexec/apache2/
libtool: install: `libphp4.la' is not a valid libtool archive
Try `libtool --help --mode=install' for more information.
apxs:Error: Command failed with rc=65536
.
*** Error code 1

Stop in /usr/ports/www/mod_php4/work/php-4.3.10.
*** Error code 1

Stop in /usr/ports/www/mod_php4.







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


#32325 [Fbk-Opn]: Can't retrieve collection using OCI8

2005-03-18 Thread ldixon at communityconnect dot com
 ID:   32325
 User updated by:  ldixon at communityconnect dot com
 Reported By:  ldixon at communityconnect dot com
-Status:   Feedback
+Status:   Open
 Bug Type: OCI8 related
 Operating System: Fedora Core release 2 (Tettnang)
 PHP Version:  5.0.3
 New Comment:

I tried the using the source from the link you provided, and I get the
same error (at the execute call).  I left the stack trace out for
brevity:

[ldixon: ~/download/php5-200503181730]$ sapi/cli/php
/home/ldixon/devel/ctk/collections/coll_test_pure_pure.php
OCIDebug: _oci_open_server new conn=0 dname=br /
OCIDebug: _oci_open_session new sess=5 user=ctk_mainbr /
OCIDebug: oci_do_connect: id=6br /
OCIDebug: oci_parse 
begin
select ut_num_list_t(1,2,3,4) into :list from dual;
end; id=7 conn=6br /
about to execute...
kgepop: no error frame to pop to for error 21522
OCI-21522: attempted to use an invalid connection in OCI (object mode
only)
Errors in file :
OCI-21522: attempted to use an invalid connection in OCI (object mode
only)


Previous Comments:


[2005-03-18 19:25: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





[2005-03-15 20:42:06] ldixon at communityconnect dot com

Description:

SYS INFO

kernel: 2.6.10-1.14_FC2 #1
httpd:  apache2
Oracle:
SQL select * from v$version;
 
BANNER

Oracle Database 10g Release 10.1.0.3.0 - Production
PL/SQL Release 10.1.0.3.0 - Production
CORE10.1.0.3.0  Production
TNS for Linux: Version 10.1.0.3.0 - Production
NLSRTL Version 10.1.0.3.0 - Production

I can create a collection and pass it to oracle fine, but it crashes
everytime I try to read one.  I've tried several variations (select
from a nested table directly, bind :list  to and out param of a stored
proc, etc).  They all fail in the same way.



Reproduce code:
---
#!/usr/local/bin/php
?php
 
/*
create or replace type ut_num_list_t as table of number;
*/
 
$conn = oci_connect(ctk_main, ctk_main);
 
$sql  = 
begin
select ut_num_list_t(1,2,3,4) into :list from dual;
end;;
 
$stmt = oci_parse($conn, $sql);
 
$collection = oci_new_collection($conn, UT_NUM_LIST_T);
 
oci_bind_by_name($stmt, :list,  $collection, -1, OCI_B_NTY);
 
oci_execute($stmt);
?

Expected result:

I expect to be able to access the elements of $collection using
$collection-getElem(1), etc.

Actual result:
--
$ ./coll_test.php
kgepop: no error frame to pop to for error 21522
OCI-21522: attempted to use an invalid connection in OCI (object mode
only)
Errors in file :
OCI-21522: attempted to use an invalid connection in OCI (object mode
only)
 
 
- Call Stack Trace -
Cannot open /proc/4283/exe.
calling  call entryargument values in
hex
location type point(? means dubious
value)
  

Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
Cannot find symbol in /proc/4283/exe.
0107A607 CALL 00EAF428 107A536 ? 0 ?
8408FFC ?
   BFFF773C ? 14849BE
?
   8408FFC ?
014849BC CALLr 0 ? BFFF775C ?
01485135 CALL  

#32366 [NEW]: --With-cyrus fails when using cyrus-imapd 2.2

2005-03-18 Thread pepperjack at doctorunix dot com
From: pepperjack at doctorunix dot com
Operating system: Linux / BSD
PHP version:  4.3.10
PHP Bug Type: Compile Failure
Bug description:  --With-cyrus fails when using cyrus-imapd  2.2

Description:

In later versions of cyrus-imapd library libcyrus.a is not all
inclusive.  You also need to link in the library libcyrus_min.a

I made the following change and it works ok now.

--- configure   2005-03-18 15:28:04.257851632 -0600
+++ configure.cyrus 2005-03-18 15:08:25.552042000 -0600
@@ -28821,3 +28821,3 @@
   if test $ext_shared = yes; then
-CYRUS_SHARED_LIBADD=-lcyrus $CYRUS_SHARED_LIBADD
+CYRUS_SHARED_LIBADD=-lcyrus -lcyrus_min $CYRUS_SHARED_LIBADD
 if test -n $i/lib; then
@@ -28904,3 +28904,3 @@
   *)
-  LIBS=-lcyrus $LIBS
+  LIBS=-lcyrus -lcyrus_min $LIBS
;;


Reproduce code:
---
'--with-cyrus' \


Expected result:

/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../libcyrus.a(imclient.o)(.text+0x12e):
In function `imclient_getselectinfo':
: undefined reference to `assertionfailed'
/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../libcyrus.a(imclient.o)(.text+0x14c):
In function `imclient_getselectinfo':
: undefined reference to `assertionfailed'
/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../libcyrus.a(imclient.o)(.text+0x16a):
In function `imclient_getselectinfo':
: undefined reference to `assertionfailed'
/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../libcyrus.a(imclient.o)(.text+0x1b7):
In function `imclient_servername':
: undefined reference to `assertionfailed'
/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../libcyrus.a(imclient.o)(.text+0x207):
more undefined references to `assertionfailed' follow
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1



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


#32366 [Opn-WFx]: --With-cyrus fails when using cyrus-imapd 2.2

2005-03-18 Thread moriyoshi
 ID:   32366
 Updated by:   [EMAIL PROTECTED]
 Reported By:  pepperjack at doctorunix dot com
-Status:   Open
+Status:   Wont fix
 Bug Type: Compile Failure
 Operating System: Linux / BSD
 PHP Version:  4.3.10
 New Comment:

The extension bundled with the 4.3 package is obsolete. 
Try using the version in the PECL CVS as your problem 
is already solved.

cvs -d:pserver:[EMAIL PROTECTED]:/repository co pecl/
cyrus






Previous Comments:


[2005-03-18 22:08:10] pepperjack at doctorunix dot com

Description:

In later versions of cyrus-imapd library libcyrus.a is not all
inclusive.  You also need to link in the library libcyrus_min.a

I made the following change and it works ok now.

--- configure   2005-03-18 15:28:04.257851632 -0600
+++ configure.cyrus 2005-03-18 15:08:25.552042000 -0600
@@ -28821,3 +28821,3 @@
   if test $ext_shared = yes; then
-CYRUS_SHARED_LIBADD=-lcyrus $CYRUS_SHARED_LIBADD
+CYRUS_SHARED_LIBADD=-lcyrus -lcyrus_min $CYRUS_SHARED_LIBADD
 if test -n $i/lib; then
@@ -28904,3 +28904,3 @@
   *)
-  LIBS=-lcyrus $LIBS
+  LIBS=-lcyrus -lcyrus_min $LIBS
;;


Reproduce code:
---
'--with-cyrus' \


Expected result:

/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../libcyrus.a(imclient.o)(.text+0x12e):
In function `imclient_getselectinfo':
: undefined reference to `assertionfailed'
/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../libcyrus.a(imclient.o)(.text+0x14c):
In function `imclient_getselectinfo':
: undefined reference to `assertionfailed'
/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../libcyrus.a(imclient.o)(.text+0x16a):
In function `imclient_getselectinfo':
: undefined reference to `assertionfailed'
/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../libcyrus.a(imclient.o)(.text+0x1b7):
In function `imclient_servername':
: undefined reference to `assertionfailed'
/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../libcyrus.a(imclient.o)(.text+0x207):
more undefined references to `assertionfailed' follow
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1







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


#32367 [NEW]: Test for bug 16069 fails

2005-03-18 Thread webmaster at ragnarokonline dot de
From: webmaster at ragnarokonline dot de
Operating system: 
PHP version:  4.3.10
PHP Bug Type: ICONV related
Bug description:  Test for bug 16069 fails

Description:

I've compiled PHP4 on debian with the following configure command:
'./configure' '--prefix=/usr/local/php' '--with-apxs2=/usr/bin/apxs2'
'--with-mysql=/usr' '--with-config-file-path=/etc/php4/apache2'
'--with-config-file-scan-dir=/etc/php4/apache2/php.d' '--with-ttf'
'--with-freetype-dir=/usr' '--with-png-dir=/usr/local/lib'
'--with-jpeg-dir=/usr/local/lib' '--with-xpm-dir=/usr/X11R6'
'--with-mcrypt' '--with-mhash' '--with-gettext' '--with-iconv'
'--with-pear' '--with-xml' '--with-zlib' '--with-bz2' '--with-curl'
'--with-openssl' '--with-dom' '--with-dom-xslt' '--with-dom-exslt'
'--with-gd=/usr' '--with-ldap' '--with-imap' '--with-imap-ssl'
'--with-kerberos' '--enable-ftp' '--enable-versioning'
'--enable-track-vars=yes' '--enable-bcmath' '--enable-calendar'
'--enable-magic-quotes' '--enable-sockets' '--enable-gd-native-ttf'
'--enable-memory-limit' '--enable-mbstring' '--enable-wddx'

and the test for bug 16069 (Bug #16069 [ext/iconv/tests/bug16069.phpt])
still fails.

I could confirm this with PHP 4.3.10 and PHP 4.3.11RC1. Not tested other
versions so far.


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


#32312 [Fbk-Opn]: Error in PCRE

2005-03-18 Thread xanthor at xanthor dot tk
 ID:   32312
 User updated by:  xanthor at xanthor dot tk
 Reported By:  xanthor at xanthor dot tk
-Status:   Feedback
+Status:   Open
 Bug Type: PCRE related
 Operating System: GNU/Linux
 PHP Version:  4.3.10
 New Comment:

As I just said before, it returns true...


Previous Comments:


[2005-03-17 10:02:00] [EMAIL PROTECTED]

What DOES it return with PHP 4.3.2 ?



[2005-03-16 21:31:52] xanthor at xanthor dot tk

It works with 4.3.2



[2005-03-16 00:47:24] [EMAIL PROTECTED]

And with what PHP version does this work with?




[2005-03-15 10:32:34] xanthor at xanthor dot tk

Description:

The following code returns a wrong result with some strings, but when
we reduce them, it swich back to expected behaviour.

Tested on PHP 4.3.10, 4.3.9, 5.0.2, and 5.0.3RC2
PCRE Library Version = 4.5 01-December-2003


Reproduce code:
---
preg_match(/((.*.*.*)*.(.*.+.+..+)*b)?/,''.str_repeat('a',14).''.str_repeat('a',33).'a'.str_repeat('a',92).'a'.str_repeat('a',8).'aa')

Expected result:

This code should return true

Actual result:
--
The code returns false.
Reduce one of the str_repeat, and it'll return true.





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


#31493 [Fbk-Opn]: navigating to javascript:anything kills IE

2005-03-18 Thread csaba at alum dot mit dot edu
 ID:   31493
 User updated by:  csaba at alum dot mit dot edu
 Reported By:  csaba at alum dot mit dot edu
-Status:   Feedback
+Status:   Open
 Bug Type: COM related
 Operating System: Win XP Pro
 PHP Version:  5.0.3
 New Comment:

?php
$ie = new COM(InternetExplorer.Application); 
$ie-Visible = true;
$nav = javascript:alert('hi mom');;
$ie-Navigate($nav);
?

Fair enough.  I mean in the code above IE will vanish and not put up
the alert.  If, on the other hand, you put the following line into IE's
address bar, IE will put up the expected alert and not vanish:
javascript:alert('hi mom');


Previous Comments:


[2005-03-18 19:49:02] [EMAIL PROTECTED]

And with 'original scenario' you mean what? The first example script in
this report? (with the sleep() call?) Or what?




[2005-03-10 00:59:46] csaba at alum dot mit dot edu

Sorry to reopen this, but I wanted to ensure that this got attention. 
I'm not objecting to it being closed, per se, but I don't think it
makes sense to do so without a comment considering that the penultimate
comment says, Is it working, and the response is No.  Anybody
looking at this in the future (and me looking at it now) is going to
wonder what went on.

It would be good to know whether this is not considered a bug (or is of
the 'not our problem' variety), is a Won't fix situation, or possibly
confused with bug 31492 (since that seems to have already happened
once, but that bug is distinct), or what?  But in my most recent
testing, the original scenario still failed.

Csaba



[2005-03-09 01:40:57] csaba at alum dot mit dot edu

I have tried this with the March 7 build and it is still not working in
the same fashion, but I have a bit more information on it.  It is tied
to the fact that there is no previous navigation before the
javascript:whatever is hit.

For example,
?php
$ie = new COM(InternetExplorer.Application); 
//$nav = javascript:'bodyHi Mom/body';
$nav = javascript:alert('Hi Mom');
$ie-Visible = true;
$ie-Navigate($nav); 
?

will vanish IE, but

?php
$ie = new COM(InternetExplorer.Application); 
//$nav = javascript:'bodyHi Mom/body';
$nav = javascript:alert('Hi Mom');
$ie-Visible = true;
$ie-Navigate(about:blank);
$ie-Navigate($nav); 
?

will keep IE around (you can also use the non alert version).  The
point is that the 'pre navigation' to about:blank allows the main
navigation to go through somehow.



[2005-02-28 21:09:15] [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-17 07:46:27] csaba at alum dot mit dot edu

I have replaced the sleep(...) with appropriate com_message_pump(...),
but I still get the same results.



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

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


#32365 [Opn-Fbk]: error in build php

2005-03-18 Thread sniper
 ID:   32365
 Updated by:   [EMAIL PROTECTED]
 Reported By:  tempo at kgs dot ru
-Status:   Open
+Status:   Feedback
 Bug Type: Compile Failure
 Operating System: freebsd 5.3-p5
 PHP Version:  4.3.10
 New Comment:

And what might the configure line be that you used..?



Previous Comments:


[2005-03-18 20:52:42] tempo at kgs dot ru

I tried the latest release , same error ...



[2005-03-18 20:02:02] [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-03-18 19:40:45] tempo at kgs dot ru

Description:

cd /usr/ports/www/mod_php
make - this ok
make install - failure

Expected result:

# make install
===  Installing for mod_php4-4.3.10_2,1
===   mod_php4-4.3.10_2,1 depends on file: /usr/local/sbin/apxs -
found
===   Generating temporary packing list
===  Checking if www/mod_php4 already installed
Installing PHP SAPI module:   apache2handler
/usr/local/share/apache2/build/instdso.sh
SH_LIBTOOL='/usr/local/share/apache2/build/libtool' libphp4.la
/usr/local/libexec/apache2
/usr/local/share/apache2/build/libtool --mode=install cp libphp4.la
/usr/local/libexec/apache2/
libtool: install: `libphp4.la' is not a valid libtool archive
Try `libtool --help --mode=install' for more information.
apxs:Error: Command failed with rc=65536
.
*** Error code 1

Stop in /usr/ports/www/mod_php4/work/php-4.3.10.
*** Error code 1

Stop in /usr/ports/www/mod_php4.







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


#32367 [Opn-Fbk]: Test for bug 16069 fails

2005-03-18 Thread sniper
 ID:  32367
 Updated by:  [EMAIL PROTECTED]
 Reported By: webmaster at ragnarokonline dot de
-Status:  Open
+Status:  Feedback
 Bug Type:ICONV related
-PHP Version: 4.3.10
+PHP Version: 4.3.11RC1
 New Comment:

What does ext/iconv/tests/bug16069.diff contain?



Previous Comments:


[2005-03-18 22:46:16] webmaster at ragnarokonline dot de

Description:

I've compiled PHP4 on debian with the following configure command:
'./configure' '--prefix=/usr/local/php' '--with-apxs2=/usr/bin/apxs2'
'--with-mysql=/usr' '--with-config-file-path=/etc/php4/apache2'
'--with-config-file-scan-dir=/etc/php4/apache2/php.d' '--with-ttf'
'--with-freetype-dir=/usr' '--with-png-dir=/usr/local/lib'
'--with-jpeg-dir=/usr/local/lib' '--with-xpm-dir=/usr/X11R6'
'--with-mcrypt' '--with-mhash' '--with-gettext' '--with-iconv'
'--with-pear' '--with-xml' '--with-zlib' '--with-bz2' '--with-curl'
'--with-openssl' '--with-dom' '--with-dom-xslt' '--with-dom-exslt'
'--with-gd=/usr' '--with-ldap' '--with-imap' '--with-imap-ssl'
'--with-kerberos' '--enable-ftp' '--enable-versioning'
'--enable-track-vars=yes' '--enable-bcmath' '--enable-calendar'
'--enable-magic-quotes' '--enable-sockets' '--enable-gd-native-ttf'
'--enable-memory-limit' '--enable-mbstring' '--enable-wddx'

and the test for bug 16069 (Bug #16069 [ext/iconv/tests/bug16069.phpt])
still fails.

I could confirm this with PHP 4.3.10 and PHP 4.3.11RC1. Not tested
other versions so far.






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


#32367 [Fbk-WFx]: Test for bug 16069 fails

2005-03-18 Thread moriyoshi
 ID:  32367
 Updated by:  [EMAIL PROTECTED]
 Reported By: webmaster at ragnarokonline dot de
-Status:  Feedback
+Status:  Wont fix
 Bug Type:ICONV related
-PHP Version: 4.3.11RC1
+PHP Version: 4.3.10
 New Comment:

The failure can safely be ignored. That is caused by a 
number of differences in the locale configuration 
between your environment and the one that test was made.



Previous Comments:


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

What does ext/iconv/tests/bug16069.diff contain?




[2005-03-18 22:46:16] webmaster at ragnarokonline dot de

Description:

I've compiled PHP4 on debian with the following configure command:
'./configure' '--prefix=/usr/local/php' '--with-apxs2=/usr/bin/apxs2'
'--with-mysql=/usr' '--with-config-file-path=/etc/php4/apache2'
'--with-config-file-scan-dir=/etc/php4/apache2/php.d' '--with-ttf'
'--with-freetype-dir=/usr' '--with-png-dir=/usr/local/lib'
'--with-jpeg-dir=/usr/local/lib' '--with-xpm-dir=/usr/X11R6'
'--with-mcrypt' '--with-mhash' '--with-gettext' '--with-iconv'
'--with-pear' '--with-xml' '--with-zlib' '--with-bz2' '--with-curl'
'--with-openssl' '--with-dom' '--with-dom-xslt' '--with-dom-exslt'
'--with-gd=/usr' '--with-ldap' '--with-imap' '--with-imap-ssl'
'--with-kerberos' '--enable-ftp' '--enable-versioning'
'--enable-track-vars=yes' '--enable-bcmath' '--enable-calendar'
'--enable-magic-quotes' '--enable-sockets' '--enable-gd-native-ttf'
'--enable-memory-limit' '--enable-mbstring' '--enable-wddx'

and the test for bug 16069 (Bug #16069 [ext/iconv/tests/bug16069.phpt])
still fails.

I could confirm this with PHP 4.3.10 and PHP 4.3.11RC1. Not tested
other versions so far.






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


#32312 [Opn-Fbk]: Error in PCRE

2005-03-18 Thread sniper
 ID:   32312
 Updated by:   [EMAIL PROTECTED]
 Reported By:  xanthor at xanthor dot tk
-Status:   Open
+Status:   Feedback
 Bug Type: PCRE related
 Operating System: GNU/Linux
 PHP Version:  4.3.10
 New Comment:

No, it doesn't return 'bool(true)' as preg_match() returns an integer.
Try with something like 'var_dump(preg_match...' 
Also RTFM.



Previous Comments:


[2005-03-18 22:50:07] xanthor at xanthor dot tk

As I just said before, it returns true...



[2005-03-17 10:02:00] [EMAIL PROTECTED]

What DOES it return with PHP 4.3.2 ?



[2005-03-16 21:31:52] xanthor at xanthor dot tk

It works with 4.3.2



[2005-03-16 00:47:24] [EMAIL PROTECTED]

And with what PHP version does this work with?




[2005-03-15 10:32:34] xanthor at xanthor dot tk

Description:

The following code returns a wrong result with some strings, but when
we reduce them, it swich back to expected behaviour.

Tested on PHP 4.3.10, 4.3.9, 5.0.2, and 5.0.3RC2
PCRE Library Version = 4.5 01-December-2003


Reproduce code:
---
preg_match(/((.*.*.*)*.(.*.+.+..+)*b)?/,''.str_repeat('a',14).''.str_repeat('a',33).'a'.str_repeat('a',92).'a'.str_repeat('a',8).'aa')

Expected result:

This code should return true

Actual result:
--
The code returns false.
Reduce one of the str_repeat, and it'll return true.





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


#32099 [Opn]: After opening ADO connection and closing it repeatedly, Apache stops service

2005-03-18 Thread sniper
 ID:   32099
 Updated by:   [EMAIL PROTECTED]
 Reported By:  terryoh at wins21 dot com
 Status:   Open
 Bug Type: COM related
 Operating System: win32
 PHP Version:  4CVS, 5CVS (2005-02-28)
 New Comment:

We don't know a solution, sorry.



Previous Comments:


[2005-03-02 09:43:22] terryoh at wins21 dot com

In my test, PHP 5 has same problem.

I really want to know the solution, please..



[2005-03-02 08:23:50] [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

This is PHP 5 snapshot which has better COM support.




[2005-02-28 02:43:18] terryoh at wins21 dot com

I downloaded the latest php.
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

After upgrading the php module, I tried the same test. But the result
was same. Memory and the count of the handles were increased. After the
session.gc_maxlifetime(php.ini), the result was same.

[Presumption]
I read something about zend engine on a webpage(I can't remeber the web
address exactly), it is that the zend engine doesn't release database
connection to reuse exceptionally. It might be this process causes
trouble between ADO and Zend engine.



[2005-02-25 14:20:25] [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-25 01:52:36] terryoh at wins21 dot com

Description:

Today, my apache server stopped service. So I tested whether the apache
daemon was ok or not. It worked, because the telnet 80 connection(like
C:/telnet.exe 127.0.0.1 80) was successful. But I could not open any
php pages on the internet explorer.

I checked the memory with windows task manager and I found something
strange. The allocated memory for apache was almost 1GB(998MB) and the
count of the handles was almost 4(39890). 

Finally I found that it was ADO-PHP problem. I could see memory and the
count of handles increased when opening database and closing it
repeatedly(1 try/1 second for an hour). Especially the handles were
never decreased.

[Steps]
1) Register any ODBC DSN(driver=SQL Server)in the control panel.
2) In PHP.INI, set the key name(odbc.default_db) with the DSN;user
ID;password.
3) Start an apache service.
4) Open a test page(in the reproduce code section)in your web browser.
5) Refresh the test page repeatedly once a second.
6) Open windows task manager. If you can not see handle column on the
process tab, add it(Menu-View-Column Selection-Handle).
7) After 1 minute or later, you can see the count of apache handle
increase like 400-401-402-403 Also you can see the memory
increase.




Reproduce code:
---
?php
  $ConnectionString   = ini_get('odbc.default_db');

  $AdoConn = new COM(ADODB.Connection); 
  $AdoConn-Open($ConnectionString);

  $AdoConn-Close();
  unset($AdoConn);
?

* Web Server  : Apache 1.3.28
* PHP : 4.3.8
* OS  : Windows 2000 Server
* DBMS: MSSQL2000 Enterprise Edition
* OTHERS  : MDAC 2.8


Expected result:

Windows Task Manager(Process Tab)
Image name  Memory   Handle
Apache.exe  10,840KB 200 11:00 AM
Apache.exe  10,857KB 201 11:02 AM
Apache.exe  10,867KB 202 11:04 AM
Apache.exe  10,867KB 202 11:06 AM
Apache.exe  10,867KB 202 11:08 AM
Apache.exe  10,867KB 202 11:10 AM
Apache.exe  10,867KB 202 11:12 AM


Actual result:
--
Windows Task Manager(Process Tab)
Image name  Memory   Handle
Apache.exe  10,840KB 200 11:00 AM
Apache.exe  10,857KB 201 11:02 AM
Apache.exe  10,867KB 202 11:04 AM
Apache.exe  10,877KB 203 11:06 AM
Apache.exe  10,886KB 204 11:08 AM
Apache.exe  10,899KB 205 11:10 AM
Apache.exe  10,910KB 206 11:12 AM

Apache.exe  998MB39890





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


#32368 [NEW]: Incorrect Array values

2005-03-18 Thread ryan at simgsoft dot com
From: ryan at simgsoft dot com
Operating system: Windows XP, OSX
PHP version:  4.3.10
PHP Bug Type: Arrays related
Bug description:  Incorrect Array values

Description:

It appears only the first character of the value is displayed.

Reproduce code:
---
$search_boards[0]= 'WRIST';
$search_boards[0]['name'] = 'WRIST area board';
$search_boards[1]= 'DABR';
$search_boards[1]['name'] = 'Dayton area board';
print $search_boards[1]['name'];

Expected result:

Dayton area board

Actual result:
--
D

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


#32369 [NEW]: configure: error: libjpeg.(a|so) not found

2005-03-18 Thread ian_real at dominios dot net
From: ian_real at dominios dot net
Operating system: Suse 9.2 2.6.8-24-smp x86_64
PHP version:  4.3.10
PHP Bug Type: Compile Failure
Bug description:  configure: error: libjpeg.(a|so) not found

Description:

configure wont find the jpeg libraries in /usr/lib64

CFLAGS=-O3 -march=nocona CXX=gcc CXXFLAGS=-O3 -march=nocona \
./configure --with-_lib=lib64 --libdir=/usr/lib64 --enable-cli \
--with-apxs=/usr/local/etc/httpd/bin/apxs \
--enable-xslt --with-xslt-sablot --with-bz2 \
--enable-sockets  --with-curl=/usr/local --with-dbase \
--disable-short-tags --enable-track-vars --with-gd \
--with-zlib --with-png-dir=/usr --with-jpeg-dir=/usr \
--enable-sysvshm --enable-sysvsem --disable-debug \
--enable-magic-quotes --enable-memory-limit \
--with-config-file-path=/usr/local/lib --with-mysql=/usr/local/mysql/

...

configure: error: libjpeg.(a|so) not found




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


#32359 [Opn-Csd]: Ingres_II config.w32

2005-03-18 Thread sniper
 ID:   32359
 Updated by:   [EMAIL PROTECTED]
 Reported By:  vogje01 at ca dot com
-Status:   Open
+Status:   Closed
 Bug Type: Ingres II related
 Operating System: Win2k3
 PHP Version:  5CVS-2005-03-18 (dev)
 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-18 08:47:18] vogje01 at ca dot com

Description:

Hi,
I tried to compile php5-200503170530 with ingres support on Win2k3
using VC7 (.net). All worked fine except that the config.w32 was
missing. Using the following:

ARG_WITH(ingres_ii, Ingres support, no);

if (PHP_INGRES_II != no) {
if (CHECK_LIB(libingres.lib, ingres_ii, PHP_INGRES_II +
\\ingres\\lib) 
CHECK_LIB(iilibapi.lib, ingres_ii, PHP_INGRES_II +
\\ingres\\lib) 
CHECK_HEADER_ADD_INCLUDE(iiapi.h, CFLAGS_INGRES_II,
PHP_INGRES_II + \\ingres\\files)) {
EXTENSION(ingres_ii, ii.c);
AC_DEFINE('HAVE_II', 1, 'Have Ingres library');
} else {
WARNING(Ingres not enabled; libraries and headers not found);
}
}
 solved the problem. Configure line was:

cscript configure.js --with-ingres_ii=%II_SYSTEM% --enable-sockets
--disable-spl --with-iconv --without-dom --without-xml
--without-simplexml --without-wddx --enable-prefix=c:\dev\nsmi\php

I'm testing it now extensively

Could you please include the config.w32 into the next release?

Best regards
Dr. Jens Vogt

Reproduce code:
---
cscript configure.js --with-ingres_ii=%II_SYSTEM% --enable-sockets
--disable-spl --with-iconv --without-dom --without-xml
--without-simplexml --without-wddx --enable-prefix=c:\dev\nsmi\php


Expected result:

Checking for library libingres.lib ... ..\..\Program
Files\CA\SharedComponents\Ingres_WV\ingres\lib\libingres.lib
Checking for library iilibapi.lib ... ..\..\Program
Files\CA\SharedComponents\Ingres_WV\ingres\lib\iilibapi.lib
Checking for iiapi.h ...  C:\Program
Files\CA\SharedComponents\Ingres_WV\ingres\files
Enabling extension ext\ingres_ii

Actual result:
--
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

Unknown option --with-ingres_ii; please try configure.js --help for a
list of valid options






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


#32359 [Csd]: Ingres_II config.w32

2005-03-18 Thread sniper
 ID:   32359
 Updated by:   [EMAIL PROTECTED]
 Reported By:  vogje01 at ca dot com
 Status:   Closed
 Bug Type: Ingres II related
 Operating System: Win2k3
 PHP Version:  5CVS-2005-03-18 (dev)
 New Comment:

..and the option is '--with-ingres' (without the _ii)



Previous Comments:


[2005-03-19 00:25:35] [EMAIL PROTECTED]

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.





[2005-03-18 08:47:18] vogje01 at ca dot com

Description:

Hi,
I tried to compile php5-200503170530 with ingres support on Win2k3
using VC7 (.net). All worked fine except that the config.w32 was
missing. Using the following:

ARG_WITH(ingres_ii, Ingres support, no);

if (PHP_INGRES_II != no) {
if (CHECK_LIB(libingres.lib, ingres_ii, PHP_INGRES_II +
\\ingres\\lib) 
CHECK_LIB(iilibapi.lib, ingres_ii, PHP_INGRES_II +
\\ingres\\lib) 
CHECK_HEADER_ADD_INCLUDE(iiapi.h, CFLAGS_INGRES_II,
PHP_INGRES_II + \\ingres\\files)) {
EXTENSION(ingres_ii, ii.c);
AC_DEFINE('HAVE_II', 1, 'Have Ingres library');
} else {
WARNING(Ingres not enabled; libraries and headers not found);
}
}
 solved the problem. Configure line was:

cscript configure.js --with-ingres_ii=%II_SYSTEM% --enable-sockets
--disable-spl --with-iconv --without-dom --without-xml
--without-simplexml --without-wddx --enable-prefix=c:\dev\nsmi\php

I'm testing it now extensively

Could you please include the config.w32 into the next release?

Best regards
Dr. Jens Vogt

Reproduce code:
---
cscript configure.js --with-ingres_ii=%II_SYSTEM% --enable-sockets
--disable-spl --with-iconv --without-dom --without-xml
--without-simplexml --without-wddx --enable-prefix=c:\dev\nsmi\php


Expected result:

Checking for library libingres.lib ... ..\..\Program
Files\CA\SharedComponents\Ingres_WV\ingres\lib\libingres.lib
Checking for library iilibapi.lib ... ..\..\Program
Files\CA\SharedComponents\Ingres_WV\ingres\lib\iilibapi.lib
Checking for iiapi.h ...  C:\Program
Files\CA\SharedComponents\Ingres_WV\ingres\files
Enabling extension ext\ingres_ii

Actual result:
--
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

Unknown option --with-ingres_ii; please try configure.js --help for a
list of valid options






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


#32369 [Opn-WFx]: configure: error: libjpeg.(a|so) not found

2005-03-18 Thread sniper
 ID:   32369
 Updated by:   [EMAIL PROTECTED]
 Reported By:  ian_real at dominios dot net
-Status:   Open
+Status:   Wont fix
-Bug Type: Compile Failure
+Bug Type: *General Issues
 Operating System: Suse 9.2 2.6.8-24-smp x86_64
 PHP Version:  4.3.10
 New Comment:

This is fixed in HEAD. (upcoming PHP 5.1)
Won't fix in PHP 4.3 or PHP 5.0 branches.



Previous Comments:


[2005-03-19 00:18:15] ian_real at dominios dot net

Description:

configure wont find the jpeg libraries in /usr/lib64

CFLAGS=-O3 -march=nocona CXX=gcc CXXFLAGS=-O3 -march=nocona \
./configure --with-_lib=lib64 --libdir=/usr/lib64 --enable-cli \
--with-apxs=/usr/local/etc/httpd/bin/apxs \
--enable-xslt --with-xslt-sablot --with-bz2 \
--enable-sockets  --with-curl=/usr/local --with-dbase \
--disable-short-tags --enable-track-vars --with-gd \
--with-zlib --with-png-dir=/usr --with-jpeg-dir=/usr \
--enable-sysvshm --enable-sysvsem --disable-debug \
--enable-magic-quotes --enable-memory-limit \
--with-config-file-path=/usr/local/lib --with-mysql=/usr/local/mysql/

...

configure: error: libjpeg.(a|so) not found








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


#32368 [Opn-Bgs]: Incorrect Array values

2005-03-18 Thread sniper
 ID:   32368
 Updated by:   [EMAIL PROTECTED]
 Reported By:  ryan at simgsoft dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Arrays related
 Operating System: Windows XP, OSX
 PHP Version:  4.3.10
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

..try doing 'var_dump($search_boards);'



Previous Comments:


[2005-03-19 00:15:02] ryan at simgsoft dot com

Description:

It appears only the first character of the value is displayed.

Reproduce code:
---
$search_boards[0]= 'WRIST';
$search_boards[0]['name'] = 'WRIST area board';
$search_boards[1]= 'DABR';
$search_boards[1]['name'] = 'Dayton area board';
print $search_boards[1]['name'];

Expected result:

Dayton area board

Actual result:
--
D





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


#32312 [Fbk-Opn]: Error in PCRE

2005-03-18 Thread xanthor at xanthor dot tk
 ID:   32312
 User updated by:  xanthor at xanthor dot tk
 Reported By:  xanthor at xanthor dot tk
-Status:   Feedback
+Status:   Open
 Bug Type: PCRE related
-Operating System: GNU/Linux
+Operating System: GNU/Linux, Windows#8482;
 PHP Version:  4.3.10
 New Comment:

Yes.

Some other tests :
Bug verified on another Linux box with PHP 4.3.10, but also on Windows
XP with PHP 5.0.0.
And the same regular expression in Perl returns true for both strings,
as expected.


Previous Comments:


[2005-03-19 00:39:57] [EMAIL PROTECTED]

Yes, it makes a difference when I add a regression test to this bug. I
need to know the exact correct output. 
So, it returns int(1) with PHP 4.3.2 ? (only 1 match)




[2005-03-19 00:32:14] xanthor at xanthor dot tk

Well, then it's int(0) instead of false, and int(1) instead of true.
Does that really make a difference ?

(By the way, I tested on 4 different computers, and the bug is
verified)



[2005-03-19 00:07:33] [EMAIL PROTECTED]

No, it doesn't return 'bool(true)' as preg_match() returns an integer.
Try with something like 'var_dump(preg_match...' 
Also RTFM.




[2005-03-18 22:50:07] xanthor at xanthor dot tk

As I just said before, it returns true...



[2005-03-17 10:02:00] [EMAIL PROTECTED]

What DOES it return with PHP 4.3.2 ?



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

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


#32371 [NEW]: [PATCH] php://input sometimes returns dupl data

2005-03-18 Thread phpint-bkrrym at skrt dot org
From: phpint-bkrrym at skrt dot org
Operating system: any
PHP version:  5CVS-2005-03-19 (dev)
PHP Bug Type: Filesystem function related
Bug description:  [PATCH] php://input sometimes returns dupl data

Description:

Full description and PATCH for 5-CVS and 4.3.10 are here:

http://thepathetic.com/jozef/php_input_stream_patch.html
http://thepathetic.com/jozef/php-5.0.3-input_stream.patch
http://thepathetic.com/jozef/php-4.3.10-input_stream.patch

Both 5 and 4.3.10 have the problem (same code).

Because of a subtle buffer index bug, in some cases, the php://input
stream returns incorrect data. 

Symptoms:

If the php://input is parsed in 4000-byte chunks, the first corruption
occurs at byte number 8193 (1-based). A chunk of the previous 192 bytes
repeats there.  The same corruption happens periodically in the data if it
is long enough.

The problem was discovered when directly parsing a POSTed XML with a long
text-node.

Interestingly enough, reading the contents of php://input with
file_get_contents and parsing the string works around the symptoms.

Reproduce code:
---
$s = simplexml_load_file('php://input');

sees the text node corrupted, whereas

$d = file_get_contents('php://input');
$s = simplexml_load_string($d);

does not.

Expected result:

should be the same in both cases

Actual result:
--
difference at byte number 8193 (1-based) from the begining of the xml.

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


#32334 [Fbk-Opn]: __set acts unexpected with variable variables

2005-03-18 Thread mk at peytz dot dk
 ID:   32334
 User updated by:  mk at peytz dot dk
 Reported By:  mk at peytz dot dk
-Status:   Feedback
+Status:   Open
 Bug Type: Zend Engine 2 problem
 Operating System: Linux
-PHP Version:  5.0.3
+PHP Version:  5CVS-200503190530
 New Comment:

But the problem persist with the CVS snapshot (which now compiles
again).


Previous Comments:


[2005-03-18 19:23:13] [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 13:29:45] mk at peytz dot dk

Description:

When setting variable variable values on a instance of a class with an
overloading __set function changing another instance variable goes
wrong.

(I'm reporting it for version 5.0.3 because the current cvs snapshot
would not compile.)

Reproduce code:
---
http://dev.peytz.dk/~mk/setter.php
?php
class Setter
{
private $_fields = array(); // the data fields
private $_changedFields = array(); // list of changed fields

function __set($name, $value)
{
// set value
$this-_fields[$name] = $value;
// add to list of changed fields
$this-_changedFields[] = $name;
}
}
$foo = new Setter;
$foo-a = 1;
$var = b;
$foo-$var = 2;
var_export($foo);
?

Expected result:

class Setter {
  private $_fields = 
  array (
'a' = 1,
'b' = 2,
  );
  private $_changedFields = 
  array (
0 = 'a',
1 = 'b',
  );
}

Actual result:
--
class Setter {
  private $_fields = 
  array (
'a' = 1,
'b' = 2,
  );
  private $_changedFields = 
  array (
0 = 'a',
1 = '›‡ˆ',
  );
}





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


#32322 [Fbk-Opn]: OOP singleton instance

2005-03-18 Thread rickd at commando-pernod dot net
 ID:   32322
 User updated by:  rickd at commando-pernod dot net
 Reported By:  rickd at commando-pernod dot net
-Status:   Feedback
+Status:   Open
 Bug Type: Zend Engine 2 problem
 Operating System: Win2000
 PHP Version:  5.0.3
 New Comment:

CVS snapshot the same, getInstance() returning reference none copy of
var, only way at the moment is this little workaround ( when using
private static in class not in function ):


public static function getInstance()
{
if ( self::$instance == null )
{
self::$instance = new test();
}
else {
echo old;
}
return ( $r = self::$instance);
}


Previous Comments:


[2005-03-18 19:26:19] [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-15 21:03:10] rickd at commando-pernod dot net

same but static inside class function and cant be killed with
referencing, remember in the other code i dont use getinstance() so
the function do not return a reference how its describe in manual (
both need reference, caller and function code)

class test {
   static function getinstance() {
  static $instance;
  if ( $instance == null ) {
 $instance = new test();
  }
  return $instance;
   }
}
$user = test::getinstance();
$user = null; // dont destroy instance
$user = test::getinstance();
unset( $user ); // dont destroy instance



[2005-03-15 21:00:00] rickd at commando-pernod dot net

upps i did i typing mistake :

so i mean

class test {
   static private $instance = null;
   static function getinstance() {
  if ( self::$instance == null ) {
 self::$instance = new test();
  }
  return self::$instance;
   }
}
$user = test::getinstance();
$user = null; // destroy singleton instance
$user = test::getinstance();
unset( $user ); // dont destroy instance



[2005-03-15 20:29:41] [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

Please use support forums to get help with your singleton 
implementation... 



[2005-03-15 19:54:01] rickd at commando-pernod dot net

Description:

We use a user singleton instance for our cms user authed ids that
should not be able to killed from third party addons or worse coders so
easily, but accessable from all.

But when someone get the instance with reference it can be killed easy
with setting the reference var to null, unset dont work.

If you put the static $instance holder inside the getinstance()
function it seems to be work correct and cant be deleted from setting
reference to NULL



Reproduce code:
---
class test {
   static private $instance = null;
   static function getinstance() {
  if ( self::$instance == null ) {
 return new test();
  }
  return self::$instance;
   }
}
$user = test::getinstance();
$user = null; // destroy singleton instance
$user = test::getinstance();
unset( $user ); // dont destroy instance

Expected result:

singleton not destroying with setting a getted instance with
reference to null

Actual result:
--
singleton destroyed





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


#29378 [NoF-Csd]: foreach() doesn't work with arrays returned by __get

2005-03-18 Thread tony2001
 ID:   29378
 Updated by:   [EMAIL PROTECTED]
 Reported By:  chernyshevsky at hotmail dot com
-Status:   No Feedback
+Status:   Closed
 Bug Type: Zend Engine 2 problem
 Operating System: Windows 2000
 PHP Version:  5.0.0
 New Comment:

Ok, marking it as closed.


Previous Comments:


[2005-03-18 17:38:52] jrhernandez05 at gmail dot com

I have tried the original reproduce code using the latest PHP snapshot,
and have also tried it using some similar code I'm using in my
application, and it's working fine now! My environment is Windows 2000
using Apache2.



[2005-03-14 01:00:20] php-bugs at lists dot php dot net

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.



[2005-03-06 20:52:40] [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-02-11 15:42:50] l0cky at jolt dot co dot uk

The simplest solution I have is

//Copy works
foreach($array = $object-array as $element)
{
print($element);
}

However, if you want to access the array elements by reference instead
of copy, then you're in trouble.

Even this produces the same error:

$array_ref = $object-array;



[2004-10-25 23:14:57] benneh at gmail dot com

I've just run into this problem, here is my test case

Testcase:
-
class Language {
private $lang_bits = array(); 
public function __get($lang_bit) {
global $$lang_bit;

if(!isset($this-lang_bits[$lang_bit])) {
$this-lang_bits[$lang_bit] = $$lang_bit;
}
return $this-lang_bits[$lang_bit];
}
}

$page = array('bla' = 'xyz');
$lang = new Language;
foreach($lang-page as $lang_key = $lang_bit) {
echo $lang_key.' = '.$lang_bit;
}

Expected Results :
--
bla = xyz

Actual Results :

Fatal error: Cannot access undefined property for object with
overloaded property access
Just confirming its presence in 5.0.2 WinXP SP2 Apache 1.3.31



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

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