[PHP-DEV] Everyone on the road?

2004-07-24 Thread Andi Gutmans
Hey, It's a bit quiet here lately :) Has anyone had a chance to try, test and benchmark the realpath() patch I send to the list? Andi -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] fp, rounding, decimal arithmetic - definitive

2004-07-24 Thread George Whiffen
Andi Gutmans wrote: Hi George, Although a bit long, your email was an interesting read. Thanks. I am not quite sure how we should approach this problem as PHP's FP has gone through a zillion patches in the past few years. Yeahh. Yet another partial solution can do as much harm as good. It

Re: [PHP-DEV] Calling PHP functions from an extension

2004-07-24 Thread John Lim
Thanks to everyone. I will have a look. I'm porting the adodb extension to php5, so i thought i might as well ask this question that's been bugging me for some time. Andi Gutmans [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] php5/Zend/zend_execute_API.c. It's quite simple. If you

Re: [PHP-DEV] [PATCH] two small typos in php.ini.* and mail.c

2004-07-24 Thread Antony Dovgal
On Fri, 23 Jul 2004 10:25:27 -0700 Andi Gutmans [EMAIL PROTECTED] wrote: This should probably be applied but what if people are using them already? Any idea when these were introduced? Sorry, no idea, but I doubt somebody could use it, because mail.c's typo is incompatible with php.ini's typo

Re: [PHP-DEV] Calling PHP functions from an extension

2004-07-24 Thread John Lim
Andi, Just a few quick questions. What is the BG macro for? Eg. if (zend_call_function(fci, BG(fci_cache) TSRMLS_CC) == SUCCESS) Secondly, I think i need to initialize the fci_cache structure first with fci_cache = empty_fcall_info_cache; Can I do so in my PHP_MINIT_FUNCTION? Thx. Andi

Re: [PHP-DEV] Calling PHP functions from an extension

2004-07-24 Thread Andrey Hristov
G usually comes from Globals and I have seen BG in ext/standard so maybe BG means Basic functions Globals. andrey John Lim wrote: Andi, Just a few quick questions. What is the BG macro for? Eg. if (zend_call_function(fci, BG(fci_cache) TSRMLS_CC) == SUCCESS) Secondly, I think i need to

[PHP-DEV] Someone to fix anoncvs.php

2004-07-24 Thread Andrey Hristov
If someone has time and karma it will be nice if anoncvs.php is fixed to add instruction how to checkout 5_0 branch and change the instructions about PHP 5 to PHP 5.1. Thanks, andrey -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Calling PHP functions from an extension

2004-07-24 Thread John Lim
Andrey Hristov [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] G usually comes from Globals and I have seen BG in ext/standard so maybe BG means Basic functions Globals. andrey John Lim wrote: Andi, Just a few quick questions. What is the BG macro for? Eg. if

Re: [PHP-DEV] Calling PHP functions from an extension

2004-07-24 Thread Andrey Hristov
John Lim wrote: Andrey Hristov [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] G usually comes from Globals and I have seen BG in ext/standard so maybe BG means Basic functions Globals. andrey John Lim wrote: Andi, Just a few quick questions. What is the BG macro for? Eg. if

Re: [PHP-DEV] Calling PHP functions from an extension

2004-07-24 Thread Andrey Hristov
John Lim wrote: Andrey Hristov [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] G usually comes from Globals and I have seen BG in ext/standard so maybe BG means Basic functions Globals. andrey John Lim wrote: Andi, Just a few quick questions. What is the BG macro for? Eg. if

Re: [PHP-DEV] Someone to fix anoncvs.php

2004-07-24 Thread Jacques Marneweck
Hi Andrey, Mail me a patch and I'll fix it. Regards --jm On Sat, 24 Jul 2004 11:30:35 +, Andrey Hristov [EMAIL PROTECTED] wrote: If someone has time and karma it will be nice if anoncvs.php is fixed to add instruction how to checkout 5_0 branch and change the instructions about PHP 5

Re: [PHP-DEV] Everyone on the road?

2004-07-24 Thread Rasmus Lerdorf
On Sat, 24 Jul 2004, Andi Gutmans wrote: Has anyone had a chance to try, test and benchmark the realpath() patch I send to the list? I had a look the other day, but here is a more detailed look at the system calls involved in a php5 request. I have stripped out most of the stuff we can't do

Re: [PHP-DEV] Everyone on the road?

2004-07-24 Thread Stefan Esser
Hi, I'd love to see a realpath() replacement function which makes use of the stat cache for partial paths as well. Chances are that on a busy ISP server, for example, you will have thousands of scripts and include files served up from the same base path and you are going to be statting your

Re: [PHP-DEV] Everyone on the road?

2004-07-24 Thread Christian Schneider
Stefan Esser wrote: Realpath is not only slow, it is also dangerous on some systems like linux where it also works on paths that are not really existing. example: include ./foo/bar/index.php/../../../../../../etc/passwd; This is a completely legal unix path as .. in / is / again. And from a

Re: [PHP-DEV] [PATCH] tests/classes/factory_and_singleton_010.phpt

2004-07-24 Thread Kamesh Jayachandran
Hello Marcus, On Thu, 22 Jul 2004 20:47:31 +0200, Marcus Boerger [EMAIL PROTECTED] said: Hello Kamesh, can you adapt you test files to ouput a single line before the actual script starts by using 'echo *\n;' for example and see if you get a blank line in the output then? I did not get