Re: [PHP-DEV] Bug #5975 request

2003-02-04 Thread Keyser Soze
The new patch is online at: http://www.ricesu.com.br/php_dev/patch_new.diff I didnt test it yet, will do it tomorrow at work, but it should be ok. :-) Anyway it's there for anyone willing to do the tests. Regards, Fabricio Olivetti - Original Message - From: "Tal Peer" <[EMAIL PROTECTED

[PHP-DEV] Re: Bug # 13551, bcmath scale:: when to apply

2003-02-04 Thread Andi Gutmans
At 11:31 AM 2/4/2003 -0800, Sara Golemon wrote: > BTW, is php_str2num() only supposed to work on whole or decimal values? > What about exponents? > bc_str2num() only allows whole or decimal values so that's all I wrote php_str2num to allow for. By 'exponents' do you mean scientific notation? I d

[PHP-DEV] Re: New CLI switches (was [PHP-DEV] Using CLI as a shell)

2003-02-04 Thread Edin Kadribasic
On Tuesday 04 February 2003 20:25, Marcus Börger wrote: [snip] > >That is a bit too much text for 'php -h'. It should be moved to the > >online manual. Adding a man page would be great too. > > I wrote already i will do so...but haven't yet the time. Could you please then remove the explanation fr

Re: [PHP-DEV] Bug #5975 request

2003-02-04 Thread Tal Peer
Patch looks ok. Just be sure to use zend_parse_parameters instead of zend_get_parameters and zend_bool instead of an integer (just grep ext/standard/* for zend_parse_parameters for examples). Tal Keyser Soze wrote: Sending in plain text: - cut here

Re: [PHP-DEV] Bug #5975 request

2003-02-04 Thread Keyser Soze
sure. http://www.ricesu.com.br/php_dev/patch.diff i'll delete it tomorrow at 15:00 GMT Regards, Fabricio Olivetti - Original Message - From: "Derick Rethans" <[EMAIL PROTECTED]> To: "Keyser Soze" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, February 04, 2003 5:44 PM Subjec

Re: [PHP-DEV] Re: New CLI switches (was [PHP-DEV] Using CLI as a shell)

2003-02-04 Thread Andrei Zmievski
> > I don't like this. IMO all those switches make it messy... and I really > > don't see the advantage of this over -r. PHP isn't supposed to be used > > like this. If it things get too complicated for -r, write a separate > > script instead of hacking up the command line. > > -1 on this. > > Ye

Re: [PHP-DEV] Re: New CLI switches (was [PHP-DEV] Using CLI as ashell)

2003-02-04 Thread Derick Rethans
On Tue, 4 Feb 2003, Sander Roobol wrote: > I don't like this. IMO all those switches make it messy... and I really > don't see the advantage of this over -r. PHP isn't supposed to be used > like this. If it things get too complicated for -r, write a separate > script instead of hacking up the comm

Re: [PHP-DEV] Re: New CLI switches (was [PHP-DEV] Using CLI as a shell)

2003-02-04 Thread Sander Roobol
On Tue, Feb 04, 2003 at 08:25:45PM +0100, Marcus B?rger wrote: > >Am I correct in this assumption? If yes, could please try to point > >out what are the advantages of -B -R -E and -F over using just -r? > > Yes it is the same result. I never said you cannot do it otherwise. > The reason i implemen

Re: [PHP-DEV] Bug #5975 request

2003-02-04 Thread Derick Rethans
On Tue, 4 Feb 2003, Keyser Soze wrote: > Sending in plain text: Got mangled :I Can you put it on the web? Derick -- - Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine

[PHP-DEV] Bug #5975 request

2003-02-04 Thread Keyser Soze
Sending in plain text: - cut here ? patch.diff ? ext/standard/file_new.c ? ext/standard/string_new.c Index: ext/standard/file.c === RCS file: /repository/php4

Re: [PHP-DEV] Bug #5975 request

2003-02-04 Thread Keyser Soze
Attached it's the patch for strip_tags, it patches 3 files: string.c, php_string.h and file.c. It adds a third optional argument as described earlier. Tested here and it worked fine. Any problems, just contact me. Regards, Fabricio Olivetti - Original Message - From: "Derick Rethans" <[E

[PHP-DEV] Re: New CLI switches (was [PHP-DEV] Using CLI as a shell)

2003-02-04 Thread Marcus Börger
At 10:28 04.02.2003, Edin Kadribasic wrote: >First simply use "php -h" but i am also thinking about adding a man >page. That is a bit too much text for 'php -h'. It should be moved to the online manual. Adding a man page would be great too. I wrote already i will do so...but haven't yet the tim

[PHP-DEV] Re: Bug # 13551, bcmath scale:: when to apply

2003-02-04 Thread Sara Golemon
> Indeed I wasn't aware of this bug report. It seems as if your patch is fine > although I could only look at it briefly. > It does look strange that you need to initialize the resulting scale > manually. I thought the BC functions are supposed to take care of returning > the results as the right s

Re: [PHP-DEV] Bug #5975 request

2003-02-04 Thread Derick Rethans
On Tue, 4 Feb 2003, Keyser Soze wrote: > > Hi all, > > I implemented the BUG #5975 requesting a third parameter in strip_tags, to > disallow the tags in the second parameter instead of allowing then. But > since I don't have CVS account, I would like that someone send me the files > ext/standard

[PHP-DEV] Bug #5975 request

2003-02-04 Thread Keyser Soze
Hi all, I implemented the BUG #5975 requesting a third parameter in strip_tags, to disallow the tags in the second parameter instead of allowing then. But since I don't have CVS account, I would like that someone send me the files ext/standard/string.c ext/standard/php_string.h ext/standard/file.

Re: [PHP-DEV] Re: Configure-System on Solaris

2003-02-04 Thread Melvyn Sopacua
At 19:07 4-2-2003, Sascha Schumann wrote: On Tue, 4 Feb 2003, Melvyn Sopacua wrote: > At 17:29 4-2-2003, you wrote: > > >btw. It seems like that test I added for the broken > > sed is not working on some systems. Any ideas why? > > That's the grep -E part :) > Just use `egrep' unless any

Re: [PHP-DEV] Using CLI as a shell

2003-02-04 Thread Michael Mauch
Marcus Börger <[EMAIL PROTECTED]> wrote: > There is a difference between interactive mode and this idea. The > idea was to execute every single line. So if you type 'echo "Hello\n"; > and press enter "Hello" should be displayed. That's how it works for me (PHP-4.3.0). The only pitfall is that you

Re: [PHP-DEV] Re: Configure-System on Solaris

2003-02-04 Thread Sascha Schumann
On Tue, 4 Feb 2003, Melvyn Sopacua wrote: > At 17:29 4-2-2003, you wrote: > > >btw. It seems like that test I added for the broken > > sed is not working on some systems. Any ideas why? > > That's the grep -E part :) > Just use `egrep' unless any1 knows of a system that doesn't carry egrep

Re: [PHP-DEV] Re: Configure-System on Solaris

2003-02-04 Thread J Smith
Jani Taskinen wrote: > On Tue, 4 Feb 2003, J Smith wrote: > > /usr/xpg4/bin/sed > > It should be part of standard install too.. > > --Jani I hate Solaris. There's four seds on my system now: /usr/local/bin/sed, /usr/bin/sed, /usr/ucb/sed and /bin/sed. Yeah, xpg4 sed seems to w

Re: [PHP-DEV] Re: Configure-System on Solaris

2003-02-04 Thread Jani Taskinen
On Tue, 4 Feb 2003, Melvyn Sopacua wrote: >At 17:29 4-2-2003, you wrote: > >>btw. It seems like that test I added for the broken >> sed is not working on some systems. Any ideas why? > >That's the grep -E part :) >Just use `egrep' unless any1 knows of a system that doesn't carry egrep?.

Re: [PHP-DEV] Re: Configure-System on Solaris

2003-02-04 Thread Melvyn Sopacua
At 17:29 4-2-2003, you wrote: btw. It seems like that test I added for the broken sed is not working on some systems. Any ideas why? That's the grep -E part :) Just use `egrep' unless any1 knows of a system that doesn't carry egrep?. With kind regards, Melvyn Sopacua -- PHP Develo

Re: [PHP-DEV] Re: Configure-System on Solaris

2003-02-04 Thread Jani Taskinen
On Tue, 4 Feb 2003, J Smith wrote: >Jani Taskinen wrote: > >> >> There should be another version of 'sed' in Solaris which can handle >> the long lines though. No idea why they have 2 versions. > >Never knew that. Is that part of a standard install, or is it bundled in >some kind of patch

Re: [PHP-DEV] Re: Configure-System on Solaris

2003-02-04 Thread J Smith
Jani Taskinen wrote: > > There should be another version of 'sed' in Solaris which can handle > the long lines though. No idea why they have 2 versions. > > --Jani Never knew that. Is that part of a standard install, or is it bundled in some kind of patch, or does it have a diff

Re: [PHP-DEV] Re: Configure-System on Solaris

2003-02-04 Thread Jani Taskinen
On Tue, 4 Feb 2003, Sascha Schumann wrote: >> There should be another version of 'sed' in Solaris which can handle >> the long lines though. No idea why they have 2 versions. > >IIRC that is due to Solaris' BSD heritage. Solaris 1 (SunOS 4) >was based on BSD (from the University o

Re: [PHP-DEV] Re: Configure-System on Solaris

2003-02-04 Thread Sascha Schumann
> There should be another version of 'sed' in Solaris which can handle > the long lines though. No idea why they have 2 versions. IIRC that is due to Solaris' BSD heritage. Solaris 1 (SunOS 4) was based on BSD (from the University of California, Berkeley, hence ucb) and they h

Re: [PHP-DEV] Re: Configure-System on Solaris

2003-02-04 Thread Jani Taskinen
On Tue, 4 Feb 2003, J Smith wrote: >Zeev Suraski wrote: > >> I don't think we can rely on GNU grep being installed though... >> > >Well, we pretty much need to rely on GNU sed being installed on Solaris, so >why not grep, too? The sed problem comes up when doing the final linking >when building.

Re: [PHP-DEV] Re: Configure-System on Solaris

2003-02-04 Thread J Smith
Zeev Suraski wrote: > I don't think we can rely on GNU grep being installed though... > Well, we pretty much need to rely on GNU sed being installed on Solaris, so why not grep, too? The sed problem comes up when doing the final linking when building. You usually end up with a collosal libtool l

Re: [PHP-DEV] Ok, I'm stupid but why..

2003-02-04 Thread michel 'ziobudda' morelli
Il mar, 2003-02-04 alle 16:58, michel 'ziobudda' morelli ha scritto: > ... it does not work: [snip] > cvs -z3 -d :pserver:[EMAIL PROTECTED]:/repository -z3 co -rPHP_4_3 > php4 yes, with php4 it can not work (is not ZE2) (error in cut&paste). but for the other ? > cvs -z3 -d :pserver:[EMAIL PROT

[PHP-DEV] Ok, I'm stupid but why..

2003-02-04 Thread michel 'ziobudda' morelli
... it does not work: bar(); bar(); } } $obj = new FooClass; $obj->foo(); ?> with these CVS: cvs -z3 -d :pserver:[EMAIL PROTECTED]:/repository -z3 co -rPHP_4_3 php4 cvs -z3 -d :pserver:[EMAIL PROTECTED]:/repository -z3 co php5 cvs -z3 -d :pserver:[EMAIL PROTECTED]:/repository -z3 co php4-ze2

Re: [PHP-DEV] Re: Configure-System on Solaris

2003-02-04 Thread Zeev Suraski
I don't think we can rely on GNU grep being installed though... At 17:29 04/02/2003, J Smith wrote: GNU grep should work. Just make sure /usr/local/bin comes before /bin in your $PATH. J Sebastian Nohn wrote: > Latest CVS (PHP5-dev) on Solaris: > > Configuring TSRM > checking for stdarg.h...

[PHP-DEV] Re: Configure-System on Solaris

2003-02-04 Thread J Smith
GNU grep should work. Just make sure /usr/local/bin comes before /bin in your $PATH. J Sebastian Nohn wrote: > Latest CVS (PHP5-dev) on Solaris: > > Configuring TSRM > checking for stdarg.h... (cached) yes > grep: illegal option -- E > Usage: grep -hblcnsviw pattern file . . . > > Regards, S

[PHP-DEV] Configure-System on Solaris

2003-02-04 Thread Sebastian Nohn
Latest CVS (PHP5-dev) on Solaris: Configuring TSRM checking for stdarg.h... (cached) yes grep: illegal option -- E Usage: grep -hblcnsviw pattern file . . . Regards, Sebastian Nohn -- [EMAIL PROTECTED] - http://nohn.net/ -- PHP Development Mailing List To unsubscribe, vis

Re: [PHP-DEV] PHP 5 mailing list

2003-02-04 Thread Derick Rethans
On Tue, 4 Feb 2003, Andrey Hristov wrote: > Dan, > on http://news.php.net php.version5.dev is listed (12 messages so far in the > archive). Except that you can't get articles on it :-) Derick -- - Derick Rethans

Re: [PHP-DEV] OO in PHP5 (was "zend_API.c" on php-dev)

2003-02-04 Thread Harald Radi
? harald "Timm Friebe" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:<1044352391.22055.58.camel@localhost>... > On Mon, 2003-02-03 at 21:20, Harald Radi wrote: > [...] > > when called as function -> print warning > > when called as method -> throw exception > > What exception? There are no bui

Re: [PHP-DEV] Security question with PHP on Unix / Linux.

2003-02-04 Thread Ananth Kesari
Hi Dan, I am a newbie to Unix systems and so it is very much possible to misunderstand concepts there:-( Well, I had first posted this on the PHP general list. Got no response there and so posted onto this mailing list. Maybe I will again go back to the general list. Thanks, Ananth. >>> "Dan Har

Re: [PHP-DEV] Security question with PHP on Unix / Linux.

2003-02-04 Thread Dan Hardiker
> At this point of time, I am trying to understand the way security is > implemented for PHP on Unix / Linux. I mean, how are the different users > distinguished in Unix / Linux. Do they get to login into the Unix / > Linux system through separate accounts? In that case, do they have > separate dat

[PHP-DEV] more calendar functionality and and the date() function

2003-02-04 Thread moshe doron
right now, the calendar extension miss the right date for some calendars by plus\minus day depends on the calendar native. e.g, on the jewish one, the "days come by the nights" mean 4\2\2003 evening is belongs to 5\2\2003, where the evening is function of the sunset for given day, latitude, long

[PHP-DEV] Security question with PHP on Unix / Linux.

2003-02-04 Thread Ananth Kesari
Hi, At this point of time, I am trying to understand the way security is implemented for PHP on Unix / Linux. I mean, how are the different users distinguished in Unix / Linux. Do they get to login into the Unix / Linux system through separate accounts? In that case, do they have separate data spa

Re: [PHP-DEV] OO in PHP5 (was "zend_API.c" on php-dev)

2003-02-04 Thread Timm Friebe
On Mon, 2003-02-03 at 21:20, Harald Radi wrote: [...] > when called as function -> print warning > when called as method -> throw exception What exception? There are no builtin exceptions and IMHO it would be better to leave writing such up to the user. E.g. I'd like to be able to have _all_ my c

[PHP-DEV] New CLI switches (was [PHP-DEV] Using CLI as a shell)

2003-02-04 Thread Edin Kadribasic
>First simply use "php -h" but i am also thinking about adding a man >page. That is a bit too much text for 'php -h'. It should be moved to the online manual. Adding a man page would be great too. [snip] >find . -name '*.c' -o -name '*.h' | php -B '$l=0;' -R >'$f=count(file($argn)); echo "$argn($

Re: [PHP-DEV] PHP 5 mailing list

2003-02-04 Thread Andrey Hristov
Dan, on http://news.php.net php.version5.dev is listed (12 messages so far in the archive). Andrey - Original Message - From: "Dan Kalowsky" <[EMAIL PROTECTED]> To: "PHP Development Mailing list" <[EMAIL PROTECTED]> Sent: Monday, February 03, 2003 10:22 PM Subject: [PHP-DEV] PHP 5 mailin