[PHP-DEV] Re: adding http digest authentication to php5

2004-02-01 Thread Rui Hirokawa
I reallized this patch is not useful, because 1. http 1.1 based client authentication method (qop, cnonce, nc) is not supported yet. array $_SERVER['PHP_AUTH_DIGEST'] having the elementes 'nonce','qop','cnonce','nc' should be defined. 2. the order of parameters should be unknown. I will us

Re: [PHP-DEV] PHP5: bcmath

2004-02-01 Thread Georg Richter
> From what I remember, GMP module is superior to bcmath and works > good, however I have seen problems with bcmath not working in certain > situations. GMP is LGPL, I don't know if it matters. GMP is a solution too - but it's not "very fast" Cheers! Georg -- PHP Internals - PHP Runtime Develo

Re: [PHP-DEV] PHP5: bcmath

2004-02-01 Thread Sara Golemon
"Ilia Alshanetsky" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Majority of PHP application and hence users do not require this extension. > Those who do, in most cases operate in an environment where they have full > control over their PHP configuration and thus will be able to en

[PHP-DEV] VERY URGENT.....

2004-02-01 Thread Mr JAMES OKORO
Mr JAMES OKORO Bank Of The North, Victoria Island Branch, Lagos, Nigeria. ATTN: MD/CEO I am Mr JAMES OKORO , Branch Manager with Bank of the North, Victoria Island Branch, Lagos, Nigeria. I have an urgent and very profitable business proposition for you that should be handled with extreme confide

Re: [PHP-DEV] Warnings in include files suddenly treated as fatal

2004-02-01 Thread Ilia Alshanetsky
On February 01, 2004 01:08 pm, you wrote: > Oh OK. As I mentioned in a previous email I'm not sure this is the best way > of doing the patch. It should be possible to bailout when the parse error > is detected. That was my initial concern as well, however the problem is that any earlier attempts

Re: [PHP-DEV] Warnings in include files suddenly treated as fatal

2004-02-01 Thread Andi Gutmans
At 12:42 PM 2/1/2004 -0500, Ilia Alshanetsky wrote: On February 01, 2004 12:30 pm, Andi Gutmans wrote: > I understand from the comments here that your patch wasn't very successful. Original patch was incomplete, therefor I made 2 seperate patches (1 for php5 & 1 for php4) that augment the behaviour

Re: [PHP-DEV] Warnings in include files suddenly treated as fatal

2004-02-01 Thread Ilia Alshanetsky
On February 01, 2004 12:30 pm, Andi Gutmans wrote: > I understand from the comments here that your patch wasn't very successful. Original patch was incomplete, therefor I made 2 seperate patches (1 for php5 & 1 for php4) that augment the behaviour and fix the problem originally reported by Rasmu

Re: [PHP-DEV] Warnings in include files suddenly treated as fatal

2004-02-01 Thread Andi Gutmans
This sounds like a bug. The behavior should be that unless there was a parse error include/include_once should not halt but give a warning if the file doesn't exist. require/require_once should halt if the file doesn't exist. I understand from the comments here that your patch wasn't very success

Re: [PHP-DEV] PHP5: bcmath

2004-02-01 Thread Marcus Boerger
Hello Stanislav, Sunday, February 1, 2004, 10:09:52 AM, you wrote: AG>>> >financial applications and thinking about the impact of "Enterprise" I'm AG>>> >wondering that bcmath is not enabled by default. AG>>> > AG>>> >Is there a reason for it? if not I'm strongly +1 to enable it by default. AG>>>

Re: [PHP-DEV] SimpleXML->children() and text nodes

2004-02-01 Thread Marcus Boerger
Hello Derick, Sunday, February 1, 2004, 12:47:17 AM, you wrote: > Hello, > I was wondering on how to iterate over the elements of in > the following piece of XML: > > > foo > bar > foobar > > > when I iterate over $s->body->children() I only get the and > the . Shouldn't it also sh

Re: [PHP-DEV] Re: adding http digest authentication to php5

2004-02-01 Thread Pierre-Alain Joye
On Sun, 01 Feb 2004 23:36:47 +0900 Rui Hirokawa <[EMAIL PROTECTED]> wrote: > > Can I attach a php script ? .txt only :) pierre -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: adding http digest authentication to php5

2004-02-01 Thread Rui Hirokawa
Can I attach a php script ? $username = "taro"; $password = "secret"; function auth_func() { global $realm, $nonce; header('HTTP/1.0 401 Unauthorized'); header("WWW-authenticate: Digest realm=\"$realm\" nonce=\"$nonce\""); die('password or user name is invalid.'); } if (empty($_SERVER['PH

[PHP-DEV] Re: adding http digest authentication to php5

2004-02-01 Thread Rui Hirokawa
I forgot to attach a sample script. Rui Hi, I just made a patch to add http digest authentication for php5 based on RFC2617. It is not tested well yet, the attached sample script 'digest-auth.php' works with Mozilla Firebird 0.7. It is useful or not ? Rui -- PHP Internals - PHP Runtime Deve

[PHP-DEV] adding http digest authentication to php5

2004-02-01 Thread Rui Hirokawa
Hi, I just made a patch to add http digest authentication for php5 based on RFC2617. It is not tested well yet, the attached sample script 'digest-auth.php' works with Mozilla Firebird 0.7. It is useful or not ? Rui Index: main/SAPI.h ===

Re: [PHP-DEV] PHP5: bcmath

2004-02-01 Thread Stefan Walk
> >From what I remember, GMP module is superior to bcmath and works > good, however I have seen problems with bcmath not working in certain > situations. GMP is LGPL, I don't know if it matters. GMP is superior in features, but the ext is not available on windows (at least the manual says so, i

[PHP-DEV] Re: SimpleXML->children() and text nodes

2004-02-01 Thread Tobias Bradtke
Derick Rethans wrote: > Another thing that would be useful to have is a tag() method, so that > this would work too: (ie, I can check what tag I got during iteration). > >foreach ($sx->body->children() as $node) { > if ($node->tag() == 'element') { > /* do this */ > } > } > ?>

[PHP-DEV] CVS Account Request: norbert_m

2004-02-01 Thread Norbert Mocsnik
Committing the hungarian translation of the PEAR manual. /peardoc/hu/ Martin Jansen wrote: > Do you already have a CVS account for cvs.php.net? You'll need one in order to > commit the XML sources into the CVS repository. Please send me back the password if possible, for later reference. Thanks

Re: [PHP-DEV] PHP5: bcmath

2004-02-01 Thread Stanislav Malyshev
AG>> >financial applications and thinking about the impact of "Enterprise" I'm AG>> >wondering that bcmath is not enabled by default. AG>> > AG>> >Is there a reason for it? if not I'm strongly +1 to enable it by default. AG>> AG>> I wouldn't mind. >From what I remember, GMP module is superior to

Re: [PHP-DEV] PHP5: bcmath

2004-02-01 Thread Andi Gutmans
At 07:50 AM 2/1/2004 +0100, Georg Richter wrote: Hi, after discussion with Brian Aker about problems with number precision in financial applications and thinking about the impact of "Enterprise" I'm wondering that bcmath is not enabled by default. Is there a reason for it? if not I'm strongly +1 t

Re: [PHP-DEV] PHP5: bcmath

2004-02-01 Thread Pierre-Alain Joye
On Sun, 1 Feb 2004 07:50:45 +0100 Georg Richter <[EMAIL PROTECTED]> wrote: > Hi, > > after discussion with Brian Aker about problems with number precision > in financial applications and thinking about the impact of > "Enterprise" I'm wondering that bcmath is not enabled by default. > > Is ther

Re: [PHP-DEV] PHP5: bcmath

2004-02-01 Thread Ilia Alshanetsky
Majority of PHP application and hence users do not require this extension. Those who do, in most cases operate in an environment where they have full control over their PHP configuration and thus will be able to enable this extension on demand. -1. Ilia On February 01, 2004 01:50 am, Georg R

Re: [PHP-DEV] Warnings in include files suddenly treated as fatal

2004-02-01 Thread Ilia Alshanetsky
The basic problem is as follows. If you have a parse error inside an included or required file, the execution stops just for that file and continues for the main script. The result is that normally a fatal (parse) error becomes a warning. Consequently, it may result in undefined behavior since w

Re: [PHP-DEV] PHP5: bcmath

2004-02-01 Thread Sebastian Bergmann
Georg Richter wrote: > Is there a reason for it? if not I'm strongly +1 to enable it by > default. +1 (it's been enabled by default on Windows for ages) -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Das Buch zu PHP 5: http://professionelle-sof