[PHP-DEV] Bug #12531 Updated: undefined symbol: mxdriver

2001-08-04 Thread curtis
ID: 12531 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: IMAP related Operating System: RedHat 7.1 PHP Version: 4.0.6 New Comment: A little further information. This was a stock RedHat 7.0 install that I upgraded to 7.1. I've tried compiling PHP

Re: [PHP-DEV] Portability concerns

2001-08-04 Thread Stig Sæther Bakken
[Phil Driscoll [EMAIL PROTECTED]] I was going to send a post on this topic yesterday, but then I deleted it, but maybe it is worth airing incase it prompts someone whose brain is working better than mine was yesterday to rifine the idea. My thought was that it may be possible to get rid of

Re: [PHP-DEV] Portability concerns

2001-08-04 Thread Phil Driscoll
On Saturday 04 August 2001 08:49, Stig Sæther Bakken wrote: [Phil Driscoll [EMAIL PROTECTED]] With such a php_portability() function, it would be _even_ harder to write portable library code (because you need to handle both settings). Two wrongs won't make this one right. :-) Please

Re: [PHP-DEV] Tests: naming

2001-08-04 Thread Stig Sæther Bakken
[[EMAIL PROTECTED]] Hi, I assume that tests are named 001,002, etc, for historical reasons only? I believe that a test named 'trim.phpt', is better than 010.phpt? You can call them whatever.phpt, the reason they're numbered is to define the order they are checked in. Maybe naming them

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /sapi/apache2filter sapi_apache2.c

2001-08-04 Thread Sebastian Bergmann
Sebastian Bergmann wrote: - TSRMLS_FETCH(); TSRMLS_FETCH(); According to http://chora.php.net/diff.php/php4/sapi/apache2filter/sapi_apache2.c?r1=1.33r2=1.34f=h had already removed the superfluent call to TSRMLS_FETCH(). But what's really weird, is that I found no reference to

[PHP-DEV] Re: gmp_init with a base argument

2001-08-04 Thread Troels Arvin
On Mon, 30 Jul 2001 22:13:32 +0200, I wrote: Because decbin is limited to 31 bit values, I thought that the gmp extension might be expanded a bit: If you add an optional base argument to gmp, then we actually have a large number-bit decbin. I think that would be nice. [...] I have received

[PHP-DEV] .cvsignore in Zend/TSRM

2001-08-04 Thread Sebastian Bergmann
Could someone with cvs.zend.com Karma please add these lines to both TSRM's and Zend's .cvsignore *.plg *.opt *.ncb Release Release_inline Debug Release_TS Release_TSDbg Release_TS_inline Debug_TS and these only to Zend

[PHP-DEV] HTML in phpinfo()

2001-08-04 Thread Sebastian Bergmann
I just noticed that, for instance with Apache 1.3 phpinfo() shows HTML tags like in Per Child: 0brKeep Alive: onbrMax Per Connection: 100 What can be done about this? -- Sebastian Bergmann Measure Traffic Usability http://sebastian-bergmann.de/

Re: [PHP-DEV] Tests: naming

2001-08-04 Thread Jeroen van Wolffelaar
You can call them whatever.phpt, the reason they're numbered is to define the order they are checked in. Maybe naming them 03trim.phpt would be a good compromise? Why do you want to know the order they're checked in? Jeroen -- PHP Development Mailing List http://www.php.net/ To

[PHP-DEV] API-change

2001-08-04 Thread jeroen
Hi, What is the policy on changing the PHP_API? I modified php_trim, to require an extra argument. Currently, I've named the new function php_trim2, and php_trim now makes a call to php_trim2, for compatibility. I don't know wether it's allowed to break backwards-compatibility in the

Re: [PHP-DEV] API-change

2001-08-04 Thread Sascha Schumann
On Sat, 4 Aug 2001, [EMAIL PROTECTED] wrote: Hi, What is the policy on changing the PHP_API? I modified php_trim, to require an extra argument. Currently, I've named the new function php_trim2, and php_trim now makes a call to php_trim2, for compatibility. I don't know wether it's

RE: [PHP-DEV] Portability concerns

2001-08-04 Thread André Næss
-Original Message- [Phil Driscoll [EMAIL PROTECTED]] My thought was that it may be possible to get rid of some of the portability issues by implementing a new function php_portability() which takes TRUE or FALSE arguments to turn it on or off. The idea is that when switched

[PHP-DEV] Bug #12565: array_map with NULL callback causes crash

2001-08-04 Thread matt
From: [EMAIL PROTECTED] Operating system: Mac OS X 10.0.4 PHP version: 4.0.6 PHP Bug Type: Reproducible crash Bug description: array_map with NULL callback causes crash When used with NULL as the callback function, array_map causes a SIGBUS. Example: this crashes

[PHP-DEV] Bug #12565 Updated: array_map with NULL callback causes crash

2001-08-04 Thread matt
ID: 12565 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Reproducible crash Operating System: Mac OS X 10.0.4 PHP Version: 4.0.6 New Comment: I messed up the formatting, sorry Previous Comments:

Re: [PHP-DEV] RFC: New math functions: log2, etc

2001-08-04 Thread Jeroen van Wolffelaar
At 01:53 AM 8/4/2001 +0200, Jeroen van Wolffelaar wrote: log(a) / log(n) is not that much harder, and its the right way, imho. Yes, you're right that it is the right way. But for example, for tan(x), the right way is sin(x)/cos(x). (Not such a good example, but anyway) As you said :-)

[PHP-DEV] Bug #12565 Updated: array_map with NULL callback causes crash

2001-08-04 Thread andrei
ID: 12565 Updated by: andrei Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Reproducible crash Operating System: Mac OS X 10.0.4 PHP Version: 4.0.6 New Comment: Fixed in CVS. Previous Comments:

[PHP-DEV] CVS doesn't build (still the tsrm_ls issue)

2001-08-04 Thread Cynic
Fresh checkout of php4, Zend, and TSRM Configuration: php4apache - Win32 Release_TS_inline Compiling... mod_php4.c D:\__SERVER__\INCLUDE\os.h(115) : warning C4142: benign redefinition of type D:\compile\php\php4\sapi\apache\mod_php4.h(49) : warning C4005:

Re: [PHP-DEV] RFC: New math functions: log2, etc

2001-08-04 Thread Sterling Hughes
At 06:10 PM 8/4/2001 +0200, Jeroen van Wolffelaar wrote: At 01:53 AM 8/4/2001 +0200, Jeroen van Wolffelaar wrote: log(a) / log(n) is not that much harder, and its the right way, imho. Yes, you're right that it is the right way. But for example, for tan(x), the right way is

Re: [PHP-DEV] CVS doesn't build (still the tsrm_ls issue)

2001-08-04 Thread Sebastian Bergmann
Cynic wrote: Fresh checkout of php4, Zend, and TSRM Please check the current CVS, I commited a fix. -- Sebastian Bergmann Measure Traffic Usability http://sebastian-bergmann.de/http://phpOpenTracker.de/ -- PHP Development Mailing List

Re: [PHP-DEV] Portability concerns

2001-08-04 Thread Phil Driscoll
On Saturday 04 August 2001 15:03, André Næss wrote: I don't like the idea of a function like this, I think it's much more important to educate people on how they write portable PHP code (to the extent possible). That is my point really - what constitutes 'portable code' has changed quite a

Re: [PHP-DEV] CVS doesn't build (still the tsrm_ls issue)

2001-08-04 Thread Cynic
Hi Sebastian, four more to go. :) D:\compile\php\php4\sapi\apache\php_apache.c(145) : error C2082: redefinition of formal parameter 'tsrm_ls' D:\compile\php\php4\sapi\apache\php_apache.c(305) : error C2082: redefinition of formal parameter 'tsrm_ls'

[PHP-DEV] Bug #12566: Cascaded ternaries evaluate incorrectly

2001-08-04 Thread nick
From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.0.6 PHP Bug Type: *Programming Data Structures Bug description: Cascaded ternaries evaluate incorrectly The following emits 'two' rather than 'one' as one would expect. $a = 1; $b = 2; echo (($a == 1) ?

[PHP-DEV] RFC: rand_str

2001-08-04 Thread jeroen
Hi, I'm thinking about a new function: [mt_]rand_str Syntax: string [mt_]rand_str(minlen,maxlen[,charlist]); where charlist is in addcslashes (and now also [l|r]trim) syntax. Charlist defaults to 0..9a..zA..Z IMHO, this would be a very useful function. Any comments? Maybe not minmaxlen, but

[PHP-DEV] Coding standard: API functions

2001-08-04 Thread jeroen
Hi, Some PHPAPI function demand a char* and int when they want a string, others a zval which is expected to be IS_STRING. Which one is preferred? Jeroen -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP-DEV] RFC: mt_* functions

2001-08-04 Thread jeroen
Hi, Currently, the rand_functions all have mt_ clones, which use a in-PHP-implementation (Mersenne-Twister) rather than an external implementation. This is IMHO a bit strange way of chosing between implementation. My suggestion is to make it only one familiy of functions, the implementation of

[PHP-DEV] Bug #12567: file_exists('') === NULL

2001-08-04 Thread jeroen
From: [EMAIL PROTECTED] Operating system: PHP version: 4.0.6 PHP Bug Type: Filesystem function related Bug description: file_exists('') === NULL file_exists('') === NULL -- Edit bug report at: http://bugs.php.net/?id=12567edit=1 -- PHP Development Mailing List

Re: [PHP-DEV] Portability concerns

2001-08-04 Thread Stig Sæther Bakken
[Phil Driscoll [EMAIL PROTECTED]] On Saturday 04 August 2001 08:49, Stig Sæther Bakken wrote: [Phil Driscoll [EMAIL PROTECTED]] With such a php_portability() function, it would be _even_ harder to write portable library code (because you need to handle both settings). Two wrongs won't

Re: [PHP-DEV] Tests: naming

2001-08-04 Thread Stig Sæther Bakken
[Jeroen van Wolffelaar [EMAIL PROTECTED]] You can call them whatever.phpt, the reason they're numbered is to define the order they are checked in. Maybe naming them 03trim.phpt would be a good compromise? Why do you want to know the order they're checked in? Maybe I'm a control freak?

[PHP-DEV] Bug #12566 Updated: Cascaded ternaries evaluate incorrectly

2001-08-04 Thread jeroen
ID: 12566 Updated by: jeroen Reported By: [EMAIL PROTECTED] Status: Open Bug Type: *Programming Data Structures Operating System: Linux PHP Version: 4.0.6 New Comment: Confirmed in latest CVS: --- echo TRUE ? 'one' : TRUE ? 'two' : 'unknown'; = two --- echo TRUE ? 'one' : FALSE ? 'two' :

Re: [PHP-DEV] .cvsignore in Zend/TSRM

2001-08-04 Thread Stig Sæther Bakken
[Sebastian Bergmann [EMAIL PROTECTED]] Could someone with cvs.zend.com Karma please add these lines to both TSRM's and Zend's .cvsignore ...done - Stig -- Stig Sæther Bakken [EMAIL PROTECTED] Fast Search Transfer ASA, Trondheim, Norway -- PHP Development Mailing List

Re: [PHP-DEV] RFC: mt_* functions

2001-08-04 Thread Stig Sæther Bakken
[[EMAIL PROTECTED]] Hi, Currently, the rand_functions all have mt_ clones, which use a in-PHP-implementation (Mersenne-Twister) rather than an external implementation. This is IMHO a bit strange way of chosing between implementation. My suggestion is to make it only one familiy of

Re: [PHP-DEV] RFC: mt_* functions

2001-08-04 Thread Sterling Hughes
At 11:15 PM 8/4/2001 +0200, Stig Sæther Bakken wrote: [[EMAIL PROTECTED]] Hi, Currently, the rand_functions all have mt_ clones, which use a in-PHP-implementation (Mersenne-Twister) rather than an external implementation. This is IMHO a bit strange way of chosing between

Re: [PHP-DEV] Bug #12566 Updated: Cascaded ternaries evaluateincorrectly

2001-08-04 Thread Adam Maccabee Trachtenberg
It's not a bug, but a feature. :) PHP has the inverse associativity of ?: compared to C (and every other language). This was originally a mistake, but now it won't be changed, due to historical reasons. See some messages I had on php-dev back around the first week of January, 2001 on this

[PHP-DEV] Bug #12566 Updated: Cascaded ternaries evaluate incorrectly

2001-08-04 Thread jeroen
ID: 12566 Updated by: jeroen Reported By: [EMAIL PROTECTED] Status: Open Bug Type: *Programming Data Structures Operating System: Linux PHP Version: 4.0.6 New Comment: [EMAIL PROTECTED]: It's not a bug, but a feature. :) PHP has the inverse associativity of ?: compared to C (and every

[PHP-DEV] Bug #12568: Feature Request for function is_subclass_of

2001-08-04 Thread php
From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.0.6 PHP Bug Type: Feature/Change Request Bug description: Feature Request for function is_subclass_of unfortunately the function is_subclass_of does not accept class names in both arguments like get_parent_class

Re: [PHP-DEV] Bug #12566 Updated: Cascaded ternaries evaluate incorrectly

2001-08-04 Thread Jeroen van Wolffelaar
See some messages I had on php-dev back around the first week of January, 2001 on this topic. FWIW, I would like to change it. On http://marc.theaimsgroup.com/?w=4r=1s=trachtenbergq=a , I could only find messages about break/continue in switch statements... Am I overlooking something? Of did

Re: [PHP-DEV] Bug #12566 Updated: Cascaded ternaries evaluateincorrectly

2001-08-04 Thread Adam Maccabee Trachtenberg
On Sun, 5 Aug 2001, Jeroen van Wolffelaar wrote: On http://marc.theaimsgroup.com/?w=4r=1s=trachtenbergq=a , I could only find messages about break/continue in switch statements... The subject line is misleading. We shifted into talking about ?:. See me at the bottom of:

[PHP-DEV] Bug #12530 Updated: Shuffle shouldn't use the least significant bit of rand()

2001-08-04 Thread andy
ID: 12530 Updated by: andy Reported By: [EMAIL PROTECTED] Status: Open Old Bug Type: Arrays related Bug Type: Feature/Change Request Operating System: Solaris (most unices) PHP Version: 4.0.6 New Comment: reclassified Previous Comments:

Re: [PHP-DEV] HTML in phpinfo()

2001-08-04 Thread Andy
the functions obviously uses something like html_entites() On Sat, 04 Aug 2001, Sebastian Bergmann wrote: I just noticed that, for instance with Apache 1.3 phpinfo() shows HTML tags like in Per Child: 0brKeep Alive: onbrMax Per Connection: 100 What can be done about this? --

Re: [PHP-DEV] RFC: mt_* functions

2001-08-04 Thread Jeroen van Wolffelaar
Please don't. Ini settings that change semantics are a bother, and people should be able to choose their random function. Both function families are the same in syntax returning, only the algorithm is different. I.e.: the semantics is the same. The algorithm - if correct - shouldn't bother,

[PHP-DEV] Bug #11283 Updated: read_exif_data only gets first Comments record

2001-08-04 Thread rasmus
ID: 11283 Updated by: rasmus Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: *Graphics related Operating System: Linux 2.2.16/RedHat 7.0 PHP Version: 4.0 Latest CVS (2001-06-05) New Comment: Ok, read_exif_data() will now return an array of comments if there is more than

Re: [PHP-DEV] A patch to get rid of system rand/srand/etc.

2001-08-04 Thread Jani Taskinen
On Fri, 3 Aug 2001, Rasmus Lerdorf wrote: This patch will replace PHP functions srand() / rand() / getrandmax() with the mt_*() ones. The mt_*() are changed to aliases. If nobody objects, I will commit this tomorrow. I object. srand/rand are deterministic and usually portable

Re: [PHP-DEV] RFC: mt_* functions

2001-08-04 Thread Rasmus Lerdorf
Both function families are the same in syntax returning, only the algorithm is different. I.e.: the semantics is the same. The algorithm - if correct - shouldn't bother, and shouldn't be the concern of the programmer, but rather the system maintainer (specific cases excluded, but than you

Re: [PHP-DEV] RFC: mt_* functions

2001-08-04 Thread Jani Taskinen
On Sat, 4 Aug 2001, Rasmus Lerdorf wrote: based on their seeds. If I, as an application developer, distributes a regression test harness which tests my app with a specific seed expecting a specific sequence and the server my app runs on has switched rand() to use the mt_rand() algorithm my

Re: [PHP-DEV] RFC: mt_* functions

2001-08-04 Thread Rasmus Lerdorf
On Sat, 4 Aug 2001, Rasmus Lerdorf wrote: based on their seeds. If I, as an application developer, distributes a regression test harness which tests my app with a specific seed expecting a specific sequence and the server my app runs on has switched rand() to use the mt_rand() algorithm my

[PHP-DEV] Bug #12569: Consistent Apache crash on 22nd request in Zend Optimiser

2001-08-04 Thread nick
From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.0.6 PHP Bug Type: Scripting Engine problem Bug description: Consistent Apache crash on 22nd request in Zend Optimiser The apache module with optimiser enabled, and which up to now hasn't been crashing, now does

[PHP-DEV] Bug #12569 Updated: Consistent Apache crash on 22nd request in Zend Optimiser

2001-08-04 Thread rasmus
ID: 12569 Updated by: rasmus Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Scripting Engine problem Operating System: Linux PHP Version: 4.0.6 New Comment: Please don't post bug reports for proprietary products in the PHP bug database. Previous Comments:

Re: [PHP-DEV] Troubles compiling current CVS

2001-08-04 Thread Stuart Rocks
You probably created configure using libtool 1.3, so it is still referencing ltconfig. A ./cvsclean; ./buildconf should help. Right, I compiled all the new m4 type stuff when adding libtool 1.4, like m4, automake and autoconfig. I did the ./cvsclean, but the ./buildconf failed

[PHP-DEV] Re: Bug #12566 Updated: Cascaded ternaries evaluate incorrectly

2001-08-04 Thread Nick Lindridge
Fair enough :-) In which case there is a documentation bug, and the paragraph: another conditional operator is the ?: (or ternary) operator, which operates as in C and many other languages. might perhaps read better: another conditional operator is the ?: (or ternary)

Re: [PHP-DEV] RFC: mt_* functions

2001-08-04 Thread Jani Taskinen
On Sat, 4 Aug 2001, Rasmus Lerdorf wrote: On Sat, 4 Aug 2001, Rasmus Lerdorf wrote: based on their seeds. If I, as an application developer, distributes a regression test harness which tests my app with a specific seed expecting a specific sequence and the server my app runs on has switched

Re: [PHP-DEV] RFC: mt_* functions

2001-08-04 Thread Rasmus Lerdorf
Sure, although rand() tends to be the same everywhere as well. At least on all the systems I care about it is the same. Linux, FreeBSD, OpenBSD and Solaris all seem to use the same algorithm. Then why do some people have troubles with rand() on Solaris? :) Or is it some specific version

[PHP-DEV] LE INTERESARA

2001-08-04 Thread cursos
OFERTA PARA MEXICO: [EMAIL PROTECTED] 1.8.2001.Publicidad/Enseñanza a Distancia Hola que tal: El motivo de la presente carta es informarte de la posibilidad de

[PHP-DEV] Bug #11885 Updated: Link problems with OpenSSL 0.9.6a

2001-08-04 Thread sniper
ID: 11885 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: OpenSSL related Operating System: Solaris 7 08/99 PHP Version: 4.0.6 New Comment: Could you please try the latest CVS snapshot from http://snaps.php.net/ to verify if this is fixed now?

[PHP-DEV] Bug #10822 Updated: CRYPT_SALT_LENGTH == 2 even when CRYPT_MD5 available

2001-08-04 Thread sniper
ID: 10822 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: *Encryption and hash functions Operating System: Linux 2.4.4 PHP Version: 4.0.5 New Comment: Fixed in CVS. --Jani Previous Comments:

[PHP-DEV] Bug #12570: feof () - no break on eof of socket

2001-08-04 Thread m . leuffen
From: [EMAIL PROTECTED] Operating system: SuSE 7.0 PHP version: 4.0.6 PHP Bug Type: Network related Bug description: feof () - no break on eof of socket Hallo, I have a problem with the fsock-Funktions: $sock = fsockopen ($ip, $port, $errno, $errstr, 30); while

Re: [PHP-DEV] Constanst are case-insensitive

2001-08-04 Thread Zeev Suraski
If you register the constant with CONST_CS, it will be case sensitive. Most of the constants in PHP are case sensitive. Zeev At 08:34 04/08/2001, Andrei Zmievski wrote: Does PHP really support case-sensitive constants? PHP-GTK needs to register both GDK_A and GDK_a constants (they define key

[PHP-DEV] Re: rand_str

2001-08-04 Thread Daniel Andersson
sounds useful and cool, me thinks :o) / d [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I'm thinking about a new function: [mt_]rand_str Syntax: string [mt_]rand_str(minlen,maxlen[,charlist]); where charlist is in addcslashes (and now also

Re: [PHP-DEV] Re: rand_str

2001-08-04 Thread Cynic
is it that much more useful than md5(microtime()) ? ah-oh, you want to be able to specify the set of characters... At 04:28 8/5/2001, Daniel Andersson wrote the following: -- sounds useful and cool, me thinks :o) / d [EMAIL

[PHP-DEV] Bug #12571: Apache segfaults(11)

2001-08-04 Thread micah
From: [EMAIL PROTECTED] Operating system: Linux Debian woody PHP version: 4.0.6 PHP Bug Type: Apache related Bug description: Apache segfaults(11) I've got php-4.0.6 compiled with apache 1.3.20 (config options below), running horde 1.3.4, IMP 2.3.7, Turba 0.0.2. I'm doing a

[PHP-DEV] Bug #12571 Updated: Apache segfaults(11)

2001-08-04 Thread sniper
ID: 12571 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: IMAP related Operating System: Linux Debian woody PHP Version: 4.0.6 New Comment: Could you please try to compile PHP with the latest c-client ?? As this looks like it happens in the

[PHP-DEV] Here's the information you asked for...

2001-08-04 Thread QwikStart Success Team
Title: You're receiving this because you've expressed an interest in receiving information about Internet based businesses, and because of that expressed interest, you appear in our opt-in list. If you don't want to receive future offers or

[PHP-DEV] Bug #12572: sort() doesn't reindex 1 element arrays at 0

2001-08-04 Thread adam
From: [EMAIL PROTECTED] Operating system: Redhat Linux 7.0 PHP version: 4.0.6 PHP Bug Type: Arrays related Bug description: sort() doesn't reindex 1 element arrays at 0 sort() reindexes arrays of length 1 at 0, but doesn't do this for 1 element arrays. The following

Re: [PHP-DEV] Constanst are case-insensitive

2001-08-04 Thread Andrei Zmievski
At 06:34 PM 8/4/01 +0300, Zeev Suraski wrote: If you register the constant with CONST_CS, it will be case sensitive. Most of the constants in PHP are case sensitive. But it doesn't work. I register GDK_A with CONST_CS and then when I try to register GDK_a with CONST_CS as well it complains