Re: [PHP-DEV] Statistical analysis extension

2003-01-04 Thread Nyk Cowham
On Saturday, January 4, 2003, at 10:38 PM, George Schlossnagle wrote: Have you looked on netlib? http://www.netlib.org/ Both netlib and statlib are excellent resources for algorithms. My concern with regard to adding stat functions to PHP is that it shouldn't require users installing more th

Re: [PHP-DEV] Statistical analysis extension

2003-01-04 Thread George Schlossnagle
Have you looked on netlib? http://www.netlib.org/ I am now thinking perhaps the best way to go is to implement the C library of statistical recipes that I need in a library that would be compatible with the PHP license. Anyone know of an existing lib that is already available? Ideally this l

[PHP-DEV] Statistical analysis extension

2003-01-04 Thread Nyk Cowham
Some advice would be appreciated: I need much better support for statistical analysis (central tendency, variance, kurtosis etc.) and financial formulae (NPV etc.) in my PHP applications. I have been using some calculation classes implemented in PHP, but I am at a point where I need the speed o

[PHP-DEV] Re: Using PHP for search and replace

2003-01-04 Thread Michael Mauch
Jean-Michel Dault <[EMAIL PROTECTED]> wrote: > Currently, both Mandrake and RedHat use the following trick: > perl -pi -e "s|^;extension=mysql.so|extension=mysql.so|" /etc/php.ini > > This sucks, because you then need perl to install a PHP extension. > We sure could use sed, but this requires a t

Re: [PHP-DEV] ZEND_NUM_ARGS()

2003-01-04 Thread nicos
What about windows then? You find normal that filetype acceps null as an argument? You find normal that we do a stat64 on "" ? Regards. M.CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com Hébergement de sites internets. - Original Message - From: "Derick Rethans" <[EMAIL PROTECTED]> To:

Re: [PHP-DEV] Segmention fault when doing make install

2003-01-04 Thread Magnus Määttä
Got some help how to debug this and here's the backtrace: (gdb) r /opt/DEV/php/php4/pear/install-pear.php Starting program: /opt/DEV/php/php4/sapi/cli/php /opt/DEV/php/php4/pear/install-pear.php [New Thread 16384 (LWP 23911)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thr

[PHP-DEV] Segmention fault when doing make install

2003-01-04 Thread Magnus Määttä
Hi! This is the output before the segfault using strace -fFi make install [pid 23105] [40c8e331] munmap(0x41a0, 4096) = 0 [pid 23105] [40c84ce4] open("/etc/snmp/snmp.conf", O_RDONLY) = -1 ENOENT (No such file or directory) [pid 23105] [40c84ce4] open("/etc/snmp/snmp.local.conf", O_RDONLY) =

Re: [PHP-DEV] stream filter problem

2003-01-04 Thread Wez Furlong
the filter write functions should return the number of bytes of the input buffer that they *consumed*, not how many were written. (The read function should of course return the number read, but cannot exceed the maximum buffer size). However, there also seems to be a similar sounding problem with

Re: [PHP-DEV] ZEND_NUM_ARGS()

2003-01-04 Thread Derick Rethans
On Sat, 4 Jan 2003, Philip Olson wrote: > Okay, let's use filetype('somebogusname') as an example: > > Windows: > - Returns string 'dir' > - No E_WARNING > > Is this how this is going to be forever? Is this behavior > suppose to be documented? It's supposed to be fixed :) CHecking it now...

Re: [PHP-DEV] ZEND_NUM_ARGS()

2003-01-04 Thread Derick Rethans
On Sat, 4 Jan 2003 [EMAIL PROTECTED] wrote: > Hello, > > After seeing the bug #21410, I just found that function_name(null) > will make ZEND_NUM_ARGS() > returning 1. I really think that null should be ignored or something... Of course it should not be ignored, NULL can be used as an arg

Re: [PHP-DEV] ZEND_NUM_ARGS()

2003-01-04 Thread Philip Olson
On Sat, 4 Jan 2003, Sterling Hughes wrote: > > Probably but it looks like that filetype(null); for example under windows > > will return type directory... > > > > So it looks an important bug too. > > > > Its about as much of a bug as passing filetype(null) isn't a bug. Okay, let's use filetype

[PHP-DEV] To laugh: Fw: How lame. you must be a greek fag

2003-01-04 Thread nicos
See how funny Phil Eccleston is: Regards. M.CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com Hébergement de sites internets. - Original Message - From: "Phil Eccleston" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 04, 2003 11:37 PM Subject: Re: How lame. you must

[PHP-DEV] Using PHP for search and replace

2003-01-04 Thread Jean-Michel Dault
Hello all, Currently, both Mandrake and RedHat use the following trick: perl -pi -e "s|^;extension=mysql.so|extension=mysql.so|" /etc/php.ini This sucks, because you then need perl to install a PHP extension. We sure could use sed, but this requires a temporary file, and this creates some securit

Re: [PHP-DEV] CGI and CLI (compromise proposal)

2003-01-04 Thread Jean-Michel Dault
> What might happen is that CLI becomes widely accepted and scripts > calling php from shebang lines. Id so your above solution is a bad idea > and i hope CLI will be... That's a minor problem for me, since the shebang is never standard. Some people put it in /usr/local, some in /opt, some in /us

Re: [PHP-DEV] ZEND_NUM_ARGS()

2003-01-04 Thread Sterling Hughes
> Probably but it looks like that filetype(null); for example under windows > will return type directory... > > So it looks an important bug too. > Its about as much of a bug as passing filetype(null) isn't a bug. -Sterling "Ask a stupid question, get a stupid answer." - Father Benedict Gr

Re: [PHP-DEV] ZEND_NUM_ARGS()

2003-01-04 Thread Steph
filetype(null); for example under windows > will return type directory... is_file() has done the same for a very long time on doze. There are workarounds in the notes for it.. > So it looks an important bug too. > -- PHP Development Mailing List To unsubscribe, visit: h

Re: [PHP-DEV] ZEND_NUM_ARGS()

2003-01-04 Thread nicos
Probably but it looks like that filetype(null); for example under windows will return type directory... So it looks an important bug too. -- Regards. M.CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com Hébergement de sites internets. "Sterling Hughes" <[EMAIL PROTECTED]> a écrit dans le messag

Re: [PHP-DEV] CGI and CLI (compromise proposal)

2003-01-04 Thread Marcus Börger
At 21:57 04.01.2003, Jean-Michel Dault wrote: Le sam 04/01/2003 à 08:15, Marcus Börger a écrit : > >What happens when a user wants to install *both* php-cli and php-cgi? > >You cannot have two files with the same name, either in the same RPM, or > >in two different RPMS... This is not RPM specific

Re: [PHP-DEV] CGI and CLI (compromise proposal)

2003-01-04 Thread Jean-Michel Dault
Le sam 04/01/2003 à 08:15, Marcus Börger a écrit : > >What happens when a user wants to install *both* php-cli and php-cgi? > >You cannot have two files with the same name, either in the same RPM, or > >in two different RPMS... This is not RPM specific, since it will create > >the same problem with

Re: [PHP-DEV] HEAD with ZE2 fails.

2003-01-04 Thread Magnus Määttä
On Fri, 3 Jan 2003 14:20:13 +0100 (CET) Derick Rethans <[EMAIL PROTECTED]> wrote: > On Fri, 3 Jan 2003, Magnus [ISO-8859-1] Määttä wrote: > > > > > > I have probably forgot to do something silly.. But here's > > > > > the failure anyway. > > > > > > > > Which version of bison do you use? > > > >

[PHP-DEV] Compile error in xml-rpc (HEAD)

2003-01-04 Thread Magnus Määttä
Hi! gcc -I/opt/DEV/php/php4/ext/xmlrpc/libxmlrpc -DVERSION=0.50 -Iext/xmlrpc/ -I/opt/DEV/php/php4/ext/xmlrpc/ -DPHP_ATOM_INC -I/opt/DEV/php/php4/include -I/opt/DEV/php/php4/main -I/opt/DEV/php/php4 -I/opt/DEV/php/php4/Zend -I/usr/include/libxml2 -I/usr/X11R6/include -I/usr/include/freetype2 -I

Re: [PHP-DEV] ZEND_NUM_ARGS()

2003-01-04 Thread Sterling Hughes
> Hello, > > After seeing the bug #21410, I just found that function_name(null) > will make ZEND_NUM_ARGS() > returning 1. I really think that null should be ignored or something... >Actually with filetype(null), it transforms null in a string and try > to stat "null" which is a bi

[PHP-DEV] ZEND_NUM_ARGS()

2003-01-04 Thread nicos
Hello, After seeing the bug #21410, I just found that function_name(null) will make ZEND_NUM_ARGS() returning 1. I really think that null should be ignored or something... Actually with filetype(null), it transforms null in a string and try to stat "null" which is a bit stupid...

[PHP-DEV] [PATCH] RSS-News-Generation from php.net

2003-01-04 Thread Tobias Schlitt
Hi everyone! Because of missing the publication-date in the RSS-file from php.net, i made a little patch to the script for including theese dates. Here it is: --- php_news_rss_old.phpSat Jan 4 20:06:54 2003 +++ php_news_rss.phpSat Jan 4 20:06:52 2003 @@ -133,6 +133,9 @@ // And

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /win32 sendmail.c sendmail.h

2003-01-04 Thread Jon Parise
On Fri, Jan 03, 2003 at 03:17:44PM -, Anantha Kesari H Y wrote: > hyanantha Fri Jan 3 10:17:44 2003 EDT > > Modified files: > /php4/win32 sendmail.c sendmail.h > Log: > NetWare related changes/modifications. Could you _please_ provide more subst

[PHP-DEV] stream filter problem

2003-01-04 Thread moriyoshi
Hi, I'm currently working on base64 filter, and then I'm stuck with odd behaviour of stream_filter_write op. When I try to write some larger chunk to the next output filter than the length of buffer passed to my function, stream segfaults sometimes or goes into infinite loops on other attempts in

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

2003-01-04 Thread Andi Gutmans
It doesn't make sense to me to have the following lines repeated all over PHP: +#if defined(NETWARE) && defined(CLIB_STAT_PATCH) + struct stat_libc finfo; +#else struct stat finfo; +#endif You are making the PHP source tree very hard to maintain. If anything, we should probably create some kind o

[PHP-DEV] Re: new database extension

2003-01-04 Thread Leon Mergen
"Jacob R Chandler" <[EMAIL PROTECTED]> wrote using ODBC. However, I'm not exactly sure where to start and wanted to look at those specific extensions. Can someone tell me where I might find this within the PHP source? Hello Jacob, I recommend you to do 3 things: check the php manual on the "Exte

[PHP-DEV] PHP 4 Bug Summary Report

2003-01-04 Thread php-dev
PHP 4 Bug Database summary - http://bugs.php.net Num Status Summary (1054 total including feature requests) ===[*Compile Issues]== 21375 Open Changes in configure.in do not allow the creation of a sane configure ==

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/iconv iconv.c

2003-01-04 Thread moriyoshi
On Fri, Jan 03, 2003 at 10:14:14AM -0500, Andrei Zmievski wrote: > Please, fix stuff in HEAD and *then* merge into the branch. Sorry for the late reply. As I don't know all of those implicit CVS rules, I would really appriciate your kind notification like this. Then I'm just wondering why I should

Re: [PHP-DEV] Objects and Zend Engine2.

2003-01-04 Thread Derick Rethans
On Sat, 4 Jan 2003, Stefano Corsi wrote: > Hello. > > I'm developing and extension that creates several objects using the zend > engine. > > - Will probably the new Zend Engine 2 make my C code unusable? Most likely it will. > - How could I start building towards the new Zend Engine? Have

[PHP-DEV] Re: [PHP-DOC] cvs: phpdoc /en/reference/sem/functions shm-detach.xml

2003-01-04 Thread Derick Rethans
On Sat, 4 Jan 2003, Sander Roobol wrote: > sanderSat Jan 4 05:40:29 2003 EDT > > Modified files: > /phpdoc/en/reference/sem/functionsshm-detach.xml > Log: > Fix return value of shm_detach > # Nicos, you should do things right or don't do them at

Re: [PHP-DEV] CGI and CLI (compromise proposal)

2003-01-04 Thread Marcus Börger
At 22:41 03.01.2003, Jean-Michel Dault wrote: Hello all, Sorry to re-activate this topic, but I stumbled into an issue when packaging PHP 4.3 as an RPM for Mandrake. What happens when a user wants to install *both* php-cli and php-cgi? You cannot have two files with the same name, either in the

[PHP-DEV] Objects and Zend Engine2.

2003-01-04 Thread Stefano Corsi
Hello. I'm developing and extension that creates several objects using the zend engine. - Will probably the new Zend Engine 2 make my C code unusable? - How could I start building towards the new Zend Engine? Thanks, Stefano -- PHP Development Mailing List To u

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

2003-01-04 Thread Andi Gutmans
At 08:25 PM 1/3/2003 +0100, Sascha Schumann wrote: On Fri, 3 Jan 2003, Anantha Kesari H Y wrote: > hyanantha Fri Jan 3 10:59:02 2003 EDT > > Modified files: > /php4/sapi/apache2filter php_apache.h sapi_apache2.c > Log: > Modifications for NetWare. I need to say it aga