#45726 [Asn->Csd]: PHP_Archive / Archive.php missing

2008-09-14 Thread helly
 ID:   45726
 Updated by:   [EMAIL PROTECTED]
 Reported By:  Bjorn dot Wiberg at its dot uu dot se
-Status:   Assigned
+Status:   Closed
 Bug Type: PHAR related
-Operating System: AIX 5.3 5300-08-01-0819
+Operating System: *
 PHP Version:  5.3CVS-2008-08-06
 Assigned To:  helly
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Cannot reproduce, Iirc this did happen in earlier versions though.

Try running buildconf.

./buildconf --force && ./configure --disable-all --enable-phar && make
[...]
Generating phar.php
Generating phar.phar
Pear package PHP_Archive or Archive.php class file not found.
clicommand.inc
directorygraphiterator.inc
directorytreeiterator.inc
invertedregexiterator.inc
pharcommand.inc
phar.inc

Build complete.
Don't forget to run 'make test'.



Previous Comments:


[2008-08-29 12:26:01] rainer dot tammer at schulergroup dot com

Hello,
the same problem exists on AIX 5.2 / 5.3.
Bye
  Rainer



[2008-08-22 22:12:30] technopark02 at gmail dot com

This issue is easy to reproduce with php5.3-200808220630 on Solaris 10
x86/x64 as well.



[2008-08-13 19:25:03] [EMAIL PROTECTED]

Assigned to the PHAR maintainer.



[2008-08-06 08:03:49] Bjorn dot Wiberg at its dot uu dot se

Sorry, same error with 5.3-dev (5.3-200808060630):

---8<--- excerpt ---8<---
t/power_510_32/usr/lib
-L/gestconf/project/GNOME_ACL/GNOME/build/acc_gnome2_14_0f1/export/power_510_32/usr/lib
-L/gestconf/project/GNOME_ACL/GNOME/build/GNOME_2_14_0/export/power_510_32/usr/lib
-L/users/project/PDP/PDP_51_vac_6_14/usr/ccs/lib
-L/users/project/PDP/PDP_51_vac_6_14/usr/lib -lz -lm -lz -ljpeg -lssl
-lcrypto -lgdbm -lbz2 -lz -lssl -lcrypto -lm -lz -liconv -lm -lcurl
-lssl -lcrypto -lz -lssl -lcrypto -lz -lz -liconv -lm -lz -liconv -lm
-lz -liconv -lm -lz -liconv -lm -lz -liconv -lm -lz -liconv -lm -lz
-liconv -lm -lz -liconv -lm -lxslt -lz -liconv -lm -lxml2 -lpthread -lz
-liconv -lm -lz -liconv -lm
-Wl,-blibpath:/usr/local/lib:/opt/freeware/lib:/usr/X11R6/lib:/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0:/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/../../..:/usr/lib:/lib

ld: 0711-224 WARNING: Duplicate symbol: php_optidx
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
ld: 0711-783 WARNING: TOC overflow. TOC size: 72664 Maximum size:
65536
Extra instructions are being generated for each reference to a
TOC
symbol if the symbol is in the TOC overflow area.
Generating phar.php
Generating phar.phar
Pear package PHP_Archive or Archive.php class file not found.

Fatal error: Uncaught exception 'PharException' with message 'illegal
stub for phar
"/home/bwiberg/rpm/BUILD/php5.3-200808060630/ext/phar/phar.phar"' in
/home/bwiberg/rpm/BUILD/php5.3-200808060630/ext/phar/phar.php:994
Stack trace:
#0 /home/bwiberg/rpm/BUILD/php5.3-200808060630/ext/phar/phar.php(994):
Phar->setStub('#!/apache/php/b...')
#1 /home/bwiberg/rpm/BUILD/php5.3-200808060630/ext/phar/phar.php(1054):
PharCommand->phar_set_stub_begin(Object(Phar), '/home/bwiberg/r...',
'/home/bwiberg/r...', '/apache/php/bin...')
#2 [internal function]: PharCommand->cli_cmd_run_pack(Array)
#3 /home/bwiberg/rpm/BUILD/php5.3-200808060630/ext/phar/phar.php(225):
call_user_func(Array, Array)
#4 /home/bwiberg/rpm/BUILD/php5.3-200808060630/ext/phar/phar.php(2073):
CLICommand->__construct(19, Array)
#5 {main}
  thrown in
/home/bwiberg/rpm/BUILD/php5.3-200808060630/ext/phar/phar.php on line
994
make: *** [ext/phar/phar.phar] Error 255
Bad exit status from /var/opt/freeware/tmp/rpm-tmp.10312 (%build)

[EMAIL PROTECTED]:~/rpm/SPECS$ cd ..
[EMAIL PROTECTED]:~/rpm$ cd BUILD/php5.3-200808060630/
[EMAIL PROTECTED]:~/rpm/BUILD/php5.3-200808060630$
/opt/freeware/bin/find -iname Archive.php
[EMAIL PROTECTED]:~/rpm/BUILD/php5.3-200808060630$ 
--->8--- end excerpt --->8---

(No Archive.php anywhere...)



[2008-08-05 13:53:40] Bjorn dot Wiberg at its dot uu dot se

Description:

PHP complains about Archive.php / PHP_Archive not being found during
compilation.

Reproduce code:
---
#! /bin/sh
#
# Created by configure

LDFLAGS='-Wl,-bbigtoc' \
CC='gcc' \
'./configure' \
'--disable-fileinfo' \
'--enable-bcmath' \
'--enable-calendar' \
'--enable-cli' \
'--enable-dba' \
'--enable-dbase' \
'--enable-debug' \
'--enable-exif' \
'--enable-flatfile' \
'--enable-ftp' \
'--enable-gd-jis-conv' \
'--enable-gd-native-ttf' \
'--ena

#46074 [NEW]: Bus error during running PHP CLI under IRIX 6.5.30

2008-09-14 Thread neko at nekochan dot net
From: neko at nekochan dot net
Operating system: IRIX 6.5.30
PHP version:  5.3.0alpha2
PHP Bug Type: Reproducible crash
Bug description:  Bus error during running PHP CLI under IRIX 6.5.30

Description:

Bus error during 'Generatring phar.php' phase of build; also occurs if 
using '--disable-phar' immediately after running 'gmake test'. Bus 
error occurs with both MIPSpro 7.4.4m and GCC-4.3.1 compilers under 
IRIX 6.5.30. Also tested with php5.3-200809140030 with same result.

./configure options:

'./configure' '--prefix=/usr/nekoware/php5' 
'--enable-dba' 
'--enable-calendar'
'--enable-wddx' 
'--with-config-file-path=/usr/nekoware/etc/php5' 
'--with-apxs2=/usr/nekoware/apache2/bin/apxs' 
'--enable-cli' '--with-libxml-dir=/usr/nekoware'
'--with-png-dir=/usr/nekoware' 
'--with-jpeg-dir=/usr/nekoware'
'--with-freetype-dir=/usr/nekoware' 
'--with-zlib-dir=/usr/nekoware' 
'--with-zlib'
'--with-curlwrappers' 
'--with-curl=shared,/usr/nekoware' 
'--with-openssl=shared,/usr/nekoware' 
'--with-mysql=shared,mysqlnd' 
'--with-mysqli=shared,mysqlnd' 
'--with-mhash=shared,/usr/nekoware' 
'--with-mcrypt=shared,/usr/nekoware'
'--with-bz2=shared,/usr/nekoware'
'--enable-ftp=shared' 
'--enable-sockets=shared' 
'--with-gd=shared' 
'--enable-exif=shared'
'--with-xmlrpc' 
'--with-gettext=shared,/usr/nekoware' 
'--with-iconv-dir=/usr/nekoware' 
'--enable-mbstring=shared' 
'--enable-sysvsem=shared'
'--enable-sysvshm=shared' 
'--enable-sysvmsg=shared' 
'--with-xpm-dir=/usr/lib32'
'--enable-zip=shared' 
'--with-pgsql=shared,/usr/nekoware/pgsql' 
'--with-mm=/usr/nekoware



Reproduce code:
---
gmake

or with '--disable-phar':

gmake test

Expected result:

Completed build and ability to run php test process.

Actual result:
--
...
Generating phar.php
gmake: *** [ext/phar/phar.php] Bus error (core dumped)
gmake: *** Deleting file `ext/phar/phar.php'

# dbx ./sapi/cli/php core
dbx version 7.3.7 (96015_Nov16 MR) Nov 16 2004 07:34:16
Core from signal SIGBUS: Bus error
(dbx) where

Thread 0x1
>  0 zend_assign_to_variable(0x14a0, 0x107fde5c, 0x0, 0xc, 0x21000, 
0x1000, 0xc, 0x106bab80) ["/opt/build/php-
5.3.0alpha2/Zend/zend_execute.c":739, 0x1039ebcc]
   1 ZEND_ASSIGN_SPEC_CV_TMP_HANDLER(0x107fdde8, 0xd, 0x0, 0xc, 
0x21000, 0x1000, 0xc, 0x106bab80) ["/opt/build/php-
5.3.0alpha2/Zend/zend_vm_execute.h":25843, 0x103ef740]
   2 execute(0x106ba598, 0xd, 0x0, 0xc, 0x21000, 0x1000, 0xc, 
0x106bab80) ["/opt/build/php-5.3.0alpha2/Zend/zend_vm_execute.h":104, 
0x103a0418]
   3 zend_execute_scripts(0x8, 0xd, 0x3, 0x0, 0x21000, 0x1000, 0xc, 
0x106bab80) ["/opt/build/php-5.3.0alpha2/Zend/zend.c":1197, 
0x10374a58]
   4 php_execute_script(0x14a0, 0xd, 0x0, 0xc, 0x21000, 0x1000, 0xc, 
0x106bab80) ["/opt/build/php-5.3.0alpha2/main/main.c":2074, 
0x10313158]
   5 main(0xf, 0x7fff2ef4, 0x0, 0xc, 0x21000, 0x1000, 0xc, 0x106bab80) 
["/opt/build/php-5.3.0alpha2/sapi/cli/php_cli.c":1130, 0x103fed20]
   6 __start() ["/xlv55/kudzu-
apr12/work/irix/lib/libc/libc_n32_M4/csu/crt1text.s":177, 0x1004cb88]
(dbx) quit 

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



#45656 [Opn->Asn]: spl_autoload cannot handle exceptions

2008-09-14 Thread colder
 ID:   45656
 Updated by:   [EMAIL PROTECTED]
 Reported By:  php at benjaminschulz dot com
-Status:   Open
+Status:   Assigned
 Bug Type: SPL related
 Operating System: *
 PHP Version:  5.3CVS-2008-07-29 (CVS)
-Assigned To:  
+Assigned To:  colder


Previous Comments:


[2008-07-29 15:30:47] php at benjaminschulz dot com

Description:

If spl_autoload() is triggered by class_exists() it is able to handle
occuring exceptions but if it is triggered through "new .." then
exceptions are silently ignored.
Attached is an adapted copy of spl_autoload_012.phpt.

Reproduce code:
---
--TEST--
SPL: spl_autoload() capturing multiple Exceptions in __autoload
--FILE--

===DONE===
--EXPECTF--
autoload_first
autoload_second

Fatal error: Uncaught exception 'Exception' with message 'first' in
%sspl_autoload_013.php:%d
Stack trace:
#0 [internal function]: autoload_first('ThisClassDoesNo...')
#1 [internal function]: spl_autoload_call('ThisClassDoesNo...')
#2 %sspl_autoload_013.php(%d): class_exists('ThisClassDoesNo...')
#3 {main}

Next exception 'Exception' with message 'second' in
%sspl_autoload_013.php:%d
Stack trace:
#0 [internal function]: autoload_second('ThisClassDoesNo...')
#1 [internal function]: spl_autoload_call('ThisClassDoesNo...')
#2 %sspl_autoload_013.php(%d): class_exists('ThisClassDoesNo...')
#3 {main}
  thrown in %sspl_autoload_013.php on line %d


Actual result:
--
autoload_first
autoload_second
PHP Fatal error:  Class 'ThisClassDoesNotExist' not found in ... on
line 0

Fatal error: Class 'ThisClassDoesNotExist' not found in ... on line 0





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



#46075 [NEW]: strftime memory leak?

2008-09-14 Thread acc_php at riggers dot me dot uk
From: acc_php at riggers dot me dot uk
Operating system: Vista x64
PHP version:  5.2.6
PHP Bug Type: Date/time related
Bug description:  strftime memory leak?

Description:

strftime() called many times results in increasing memory usage. date() is
OK. This is on Vista x64. PHP 5.1.6 (only version i have at the moment) on
linux does not exhibit the same problem.

Reproduce code:
---


Expected result:

End memory usage for strftime() should be close to Start memory usage.

Actual result:
--
C:\php-gtk2>php andy\symftest\strftime.test.php
=== strftime() ===
Start: 54384
End: 119800

=== date() ===
Start: 119800
End: 119768

C:\php-gtk2>php -v
PHP 5.2.6 (cli) (built: May  2 2008 19:37:32)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

C:\php-gtk2>

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



#46076 [NEW]: Php registered streams: no streams registered with session.so

2008-09-14 Thread sl9 at gmx dot net
From: sl9 at gmx dot net
Operating system: Linux 2.6, ArchLinux
PHP version:  5.2.6
PHP Bug Type: Dynamic loading
Bug description:  Php registered streams: no streams registered with session.so

Description:

Hi,

I compiled php 5.2.6 with the suhosin patch. I have some issues 
relating to the session.so and 
simplexml.so modules, which also affects zlib.so and bz2.so.
I have traced behavior, which doesn't let me include or read files, 
to the registered php 
streams. Which is easily obtainable from the phpinfo() output.
Consider the lines below and their output. The registered php streams 
string gets mangled by 
including different modules. The resulting string seems to be 
semantically incorrect.

I've tried a lot of different configure lines, changing extensions, 
with or without the suhosin 
patch. Didn't seem to change results except when I used --enable-
simplexml instead of --enable-
simplexml=shared. So compiling it in or loading it via php.ini is a 
workaround.





Reproduce code:
---
The configure string I used contains all the options I could find (sorry
about that).
--enable-libxml=shared
--without-libxml-dir
--with-openssl=shared
--with-kerberos=shared
--with-pcre-regex=/usr
--with-zlib=shared
--without-zlib-dir
--disable-bcmath
--with-bz2=shared
--enable-calendar=shared
--enable-ctype
--with-curl=shared
--without-curl-wrappers
--disable-dba
--without-qdbm
--without-gdbm
--without-ndbm
--without-db4
--without-db3
--without-db2
--without-db1
--without-dbm
--without-cdb
--disable-inifile
--disable-flatfile
--disable-dbase
--enable-dom
--without-libxml-dir
--enable-exif=shared
--without-fbsql
--without-fdftk
--enable-filter
--without-pcre-dir
--enable-ftp=shared
--without-openssl-dir
--with-gd=shared
--with-jpeg-dir=shared,/usr
--with-png-dir=shared,/usr
--without-zlib-dir
--without-xmp-dir
--with-ttf=shared
--without-freetype-dir
--without-t1lib
--enable-gd-native-ttf
--disable-gd-jis-conv
--without-gettext
--without-gmp
--enable-hash=shared
--with-iconv=shared
--without-imap
--with-kerberos
--with-imap-ssl=shared
--without-interbase
--enable-json=shared
--without-ldap
--without-ldap-sasl
--disable-mbstring
--disable-mbregex
--disable-mbregex-backtrack
--without-libmbfl
--with-mcrypt=shared
--with-mhash=shared
--with-mime-magic=shared
--without-ming
--without-msql
--without-mssql
--with-mysql=shared
--with-mysql-sock=/tmp/mysql.sock
--without-zlib-dir
--with-mysqli=shared
--disable-embedded-mysqli
--without-ncurses
--without-oci8
--without-adabas
--without-sapdb
--without-solid
--without-ibm-db2
--without-ODBCRouter
--without-empress
--without-empress-bcs
--without-birdstep
--without-custom-odbc
--without-iodbc
--without-esoob
--without-unixODBC
--without-dbmaker
--enable-pcntl
--enable-pdo=shared
--without-pdo-dblib
--without-pdo-firebird
--with-pdo-mysql=shared
--without-zlib-dir
--without-pdo-oci
--without-pdo-odbc
--without-pdo-pgsql
--with-pdo-sqlite=shared
--without-pgsql
--enable-posix=shared
--without-pspell
--without-libedit
--with-readline=shared
--without-recode
--enable-reflection
--enable-session=shared
--without-mm
--enable-shmop=shared
--enable-simplexml=shared
--without-libxml-dir
--without-snmp
--without-openssl-dir
--without-ucd-snmp-hack
--enable-soap=shared
--without-libxml-dir
--enable-sockets=shared
--enable-spl=shared
--with-sqlite=shared
--enable-sqlite-utf8=shared
--with-regex=php
--without-sybase
--without-sybase-ct
--enable-sysvmsg=shared
--enable-sysvsem=shared
--enable-sysvshm=shared
--without-tidy
--disable-tokenizer
--disable-wddx
--without-libxml-dir
--without-libexpat-dir
--enable-xml
--without-libxml-dir
--without-libexpat-dir
--enable-xmlreader=shared
--without-libxml-dir
--without-xmlrpc
--without-libxml-dir
--without-libexpat-dir
--without-iconv-dir
--enable-xmlwriter=shared
--without-libxml-dir
--with-xsl=shared
--enable-zip=shared
--without-zlib-dir

I have ran my test code on different configurations, but the issues seem
to be directly related to the php registered streams string. Which is
easier to capture, post and relate to behavior, which is done in the
'actual result' section.

Example 1:
php.ini: (no extensions loaded)
phpinfo()'s registered php streams: "php, file, data, http, ftp"
Note: local file opening/reading (fopen, fread) and inclusion (include,
require, require_once) is working fully.

Example 2:
php.ini:
extension=bz2.so
extension=zlib.so

phpinfo()'s registered php streams: "php, file, data, http, ftp"
Note: the two compres

#45726 [Csd->Opn]: PHP_Archive / Archive.php missing

2008-09-14 Thread felipe
 ID:   45726
 Updated by:   [EMAIL PROTECTED]
 Reported By:  Bjorn dot Wiberg at its dot uu dot se
-Status:   Closed
+Status:   Open
 Bug Type: PHAR related
 Operating System: *
 PHP Version:  5.3CVS-2008-08-06
 Assigned To:  helly
 New Comment:

Hi,
I can reproduce on BSD.

The php executable path (/usr/home/felipe/php5)  is being passed to
phar_set_stub_begin() in the $loader parameter, hence the binary is
included in string passed to $phar->setStub();


Previous Comments:


[2008-09-14 07:29:48] [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.

Cannot reproduce, Iirc this did happen in earlier versions though.

Try running buildconf.

./buildconf --force && ./configure --disable-all --enable-phar && make
[...]
Generating phar.php
Generating phar.phar
Pear package PHP_Archive or Archive.php class file not found.
clicommand.inc
directorygraphiterator.inc
directorytreeiterator.inc
invertedregexiterator.inc
pharcommand.inc
phar.inc

Build complete.
Don't forget to run 'make test'.




[2008-08-29 12:26:01] rainer dot tammer at schulergroup dot com

Hello,
the same problem exists on AIX 5.2 / 5.3.
Bye
  Rainer



[2008-08-22 22:12:30] technopark02 at gmail dot com

This issue is easy to reproduce with php5.3-200808220630 on Solaris 10
x86/x64 as well.



[2008-08-13 19:25:03] [EMAIL PROTECTED]

Assigned to the PHAR maintainer.



[2008-08-06 08:03:49] Bjorn dot Wiberg at its dot uu dot se

Sorry, same error with 5.3-dev (5.3-200808060630):

---8<--- excerpt ---8<---
t/power_510_32/usr/lib
-L/gestconf/project/GNOME_ACL/GNOME/build/acc_gnome2_14_0f1/export/power_510_32/usr/lib
-L/gestconf/project/GNOME_ACL/GNOME/build/GNOME_2_14_0/export/power_510_32/usr/lib
-L/users/project/PDP/PDP_51_vac_6_14/usr/ccs/lib
-L/users/project/PDP/PDP_51_vac_6_14/usr/lib -lz -lm -lz -ljpeg -lssl
-lcrypto -lgdbm -lbz2 -lz -lssl -lcrypto -lm -lz -liconv -lm -lcurl
-lssl -lcrypto -lz -lssl -lcrypto -lz -lz -liconv -lm -lz -liconv -lm
-lz -liconv -lm -lz -liconv -lm -lz -liconv -lm -lz -liconv -lm -lz
-liconv -lm -lz -liconv -lm -lxslt -lz -liconv -lm -lxml2 -lpthread -lz
-liconv -lm -lz -liconv -lm
-Wl,-blibpath:/usr/local/lib:/opt/freeware/lib:/usr/X11R6/lib:/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0:/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/../../..:/usr/lib:/lib

ld: 0711-224 WARNING: Duplicate symbol: php_optidx
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
ld: 0711-783 WARNING: TOC overflow. TOC size: 72664 Maximum size:
65536
Extra instructions are being generated for each reference to a
TOC
symbol if the symbol is in the TOC overflow area.
Generating phar.php
Generating phar.phar
Pear package PHP_Archive or Archive.php class file not found.

Fatal error: Uncaught exception 'PharException' with message 'illegal
stub for phar
"/home/bwiberg/rpm/BUILD/php5.3-200808060630/ext/phar/phar.phar"' in
/home/bwiberg/rpm/BUILD/php5.3-200808060630/ext/phar/phar.php:994
Stack trace:
#0 /home/bwiberg/rpm/BUILD/php5.3-200808060630/ext/phar/phar.php(994):
Phar->setStub('#!/apache/php/b...')
#1 /home/bwiberg/rpm/BUILD/php5.3-200808060630/ext/phar/phar.php(1054):
PharCommand->phar_set_stub_begin(Object(Phar), '/home/bwiberg/r...',
'/home/bwiberg/r...', '/apache/php/bin...')
#2 [internal function]: PharCommand->cli_cmd_run_pack(Array)
#3 /home/bwiberg/rpm/BUILD/php5.3-200808060630/ext/phar/phar.php(225):
call_user_func(Array, Array)
#4 /home/bwiberg/rpm/BUILD/php5.3-200808060630/ext/phar/phar.php(2073):
CLICommand->__construct(19, Array)
#5 {main}
  thrown in
/home/bwiberg/rpm/BUILD/php5.3-200808060630/ext/phar/phar.php on line
994
make: *** [ext/phar/phar.phar] Error 255
Bad exit status from /var/opt/freeware/tmp/rpm-tmp.10312 (%build)

[EMAIL PROTECTED]:~/rpm/SPECS$ cd ..
[EMAIL PROTECTED]:~/rpm$ cd BUILD/php5.3-200808060630/
[EMAIL PROTECTED]:~/rpm/BUILD/php5.3-200808060630$
/opt/freeware/bin/find -iname Archive.php
[EMAIL PROTECTED]:~/rpm/BUILD/php5.3-200808060630$ 
--->8--- end excerpt --->8---

(No Archive.php anywhere...)



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

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



#46076 [Com]: Php registered streams: no streams registered with session.so

2008-09-14 Thread sl9 at gmx dot net
 ID:   46076
 Comment by:   sl9 at gmx dot net
 Reported By:  sl9 at gmx dot net
 Status:   Open
 Bug Type: Dynamic loading
 Operating System: Linux 2.6, ArchLinux
 PHP Version:  5.2.6
 New Comment:

Using --disable-spl instead of --enable-spl=shared seems to fix all 
of the above problems. But this could mean, I can't use spl.

Still session.so changes the order of the registered streams string.


Previous Comments:


[2008-09-14 13:12:43] sl9 at gmx dot net

Description:

Hi,

I compiled php 5.2.6 with the suhosin patch. I have some issues 
relating to the session.so and 
simplexml.so modules, which also affects zlib.so and bz2.so.
I have traced behavior, which doesn't let me include or read files, 
to the registered php 
streams. Which is easily obtainable from the phpinfo() output.
Consider the lines below and their output. The registered php streams 
string gets mangled by 
including different modules. The resulting string seems to be 
semantically incorrect.

I've tried a lot of different configure lines, changing extensions, 
with or without the suhosin 
patch. Didn't seem to change results except when I used --enable-
simplexml instead of --enable-
simplexml=shared. So compiling it in or loading it via php.ini is a 
workaround.





Reproduce code:
---
The configure string I used contains all the options I could find
(sorry about that).
--enable-libxml=shared
--without-libxml-dir
--with-openssl=shared
--with-kerberos=shared
--with-pcre-regex=/usr
--with-zlib=shared
--without-zlib-dir
--disable-bcmath
--with-bz2=shared
--enable-calendar=shared
--enable-ctype
--with-curl=shared
--without-curl-wrappers
--disable-dba
--without-qdbm
--without-gdbm
--without-ndbm
--without-db4
--without-db3
--without-db2
--without-db1
--without-dbm
--without-cdb
--disable-inifile
--disable-flatfile
--disable-dbase
--enable-dom
--without-libxml-dir
--enable-exif=shared
--without-fbsql
--without-fdftk
--enable-filter
--without-pcre-dir
--enable-ftp=shared
--without-openssl-dir
--with-gd=shared
--with-jpeg-dir=shared,/usr
--with-png-dir=shared,/usr
--without-zlib-dir
--without-xmp-dir
--with-ttf=shared
--without-freetype-dir
--without-t1lib
--enable-gd-native-ttf
--disable-gd-jis-conv
--without-gettext
--without-gmp
--enable-hash=shared
--with-iconv=shared
--without-imap
--with-kerberos
--with-imap-ssl=shared
--without-interbase
--enable-json=shared
--without-ldap
--without-ldap-sasl
--disable-mbstring
--disable-mbregex
--disable-mbregex-backtrack
--without-libmbfl
--with-mcrypt=shared
--with-mhash=shared
--with-mime-magic=shared
--without-ming
--without-msql
--without-mssql
--with-mysql=shared
--with-mysql-sock=/tmp/mysql.sock
--without-zlib-dir
--with-mysqli=shared
--disable-embedded-mysqli
--without-ncurses
--without-oci8
--without-adabas
--without-sapdb
--without-solid
--without-ibm-db2
--without-ODBCRouter
--without-empress
--without-empress-bcs
--without-birdstep
--without-custom-odbc
--without-iodbc
--without-esoob
--without-unixODBC
--without-dbmaker
--enable-pcntl
--enable-pdo=shared
--without-pdo-dblib
--without-pdo-firebird
--with-pdo-mysql=shared
--without-zlib-dir
--without-pdo-oci
--without-pdo-odbc
--without-pdo-pgsql
--with-pdo-sqlite=shared
--without-pgsql
--enable-posix=shared
--without-pspell
--without-libedit
--with-readline=shared
--without-recode
--enable-reflection
--enable-session=shared
--without-mm
--enable-shmop=shared
--enable-simplexml=shared
--without-libxml-dir
--without-snmp
--without-openssl-dir
--without-ucd-snmp-hack
--enable-soap=shared
--without-libxml-dir
--enable-sockets=shared
--enable-spl=shared
--with-sqlite=shared
--enable-sqlite-utf8=shared
--with-regex=php
--without-sybase
--without-sybase-ct
--enable-sysvmsg=shared
--enable-sysvsem=shared
--enable-sysvshm=shared
--without-tidy
--disable-tokenizer
--disable-wddx
--without-libxml-dir
--without-libexpat-dir
--enable-xml
--without-libxml-dir
--without-libexpat-dir
--enable-xmlreader=shared
--without-libxml-dir
--without-xmlrpc
--without-libxml-dir
--without-libexpat-dir
--without-iconv-dir
--enable-xmlwriter=shared
--without-libxml-dir
--with-xsl=shared
--enable-zip=shared
--without-zlib-dir

I have ran my test code on different configurations, but the issues
seem to be directly related to the php registered streams string. Which
is easier to capture, post and relate to behavior, which is done in the
'actual result' section.

Ex

#46076 [Opn]: Php registered streams: no streams registered with session.so

2008-09-14 Thread sl9 at gmx dot net
 ID:   46076
 User updated by:  sl9 at gmx dot net
 Reported By:  sl9 at gmx dot net
 Status:   Open
-Bug Type: Dynamic loading
+Bug Type: Streams related
 Operating System: Linux 2.6, ArchLinux
 PHP Version:  5.2.6
 New Comment:

Changed from "dynamic loading" to "streams related". Seems more 
appropriate.


Previous Comments:


[2008-09-14 13:56:51] sl9 at gmx dot net

Using --disable-spl instead of --enable-spl=shared seems to fix all 
of the above problems. But this could mean, I can't use spl.

Still session.so changes the order of the registered streams string.



[2008-09-14 13:12:43] sl9 at gmx dot net

Description:

Hi,

I compiled php 5.2.6 with the suhosin patch. I have some issues 
relating to the session.so and 
simplexml.so modules, which also affects zlib.so and bz2.so.
I have traced behavior, which doesn't let me include or read files, 
to the registered php 
streams. Which is easily obtainable from the phpinfo() output.
Consider the lines below and their output. The registered php streams 
string gets mangled by 
including different modules. The resulting string seems to be 
semantically incorrect.

I've tried a lot of different configure lines, changing extensions, 
with or without the suhosin 
patch. Didn't seem to change results except when I used --enable-
simplexml instead of --enable-
simplexml=shared. So compiling it in or loading it via php.ini is a 
workaround.





Reproduce code:
---
The configure string I used contains all the options I could find
(sorry about that).
--enable-libxml=shared
--without-libxml-dir
--with-openssl=shared
--with-kerberos=shared
--with-pcre-regex=/usr
--with-zlib=shared
--without-zlib-dir
--disable-bcmath
--with-bz2=shared
--enable-calendar=shared
--enable-ctype
--with-curl=shared
--without-curl-wrappers
--disable-dba
--without-qdbm
--without-gdbm
--without-ndbm
--without-db4
--without-db3
--without-db2
--without-db1
--without-dbm
--without-cdb
--disable-inifile
--disable-flatfile
--disable-dbase
--enable-dom
--without-libxml-dir
--enable-exif=shared
--without-fbsql
--without-fdftk
--enable-filter
--without-pcre-dir
--enable-ftp=shared
--without-openssl-dir
--with-gd=shared
--with-jpeg-dir=shared,/usr
--with-png-dir=shared,/usr
--without-zlib-dir
--without-xmp-dir
--with-ttf=shared
--without-freetype-dir
--without-t1lib
--enable-gd-native-ttf
--disable-gd-jis-conv
--without-gettext
--without-gmp
--enable-hash=shared
--with-iconv=shared
--without-imap
--with-kerberos
--with-imap-ssl=shared
--without-interbase
--enable-json=shared
--without-ldap
--without-ldap-sasl
--disable-mbstring
--disable-mbregex
--disable-mbregex-backtrack
--without-libmbfl
--with-mcrypt=shared
--with-mhash=shared
--with-mime-magic=shared
--without-ming
--without-msql
--without-mssql
--with-mysql=shared
--with-mysql-sock=/tmp/mysql.sock
--without-zlib-dir
--with-mysqli=shared
--disable-embedded-mysqli
--without-ncurses
--without-oci8
--without-adabas
--without-sapdb
--without-solid
--without-ibm-db2
--without-ODBCRouter
--without-empress
--without-empress-bcs
--without-birdstep
--without-custom-odbc
--without-iodbc
--without-esoob
--without-unixODBC
--without-dbmaker
--enable-pcntl
--enable-pdo=shared
--without-pdo-dblib
--without-pdo-firebird
--with-pdo-mysql=shared
--without-zlib-dir
--without-pdo-oci
--without-pdo-odbc
--without-pdo-pgsql
--with-pdo-sqlite=shared
--without-pgsql
--enable-posix=shared
--without-pspell
--without-libedit
--with-readline=shared
--without-recode
--enable-reflection
--enable-session=shared
--without-mm
--enable-shmop=shared
--enable-simplexml=shared
--without-libxml-dir
--without-snmp
--without-openssl-dir
--without-ucd-snmp-hack
--enable-soap=shared
--without-libxml-dir
--enable-sockets=shared
--enable-spl=shared
--with-sqlite=shared
--enable-sqlite-utf8=shared
--with-regex=php
--without-sybase
--without-sybase-ct
--enable-sysvmsg=shared
--enable-sysvsem=shared
--enable-sysvshm=shared
--without-tidy
--disable-tokenizer
--disable-wddx
--without-libxml-dir
--without-libexpat-dir
--enable-xml
--without-libxml-dir
--without-libexpat-dir
--enable-xmlreader=shared
--without-libxml-dir
--without-xmlrpc
--without-libxml-dir
--without-libexpat-dir
--without-iconv-dir
--enable-xmlwriter=shared
--without-libxml-dir
--with-xsl=shared
--enable-zip=shared
--without-zlib-dir

I have ran

#45726 [Opn]: PHP_Archive / Archive.php missing

2008-09-14 Thread felipe
 ID:   45726
 Updated by:   [EMAIL PROTECTED]
 Reported By:  Bjorn dot Wiberg at its dot uu dot se
 Status:   Open
 Bug Type: PHAR related
 Operating System: *
 PHP Version:  5.3CVS-2008-08-06
 Assigned To:  helly
 New Comment:

s/php executable path/php directory/

The file_get_contents() is reading the dir. as a real file.

sapi/cli/php -r 'var_dump(file_get_contents("/home/felipe/php5"));'

string(2560) "��l
 .�k
..-�l
buildmk.stamp��.�l  
CVS��l▒
.cvsignoreB�.gdbinitw�U��CODING_STANDARDS�j��CREDITS��l



Previous Comments:


[2008-09-14 13:48:05] [EMAIL PROTECTED]

Hi,
I can reproduce on BSD.

The php executable path (/usr/home/felipe/php5)  is being passed to
phar_set_stub_begin() in the $loader parameter, hence the binary is
included in string passed to $phar->setStub();



[2008-09-14 07:29:48] [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.

Cannot reproduce, Iirc this did happen in earlier versions though.

Try running buildconf.

./buildconf --force && ./configure --disable-all --enable-phar && make
[...]
Generating phar.php
Generating phar.phar
Pear package PHP_Archive or Archive.php class file not found.
clicommand.inc
directorygraphiterator.inc
directorytreeiterator.inc
invertedregexiterator.inc
pharcommand.inc
phar.inc

Build complete.
Don't forget to run 'make test'.




[2008-08-29 12:26:01] rainer dot tammer at schulergroup dot com

Hello,
the same problem exists on AIX 5.2 / 5.3.
Bye
  Rainer



[2008-08-22 22:12:30] technopark02 at gmail dot com

This issue is easy to reproduce with php5.3-200808220630 on Solaris 10
x86/x64 as well.



[2008-08-13 19:25:03] [EMAIL PROTECTED]

Assigned to the PHAR maintainer.



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

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



#46077 [NEW]: E_STRICT warns about two constructors only on included files

2008-09-14 Thread atomo64 at gmail dot com
From: atomo64 at gmail dot com
Operating system: Debian sid
PHP version:  5.2.6
PHP Bug Type: Class/Object related
Bug description:  E_STRICT warns about two constructors only on included files

Description:

[This is http://bugs.debian.org/498914]

When a class has two constructors (__constructor, and a method named 
after the class) E_STRICT only produces a warning when the file 
defining the class is included/required but not when file is 
executed directly.

Reproduce code:
---
file foo.php:


file bar.php:


$ php -n foo.php; echo ---; php -n bar.php

Expected result:

Strict Standards: Redefining already defined constructor for class 
foo in /tmp/foo.php on line 6
---

Strict Standards: Redefining already defined constructor for class 
foo in /tmp/foo.php on line 6


Actual result:
--
---

Strict Standards: Redefining already defined constructor for class 
foo in /tmp/foo.php on line 6

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



#46078 [NEW]: var_dump(int xor int) crash

2008-09-14 Thread ja dot doma at gmail dot com
From: ja dot doma at gmail dot com
Operating system: Windows
PHP version:  5.2.6
PHP Bug Type: Reproducible crash
Bug description:  var_dump(int xor int) crash

Description:

PHP CLI (console mode) crashes when executing:

var_dump(120 xor 111); //or any other number

reproducible: always


//this works fine
$ch = 120 xor 111;
var_dump($ch);

//this works too
var_dump(120);
var_dump(120 + 3);


weird because other numerical expressions do not cause the crash, only
xor.

Reproduce code:
---
1) make test.php
2) put  into the file
3) php test.php

Expected result:

int(120)


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



#46078 [Opn]: var_dump(int xor int) crash

2008-09-14 Thread ja dot doma at gmail dot com
 ID:   46078
 User updated by:  ja dot doma at gmail dot com
 Reported By:  ja dot doma at gmail dot com
 Status:   Open
 Bug Type: Reproducible crash
 Operating System: Windows
 PHP Version:  5.2.6
 New Comment:

This is clearly 'xor' problem, since this cause crash too:

$ch = (1 xor 3);
var_dump($ch);

//this not
$ch = 1 xor 3;
var_dump($ch); //result will be 1, expecting 2


Previous Comments:


[2008-09-14 19:44:27] ja dot doma at gmail dot com

Description:

PHP CLI (console mode) crashes when executing:

var_dump(120 xor 111); //or any other number

reproducible: always


//this works fine
$ch = 120 xor 111;
var_dump($ch);

//this works too
var_dump(120);
var_dump(120 + 3);


weird because other numerical expressions do not cause the crash, only
xor.

Reproduce code:
---
1) make test.php
2) put  into the file
3) php test.php

Expected result:

int(120)






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



#46079 [NEW]: open_basedir can be by-pass from "PatriotCracker C99Shell" (defined as virus)

2008-09-14 Thread michele at micheleschiavo dot it
From: michele at micheleschiavo dot it
Operating system: linux
PHP version:  5.2.6
PHP Bug Type: Safe Mode/open_basedir
Bug description:  open_basedir can be by-pass from  "PatriotCracker C99Shell"  
(defined as virus)

Description:

i set open_basedir "/var/www/ "in php.ini and if i try fopen /etc/passwd,
php report the warning and not open /etc/passwd, but the "malware" script
can read /etc/passwd.



Expected result:

open_basedir will work


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



#46080 [NEW]: U8T_CANONICAL

2008-09-14 Thread wkanoff at gmail dot com
From: wkanoff at gmail dot com
Operating system: OS X 10.4.11
PHP version:  5.2.6
PHP Bug Type: *Configuration Issues
Bug description:  U8T_CANONICAL

Description:

Using Courier-IMAP 4.4.1
  Courier-Auth 0.61.0

Libraries were installed.

Configure fails --with-imap=/usr/local
without the imap argument it compiles.







Reproduce code:
---
CFLAGS="-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-Wno-pointer-sign" \
./configure --quiet \
--prefix=/usr \
--mandir=/usr/share/man --infodir=/usr/share/info
--sysconfdir=/private/etc \
--with-config-file-path=/etc \
--with-zlib --with-zlib-dir=/usr \
--with-kerberos=/usr \
--with-curl=/usr \
--enable-exif \
--enable-ftp \
--enable-mbstring \
--enable-mbregex \
--enable-sockets \
--enable-soap \
--with-libxml-dir=/usr \
--with-libexpat-dir=/usr/X11R6 \
--with-iodbc=/usr \
--with-openssl=/usr \
--with-ldap=/usr \
--with-imap=/usr/local/ \
--with-mysql=/usr/local/mysql \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-apxs2=/usr/local/sbin/apxs \
--without-pear

Expected result:

to compile

Actual result:
--
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL 
is missing. This should not happen.

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



#46081 [NEW]: Mysql and Mysqli features selected but not installed.

2008-09-14 Thread zitter at zitterwebdesign dot com
From: zitter at zitterwebdesign dot com
Operating system: Vista
PHP version:  5.2.6
PHP Bug Type: *General Issues
Bug description:  Mysql and Mysqli features selected but not installed.

Description:

Simply put, I checked five features, and only three showed up on
phpinfo().
http://www.zitterwebdesign.com/hosted/php5inst.gif


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



#46078 [Opn->Fbk]: var_dump(int xor int) crash

2008-09-14 Thread felipe
 ID:   46078
 Updated by:   [EMAIL PROTECTED]
 Reported By:  ja dot doma at gmail dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Reproducible crash
 Operating System: Windows
 PHP Version:  5.2.6
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.




Previous Comments:


[2008-09-14 20:07:03] ja dot doma at gmail dot com

This is clearly 'xor' problem, since this cause crash too:

$ch = (1 xor 3);
var_dump($ch);

//this not
$ch = 1 xor 3;
var_dump($ch); //result will be 1, expecting 2



[2008-09-14 19:44:27] ja dot doma at gmail dot com

Description:

PHP CLI (console mode) crashes when executing:

var_dump(120 xor 111); //or any other number

reproducible: always


//this works fine
$ch = 120 xor 111;
var_dump($ch);

//this works too
var_dump(120);
var_dump(120 + 3);


weird because other numerical expressions do not cause the crash, only
xor.

Reproduce code:
---
1) make test.php
2) put  into the file
3) php test.php

Expected result:

int(120)






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



#46077 [Opn->Bgs]: E_STRICT warns about two constructors only on included files

2008-09-14 Thread johannes
 ID:   46077
 Updated by:   [EMAIL PROTECTED]
 Reported By:  atomo64 at gmail dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Class/Object related
 Operating System: Debian sid
 PHP Version:  5.2.6
 New Comment:

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

The error is emitted during complication but you'Re changing the error
handling at run-time, try php -derror_reporting=E_STRICT or set php.ini
accordingly


Previous Comments:


[2008-09-14 19:14:03] atomo64 at gmail dot com

Description:

[This is http://bugs.debian.org/498914]

When a class has two constructors (__constructor, and a method named 
after the class) E_STRICT only produces a warning when the file 
defining the class is included/required but not when file is 
executed directly.

Reproduce code:
---
file foo.php:


file bar.php:


$ php -n foo.php; echo ---; php -n bar.php

Expected result:

Strict Standards: Redefining already defined constructor for class 
foo in /tmp/foo.php on line 6
---

Strict Standards: Redefining already defined constructor for class 
foo in /tmp/foo.php on line 6


Actual result:
--
---

Strict Standards: Redefining already defined constructor for class 
foo in /tmp/foo.php on line 6





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



#46033 [Opn->Asn]: Segfault when trying to instance SQLite3Stmt

2008-09-14 Thread johannes
 ID:   46033
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Assigned
 Bug Type: SQLite related
 Operating System: *
 PHP Version:  5.3CVS, 6CVS
-Assigned To:  
+Assigned To:  scottmac
 New Comment:

Scott, SQLite3 is oyur extension :-)


Previous Comments:


[2008-09-09 18:01:17] [EMAIL PROTECTED]

See also:
new SQLite3Result;



[2008-09-09 17:58:04] [EMAIL PROTECTED]

Description:

See below.

Reproduce code:
---
http://bugs.php.net/?id=46033&edit=1



#46033 [Asn->Csd]: Segfault when trying to instance SQLite3Stmt

2008-09-14 Thread scottmac
 ID:   46033
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Assigned
+Status:   Closed
 Bug Type: SQLite related
 Operating System: *
 PHP Version:  5.3CVS, 6CVS
 Assigned To:  scottmac
 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:


[2008-09-15 00:41:01] [EMAIL PROTECTED]

Scott, SQLite3 is oyur extension :-)



[2008-09-09 18:01:17] [EMAIL PROTECTED]

See also:
new SQLite3Result;



[2008-09-09 17:58:04] [EMAIL PROTECTED]

Description:

See below.

Reproduce code:
---
http://bugs.php.net/?id=46033&edit=1



#46066 [Fbk->Opn]: Regular Expression differences between 4.4 and 5.2

2008-09-14 Thread ewen dot cumming at gmail dot com
 ID:   46066
 User updated by:  ewen dot cumming at gmail dot com
 Reported By:  ewen dot cumming at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: PCRE related
 Operating System: Debian Linux
 PHP Version:  5.2CVS-2008-09-12 (snap)
 New Comment:

Using pgreg_last_error shows that backtrack is exausted - increasing
from 10 to 15 in php.ini fixes problem. 

Thanks for your response, apologies for the support question.


Previous Comments:


[2008-09-12 14:29:53] [EMAIL PROTECTED]

Use var_dump(preg_last_error()) after preg_match_all() to check if any
the problems mentioned in the documentation
(http://docs.php.net/preg-last-error) has occured.




[2008-09-12 14:11:33] ewen dot cumming at gmail dot com

Note there should be a space in my reproduce code regex (where the line
break happened to occur):

The below should set it right:

$pattern = "/ ]+)([^>]*)>(.*?)".
"| ]+)([^>]*)>/si";



[2008-09-12 14:05:28] ewen dot cumming at gmail dot com

Description:

In upgrading our code base from PHP4.4 to 5.2 I found the same regular
exression would give different results. 

Apologies for the large include string and results, however if I reduce
the input string any more the problem doesn't occur.

I have tested with:
PHP 4.4.4-8+etch6 (cli) (built: May 16 2008 15:59:34)
Zend Engine v1.3.0

PHP 5.2.0-8+etch11 (cli) (built: May 10 2008 10:46:24)
Zend Engine v2.2.0

And before submitting the bug:

PHP 5.2.7-dev (cli) (built: Sep 12 2008 15:05:09) 
Zend Engine v2.2.0

Reproduce code:
---
http://www.workingweb.nl/example/input.inc' );

$pattern = "/ ]+)([^>]*)>(.*?)|
]+)([^>]*)>/si";
preg_match_all( $pattern, $string, $matches );

var_dump($matches);
?>

Expected result:

This is what I get in PHP4.4 (and what I would expect after an PHP5.2
upgrade). 

array(6) {
  [0]=>
  array(22) {
[0]=>
string(31) ""
[1]=>
string(15) ""
[2]=>
string(11) ""
[3]=>
string(16) ""
[4]=>
string(12) ""
[5]=>
string(17) ""
[6]=>
string(13) ""
[7]=>
string(17) ""
[8]=>
string(13) ""
[9]=>
string(21) ""
[10]=>
string(18) ""
[11]=>
string(25) ""
[12]=>
string(20) ""
[13]=>
string(15) ""
[14]=>
string(20) ""
[15]=>
string(20) ""
[16]=>
string(13) ""
[17]=>
string(18) ""
[18]=>
string(25) ""
[19]=>
string(21) ""
[20]=>
string(16) ""
[21]=>
string(15) ""
  }
  [1]=>
  array(22) {
[0]=>
string(0) ""
[1]=>
string(0) ""
[2]=>
string(0) ""
[3]=>
string(0) ""
[4]=>
string(0) ""
[5]=>
string(0) ""
[6]=>
string(0) ""
[7]=>
string(0) ""
[8]=>
string(0) ""
[9]=>
string(0) ""
[10]=>
string(0) ""
[11]=>
string(0) ""
[12]=>
string(0) ""
[13]=>
string(0) ""
[14]=>
string(0) ""
[15]=>
string(0) ""
[16]=>
string(0) ""
[17]=>
string(0) ""
[18]=>
string(0) ""
[19]=>
string(0) ""
[20]=>
string(0) ""
[21]=>
string(0) ""
  }
  [2]=>
  array(22) {
[0]=>
string(0) ""
[1]=>
string(0) ""
[2]=>
string(0) ""
[3]=>
string(0) ""
[4]=>
string(0) ""
[5]=>
string(0) ""
[6]=>
string(0) ""
[7]=>
string(0) ""
[8]=>
string(0) ""
[9]=>
string(0) ""
[10]=>
string(0) ""
[11]=>
string(0) ""
[12]=>
string(0) ""
[13]=>
string(0) ""
[14]=>
string(0) ""
[15]=>
string(0) ""
[16]=>
string(0) ""
[17]=>
string(0) ""
[18]=>
string(0) ""
[19]=>
string(0) ""
[20]=>
string(0) ""
[21]=>
string(0) ""
  }
  [3]=>
  array(22) {
[0]=>
string(0) ""
[1]=>
string(0) ""
[2]=>
string(0) ""
[3]=>
string(0) ""
[4]=>
string(0) ""
[5]=>
string(0) ""
[6]=>
string(0) ""
[7]=>
string(0) ""
[8]=>
string(0) ""
[9]=>
string(0) ""
[10]=>
string(0) ""
[11]=>
string(0) ""
[12]=>
string(0) ""
[13]=>
string(0) ""
[14]=>
string(0) ""
[15]=>
string(0) ""
[16]=>
string(0) ""
[17]=>
string(0) ""
[18]=>
string(0) ""
[19]=>
string(0) ""
[20]=>
string(0) ""
[21]=>
string(0) ""
  }
  [4]=>
  array(22) {
[0]=>
string(26) "lang_searchforpublications"
[1]=>
string(10) "lang_title"
[2]=>
string(6) "fTitle"
[3]=>
string(11) "lang_author"
[4]=>
string(7) "fAuthor"
[5]=>
string(12) "lang_session"
[6]=>
string(8) "fSession"
[7]=>
string(12) "lang_summary"
[8]=>
 

#46038 [Asn->Fbk]: imagepsloadfont not working

2008-09-14 Thread pajoye
 ID:   46038
 Updated by:   [EMAIL PROTECTED]
 Reported By:  cory dot mawhorter at ephective dot com
-Status:   Assigned
+Status:   Feedback
 Bug Type: GD related
 Operating System: Windows Vista
 PHP Version:  5.2.6
 Assigned To:  pajoye
 New Comment:

you do not need (and should not) download the T1Lib dll. It is already
in the extension.

Do you have the font files please?


Previous Comments:


[2008-09-15 00:38:48] [EMAIL PROTECTED]

Pierre, any idea?



[2008-09-10 06:03:14] cory dot mawhorter at ephective dot com

Description:

I can't get the the example given at http://php.net/imagepstext to work
at all under Windows.  I have GD with t1lib enabled but it is producing
an error and will not load the font.  The same code runs fine under
linux.

Originally, I was getting a "Font file not found" error even though the
font file was definitely there.  I downloaded and installed the T1Lib
from sourceforge [ http://gnuwin32.sourceforge.net/packages/t1lib.htm ]
for giggles and the error changed to the one below.  This may just be a
coincidence, though.

Reproduce code:
---
Code from http://php.net/imagepstext example.  Comments removed.



Expected result:

Image rendered without errors.

Actual result:
--
Trying to run the above code gives the following error:

Warning: imagepstext() [function.imagepstext]: T1Lib Error: Syntactical
Error Scanning Font File in [path]\pstest.php on line 13

I've tried with a couple different fonts and always get the same
result.  I run the same code on my linux server with the same fonts
without issue.





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