#19795 [Com]: Problems with strnatcmp and strnatcasecmp

2004-07-15 Thread mbp at sourcefrog dot net
 ID:   19795
 Comment by:   mbp at sourcefrog dot net
 Reported By:  doc at nitramlexa dot com
 Status:   Closed
 Bug Type: Strings related
 Operating System: FreeBSD 4.6
 PHP Version:  4.2.2
 New Comment:

This bug does seem to still be present in php5 CVS.  The comparison is
simply by byte values, not taking character set or locale into account.


Previous Comments:


[2004-06-28 14:55:26] mikael at chl dot chalmers dot se

This bug seems to have popped back again in version 4.3.7

When using setlocale(LC_ALL, 'sv_SE') the national chars åäö get sorted
before other international chars, they should appear at the bottom.



[2003-04-16 16:11:22] [EMAIL PROTECTED]

This bug has been fixed in CVS.

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

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





[2003-01-27 16:11:34] kamikaze at yifan dot net

I have the same problem, with æøå. strtoupper() does, for example, not
uppercase those letters.

Also i 4.2.3



[2002-11-10 18:21:28] [EMAIL PROTECTED]

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





[2002-10-27 19:12:50] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-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/19795

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


Bug #15556 Updated: Won't compile when using '--with-zip'

2002-04-08 Thread mbp

 ID:   15556
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: *Compression related
 Operating System: Freebsd 4.5
 PHP Version:  4.1.1
 New Comment:

This happened to me.  You don't have zziplib installed.

cd /usr/ports/devel/zziplib
make install

Then build php again.


Previous Comments:


[2002-02-14 11:41:42] [EMAIL PROTECTED]

Hello,

I have a problem when trying to compile mod_php4 from FreeBSD's port
system using '--with-zip'.

Without this extra option everything goes just fine.

I've tried to reinstall FreeBSD but the problem repeats.

Here is the last linies before the stop errors:

configure:50910: checking for Blowfish crypt
configure:50942: cc -o
onftest -O -pipe  -I/usr/local/include  -DHARD_SERVER_LIMIT=512
-DDOCUMENT_L
OCATION="/usr/local/www/data/"
-DDEFAULT_PATH="/bin:/usr/bin:/usr/local/bin"
 -DUSE_EXPAT  -R/usr/local/lib -L/usr/local/lib -R/usr/local/lib/mysql
-L/us
r/local/lib/mysql
conftest.c -lmysqlclient -lz -lgd -lfreetype -lpng -lz -ljpeg -lz
-lcrypt -l
m  -lcrypt 1>&5
configure:50974: checking whether flush should be called explicitly
after a
bufferered io
configure:51023: cc -o
onftest -O -pipe  -I/usr/local/include  -DHARD_SERVER_LIMIT=512
-DDOCUMENT_L
OCATION="/usr/local/www/data/"
-DDEFAULT_PATH="/bin:/usr/bin:/usr/local/bin"
 -DUSE_EXPAT  -R/usr/local/lib -L/usr/local/lib -R/usr/local/lib/mysql
-L/us
r/local/lib/mysql
conftest.c -lmysqlclient -lz -lgd -lfreetype -lpng -lz -ljpeg -lz
-lcrypt -l
m  -lcrypt 1>&5
/tmp/ccshYWyY.o: In function `main':
/tmp/ccshYWyY.o(.text+0xf): warning: tmpnam() possibly used unsafely;
consider using mkstemp()
configure: failed program was:
#line 50985 "configure"
#include "confdefs.h"

#include 
#include 

int main(int argc, char **argv)
{
char *filename = tmpnam(NULL);
char buffer[64];
int result = 0;

FILE *fp = fopen(filename, "wb");
if (NULL == fp)
return 0;
fputs("line 1\n", fp);
fputs("line 2\n", fp);
fclose(fp);

fp = fopen(filename, "rb+");
if (NULL == fp)
return 0;
fgets(buffer, sizeof(buffer), fp);
fputs("line 3\n", fp);
rewind(fp);
fgets(buffer, sizeof(buffer), fp);
if (0 != strcmp(buffer, "line 1\n"))
result = 1;
fgets(buffer, sizeof(buffer), fp);

if (0 != strcmp(buffer, "line 3\n"))
result = 1;
fclose(fp);
unlink(filename);

exit(result);
}

configure:51231: checking for libswf support
configure:51569: checking for Sybase support
configure:52079: checking for Sybase-CT support
configure:52577: checking whether to enable System V semaphore support
configure:52811: checking whether to enable System V shared memory
support
configure:52999: checking for vpopmail support
configure:53406: checking for WDDX support
configure:53605: checking whether byte ordering is bigendian
configure:53623:
c -c -O -pipe  -I/usr/local/include  -DHARD_SERVER_LIMIT=512
-DDOCUMENT_LOCA
TION="/usr/local/www/data/"
-DDEFAULT_PATH="/bin:/usr/bin:/usr/local/bin" -D
USE_EXPAT conftest.c 1>&5
configure:53638:
c -c -O -pipe  -I/usr/local/include  -DHARD_SERVER_LIMIT=512
-DDOCUMENT_LOCA
TION="/usr/local/www/data/"
-DDEFAULT_PATH="/bin:/usr/bin:/usr/local/bin" -D
USE_EXPAT conftest.c 1>&5
configure: In function `main':
configure:53633: syntax error before `big'
configure: failed program was:
#line 53627 "configure"
#include "confdefs.h"
#include 
#include 
int main() {

#if BYTE_ORDER != BIG_ENDIAN
 not big endian
#endif
; return 0; }
configure:53704: checking for XML support
configure:53749: checking external libexpat install dir
configure:54342: checking for XMLRPC-EPI support
configure:54387: checking libexpat dir for XMLRPC-EPI
configure:55603: checking whether to enable xslt support
configure:55648: checking whether to enable the XSLT Sablotron backend
configure:55693: checking libexpat dir for Sablotron XSL support
configure:56404: checking for YAZ support
configure:56758: checking whether to include YP support
configure:56953: checking whether to include zziplib support
(end of "config.log")
*** Error code 1

Stop in /usr/ports/www/mod_php4.
*** Error code 1

Stop in /usr/ports/www/mod_php4.
*** Error code 1

Stop in /usr/ports/www/mod_php4.
*** Error code 1

Stop in /usr/ports/www/mod_php4.
*** Error code 1

Stop in /usr/ports/www/mod_php4.

Best regards

Morten








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