#36275 [Fbk-Opn]: Regression of bug #30638

2006-02-04 Thread shiloh dot heurich at newvillagemedia dot com
 ID:   36275
 User updated by:  shiloh dot heurich at newvillagemedia dot com
 Reported By:  shiloh dot heurich at newvillagemedia dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Strings related
 Operating System: Mac OS X 10.4.4
 PHP Version:  5CVS-2006-02-03 (snap)
 New Comment:

Thanks - it appears that this system does not define a 
thousands separator for the de_DE locale (or the C locale 
for that matter). It does define a thousands separator for 
en_US, though - should the regression test be modified to 
take this into account for current Darwin systems? 

$ cat /usr/share/locale/de_DE/LC_NUMERIC
,

-1

$ LANG=de_DE locale -ck thousands_sep
LC_NUMERIC
thousands_sep=



Previous Comments:


[2006-02-04 13:04:25] [EMAIL PROTECTED]

Are you sure there is de_DE locale in your system and this locale does
have thousand separator?



[2006-02-03 17:53:35] shiloh dot heurich at newvillagemedia dot com

Description:

This bug has resurfaced when building PHP 5.1.1, 5.1.2 and 
200602031530 snapshot on Darwin 8.4.0 (Mac OS X 10.4.4) 
ppc platform. 

make test: FAIL Bug #30638 (localeconv returns wrong 
LC_NUMERIC settings) [tests/lang/bug30638.phpt] 

uname: Darwin 8.4.0 Darwin Kernel Version 8.4.0: Tue Jan  3 
18:22:10 PST 2006; root:xnu-792.6.56.obj~1/RELEASE_PPC Power 
Macintosh powerpc

gcc: gcc version 4.0.1 (Apple Computer, Inc. build 5250)

configuration: CFLAGS='-g -O2 -arch ppc -mcpu=970' ./
configure  --prefix=/usr/local/php5 --mandir=/usr/local/
php5/share/man --infodir=/usr/local/php5/share/info --
sysconfdir=/usr/local/etc/php5 --x-includes=/usr/X11R6/
include --x-libraries=/usr/X11R6/lib --with-apxs=/usr/sbin/
apxs --enable-cli --enable-cgi --with-layout=PHP --with-
config-file-path=/usr/local/etc/php5 --enable-ipv6 --
disable-all --enable-libxml --with-libxml-dir=/usr --with-
openssl=/usr --with-kerberos=/usr --with-pcre-regex=/usr/
local/pcre --with-zlib=/usr --with-zlib-dir=/usr --enable-
bcmath --with-bz2=/usr --enable-calendar --enable-ctype --
with-curl=/usr --enable-dba --with-cdb --with-inifile --
with-flatfile --enable-dom --enable-exif --enable-ftp --
with-openssl-dir=/usr --with-gd --with-jpeg-dir=/usr/local/
libjpeg --with-png-dir=/usr/local/libpng --with-xpm-dir=/
usr/X11R6 --with-freetype-dir=/usr/X11R6 --with-t1lib=/usr/
local/t1lib --enable-gd-native-ttf --enable-hash --with-
imap=/usr/local/imap-2004g --with-imap-ssl=/usr --with-
ldap=/usr --enable-mbstring --enable-mbregex --with-mcrypt=/
usr/local/libmcrypt --with-mssql=/usr/local/freetds --with-
mysql=/usr --with-mysql-sock=/var/mysql/mysql.sock --with-
mysqli=/usr/bin/mysql_config --with-ncurses=/usr --with-
iodbc=/usr --enable-pdo --with-pdo-dblib=/usr/local/freetds 
--with-pdo-mysql=/usr --enable-posix --with-pspell=/usr/
local/aspell --enable-reflection --enable-session --enable-
shmop --enable-simplexml --with-snmp=/usr --enable-soap --
enable-sockets --enable-spl --with-sqlite --enable-sqlite-
utf8 --enable-sysvmsg --enable-sysvsem --enable-sysvshm --
with-tidy=/usr/local/tidy --enable-tokenizer --enable-wddx 
--enable-xml --enable-xmlreader --with-xmlrpc --with-iconv=/
usr/local/libiconv --with-iconv-dir=/usr/local/libiconv --
enable-xmlwriter --with-xsl=/usr --with-pear --enable-
memory-limit


Reproduce code:
---
bug30638.php:

?php 
# activate the german locale
setlocale(LC_NUMERIC, de_DE, de, german, ge);

$lc = localeconv();
printf(decimal_point: %s\n, $lc['decimal_point']);
printf(thousands_sep: %s\n, $lc['thousands_sep']);
?


Expected result:

bug30638.log:

 EXPECTED OUTPUT
decimal_point: ,
thousands_sep: .


Actual result:
--
bug30638.log:

 ACTUAL OUTPUT
decimal_point: ,
thousands_sep:






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


#36275 [NEW]: Regression of bug #30638

2006-02-03 Thread shiloh dot heurich at newvillagemedia dot com
From: shiloh dot heurich at newvillagemedia dot com
Operating system: Mac OS X 10.4.4
PHP version:  5CVS-2006-02-03 (snap)
PHP Bug Type: Scripting Engine problem
Bug description:  Regression of bug #30638

Description:

This bug has resurfaced when building PHP 5.1.1, 5.1.2 and 
200602031530 snapshot on Darwin 8.4.0 (Mac OS X 10.4.4) 
ppc platform. 

make test: FAIL Bug #30638 (localeconv returns wrong 
LC_NUMERIC settings) [tests/lang/bug30638.phpt] 

uname: Darwin 8.4.0 Darwin Kernel Version 8.4.0: Tue Jan  3 
18:22:10 PST 2006; root:xnu-792.6.56.obj~1/RELEASE_PPC Power 
Macintosh powerpc

gcc: gcc version 4.0.1 (Apple Computer, Inc. build 5250)

configuration: CFLAGS='-g -O2 -arch ppc -mcpu=970' ./
configure  --prefix=/usr/local/php5 --mandir=/usr/local/
php5/share/man --infodir=/usr/local/php5/share/info --
sysconfdir=/usr/local/etc/php5 --x-includes=/usr/X11R6/
include --x-libraries=/usr/X11R6/lib --with-apxs=/usr/sbin/
apxs --enable-cli --enable-cgi --with-layout=PHP --with-
config-file-path=/usr/local/etc/php5 --enable-ipv6 --
disable-all --enable-libxml --with-libxml-dir=/usr --with-
openssl=/usr --with-kerberos=/usr --with-pcre-regex=/usr/
local/pcre --with-zlib=/usr --with-zlib-dir=/usr --enable-
bcmath --with-bz2=/usr --enable-calendar --enable-ctype --
with-curl=/usr --enable-dba --with-cdb --with-inifile --
with-flatfile --enable-dom --enable-exif --enable-ftp --
with-openssl-dir=/usr --with-gd --with-jpeg-dir=/usr/local/
libjpeg --with-png-dir=/usr/local/libpng --with-xpm-dir=/
usr/X11R6 --with-freetype-dir=/usr/X11R6 --with-t1lib=/usr/
local/t1lib --enable-gd-native-ttf --enable-hash --with-
imap=/usr/local/imap-2004g --with-imap-ssl=/usr --with-
ldap=/usr --enable-mbstring --enable-mbregex --with-mcrypt=/
usr/local/libmcrypt --with-mssql=/usr/local/freetds --with-
mysql=/usr --with-mysql-sock=/var/mysql/mysql.sock --with-
mysqli=/usr/bin/mysql_config --with-ncurses=/usr --with-
iodbc=/usr --enable-pdo --with-pdo-dblib=/usr/local/freetds 
--with-pdo-mysql=/usr --enable-posix --with-pspell=/usr/
local/aspell --enable-reflection --enable-session --enable-
shmop --enable-simplexml --with-snmp=/usr --enable-soap --
enable-sockets --enable-spl --with-sqlite --enable-sqlite-
utf8 --enable-sysvmsg --enable-sysvsem --enable-sysvshm --
with-tidy=/usr/local/tidy --enable-tokenizer --enable-wddx 
--enable-xml --enable-xmlreader --with-xmlrpc --with-iconv=/
usr/local/libiconv --with-iconv-dir=/usr/local/libiconv --
enable-xmlwriter --with-xsl=/usr --with-pear --enable-
memory-limit


Reproduce code:
---
bug30638.php:

?php 
# activate the german locale
setlocale(LC_NUMERIC, de_DE, de, german, ge);

$lc = localeconv();
printf(decimal_point: %s\n, $lc['decimal_point']);
printf(thousands_sep: %s\n, $lc['thousands_sep']);
?


Expected result:

bug30638.log:

 EXPECTED OUTPUT
decimal_point: ,
thousands_sep: .


Actual result:
--
bug30638.log:

 ACTUAL OUTPUT
decimal_point: ,
thousands_sep:


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


#36276 [NEW]: Tiger hash fails regression test

2006-02-03 Thread shiloh dot heurich at newvillagemedia dot com
From: shiloh dot heurich at newvillagemedia dot com
Operating system: Mac OS X 10.4.4
PHP version:  5CVS-2006-02-03 (snap)
PHP Bug Type: *Encryption and hash functions
Bug description:  Tiger hash fails regression test

Description:

When running regression tests on PHP 5.1.2 and 200602031530 
snapshots, tiger hash function fails:

FAIL tiger [ext/hash/tests/tiger.phpt] t]

uname: Darwin 8.4.0 Darwin Kernel Version 8.4.0: Tue Jan  3 
18:22:10 PST 2006; root:xnu-792.6.56.obj~1/RELEASE_PPC Power 
Macintosh powerpc

gcc: gcc version 4.0.1 (Apple Computer, Inc. build 5250)

configuration: CFLAGS='-g -O2 -arch ppc -mcpu=970' ./
configure  --prefix=/usr/local/php5 --mandir=/usr/local/
php5/share/man --infodir=/usr/local/php5/share/info --
sysconfdir=/usr/local/etc/php5 --x-includes=/usr/X11R6/
include --x-libraries=/usr/X11R6/lib --with-apxs=/usr/sbin/
apxs --enable-cli --enable-cgi --with-layout=PHP --with-
config-file-path=/usr/local/etc/php5 --enable-ipv6 --
disable-all --enable-libxml --with-libxml-dir=/usr --with-
openssl=/usr --with-kerberos=/usr --with-pcre-regex=/usr/
local/pcre --with-zlib=/usr --with-zlib-dir=/usr --enable-
bcmath --with-bz2=/usr --enable-calendar --enable-ctype --
with-curl=/usr --enable-dba --with-cdb --with-inifile --
with-flatfile --enable-dom --enable-exif --enable-ftp --
with-openssl-dir=/usr --with-gd --with-jpeg-dir=/usr/local/
libjpeg --with-png-dir=/usr/local/libpng --with-xpm-dir=/
usr/X11R6 --with-freetype-dir=/usr/X11R6 --with-t1lib=/usr/
local/t1lib --enable-gd-native-ttf --enable-hash --with-
imap=/usr/local/imap-2004g --with-imap-ssl=/usr --with-
ldap=/usr --enable-mbstring --enable-mbregex --with-mcrypt=/
usr/local/libmcrypt --with-mssql=/usr/local/freetds --with-
mysql=/usr --with-mysql-sock=/var/mysql/mysql.sock --with-
mysqli=/usr/bin/mysql_config --with-ncurses=/usr --with-
iodbc=/usr --enable-pdo --with-pdo-dblib=/usr/local/freetds 
--with-pdo-mysql=/usr --enable-posix --with-pspell=/usr/
local/aspell --enable-reflection --enable-session --enable-
shmop --enable-simplexml --with-snmp=/usr --enable-soap --
enable-sockets --enable-spl --with-sqlite --enable-sqlite-
utf8 --enable-sysvmsg --enable-sysvsem --enable-sysvshm --
with-tidy=/usr/local/tidy --enable-tokenizer --enable-wddx 
--enable-xml --enable-xmlreader --with-xmlrpc --with-iconv=/
usr/local/libiconv --with-iconv-dir=/usr/local/libiconv --
enable-xmlwriter --with-xsl=/usr --with-pear --enable-
memory-limit


Reproduce code:
---
tiger.php:

?php
echo hash('tiger192,3', ''),\n;
echo hash('tiger192,3', 'abc'),\n;
echo hash('tiger192,3', str_repeat('a', 63)),\n;
echo hash('tiger192,3', str_repeat('abc', 61)),\n;
echo hash('tiger192,3', str_repeat('abc', 64)),\n;
?


Expected result:

tiger.log:

 EXPECTED OUTPUT
24f0130c63ac933216166e76b1bb925ff373de2d49584e7a
f258c1e88414ab2a527ab541ffc5b8bf935f7b951c132951
8ee409a14e6066933b63d5b2abca63d71a78f55e29eb4649
2586156d16bf9ab1e6e48bdf5e038f8053c30e071db3bcb0
3ee8a9405396ddba1bc038508af4164ac1fe59ef58916a85


Actual result:
--
tiger.log:

 ACTUAL OUTPUT
60ef6c0dbc077b9c175ffb7771008c253bacea024c9d01ab
c79e799e14b53e7df935d83477fa4df939d18c44f76b73cd
0cbefecf310004da41a290cfeef81e918ea533f130c2b9ba
11fe76694d6a116bd7af6eeded0ef4d147e43ee107abda06
397fb45a4406fd2046c9ad070907ac574d004836c89553a2


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