Re: [PHP-DEV] resources vs objects?

2006-04-29 Thread Brandon Fosdick
Brandon Fosdick wrote: From the point of view of an extension, what's the difference between a resource and an object? Is there any reason to favor one over the other? sqlite seems to use resources for the procedural interface and objects otherwise. Whereas mysqli uses objects all around in u

[PHP-DEV] resources vs objects?

2006-04-29 Thread Brandon Fosdick
From the point of view of an extension, what's the difference between a resource and an object? Is there any reason to favor one over the other? sqlite seems to use resources for the procedural interface and objects otherwise. Whereas mysqli uses objects all around in user space, but then maps

[PHP-DEV] resources vs objects?

2006-04-29 Thread Brandon Fosdick
From the point of view of an extension, what's the difference between a resource and an object? Is there any reason to favor one over the other? sqlite seems to use resources for the procedural interface and objects otherwise. Whereas mysqli uses objects all around in user space, but then maps

Re: [PHP-DEV] Developing PHP

2006-04-29 Thread Sara Golemon
They're just that... Comments and nothing more. The reason they look so funny is that the PHP Documentation team has a set of scripts specifically designed to parse source code files and automatically generate documentation skeletons from these specially formatted blocks. I thought that {{{

Re: [PHP-DEV] Developing PHP

2006-04-29 Thread Hartmut Holzgraefe
Rasmus Lerdorf wrote: Tim Van Wassenhove wrote: I thought that {{{ and }}} were there because they are markers for vim code folding. Emacs too actually. As far as i remember emacs folding mode supported these first and vim only picked this up later I am jetlagged (twice), was stranded i

Re: [PHP-DEV] Developing PHP

2006-04-29 Thread Pierre
On 4/29/06, Brandon Fosdick <[EMAIL PROTECTED]> wrote: Pierre wrote: > You had a yes for this question (this is part of the CS), and my > answer was about your first question, sorry :) Thanks. The CS says "should",... You have to do it. That's more clear :) --Pierre -- PHP Internals - PHP Ru

Re: [PHP-DEV] Developing PHP

2006-04-29 Thread Rasmus Lerdorf
Brandon Fosdick wrote: Pierre wrote: You had a yes for this question (this is part of the CS), and my answer was about your first question, sorry :) Thanks. The CS says "should", and I've been reading webdav specs for the last few days..."should" and "must" are different things in that world.

Re: [PHP-DEV] Developing PHP

2006-04-29 Thread Brandon Fosdick
Pierre wrote: You had a yes for this question (this is part of the CS), and my answer was about your first question, sorry :) Thanks. The CS says "should", and I've been reading webdav specs for the last few days..."should" and "must" are different things in that world. I was looking for someth

Re: [PHP-DEV] Developing PHP

2006-04-29 Thread Pierre
On 4/29/06, Brandon Fosdick <[EMAIL PROTECTED]> wrote: Pierre wrote: >> Does new code have to support these antiques? > > It adds foldiong wherever you like. It is not the topic of this list > anyway :) Whether or not I have to add those markers for new functions I write seems like it should be

Re: [PHP-DEV] Developing PHP

2006-04-29 Thread Brandon Fosdick
Pierre wrote: Does new code have to support these antiques? It adds foldiong wherever you like. It is not the topic of this list anyway :) Whether or not I have to add those markers for new functions I write seems like it should be on topic. -- PHP Internals - PHP Runtime Development Maili

Re: [PHP-DEV] Developing PHP

2006-04-29 Thread Pierre
On 4/29/06, Brandon Fosdick <[EMAIL PROTECTED]> wrote: Rasmus Lerdorf wrote: > Tim Van Wassenhove wrote: > >> I thought that {{{ and }}} were there because they are markers for vim >> code folding. > > Emacs too actually. Emacs and vim need markers for folding? Does new code have to support the

Re: [PHP-DEV] Developing PHP

2006-04-29 Thread Brandon Fosdick
Rasmus Lerdorf wrote: Tim Van Wassenhove wrote: I thought that {{{ and }}} were there because they are markers for vim code folding. Emacs too actually. Emacs and vim need markers for folding? Does new code have to support these antiques? -- PHP Internals - PHP Runtime Development Mailing

Re: [PHP-DEV] Developing PHP

2006-04-29 Thread Rasmus Lerdorf
Tim Van Wassenhove wrote: I thought that {{{ and }}} were there because they are markers for vim code folding. Emacs too actually. -Rasmus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Developing PHP

2006-04-29 Thread Derick Rethans
On Sat, 29 Apr 2006, Tim Van Wassenhove wrote: > On 2006-04-29, "Sara Golemon" <[EMAIL PROTECTED]> wrote: > >> I found that around all the function you find somthing like that: > >> > >> /* {{{ proto object imap_fetchstructure(resource stream_id, int msg_no [, > >> int > >> options]) > >> Read th

Re: [PHP-DEV] ZSTR and NULL problems again

2006-04-29 Thread Frank M. Kromann
Thanks Nuno, Patch has been applied to CVS. There is still a couple of extensions that need same treatment. I'm going to look through the code and find these. - Frank > Here is a diff to fix a couple of missing ZSTR macros. > > > - Original Message - > From: "Hannes Magnusson" <[EMAI

Re: [PHP-DEV] Joshua's upload progress patch

2006-04-29 Thread Rasmus Lerdorf
Rasmus Lerdorf wrote: I had another look at Joshua's upload progress patch: http://pdoru.from.ro/upload-progress-meter/upload-progress-meter-v4.1/php-patch/patch.upload-progress-callback-v4.1-for-php5.0.3.txt I seem to remember there being some valid reason for not adding this patch, but lo

[PHP-DEV] Joshua's upload progress patch

2006-04-29 Thread Rasmus Lerdorf
I had another look at Joshua's upload progress patch: http://pdoru.from.ro/upload-progress-meter/upload-progress-meter-v4.1/php-patch/patch.upload-progress-callback-v4.1-for-php5.0.3.txt I seem to remember there being some valid reason for not adding this patch, but looking over the code, it do

Re: [PHP-DEV] Help with generating a stack trace on IIS6

2006-04-29 Thread Sharad Gupta
It seems I was able to compile a debug version of php 4.4.2 myself using MSVC++ 6 with php4dll.dsw... but when I point IIS to ISAPI dll ... on all scripts, I get "input file not found" error ... when I dump a phpinfo using "php -i" ... it tells me that I am using PHP in CGI/FastCGI mode ... but I

[PHP-DEV] engine/streams problem in HEAD

2006-04-29 Thread Nuno Lopes
Hi, Today I was writing some new tests for tidy, but they aren't working because of some problem in the engine or the streams stuff that leads to memory corruption. The test is ext/tidy/tests/020.phpt. Attached is a nice valgrind log :) Nuno ==18294== Memcheck, a memory error detector. ==1

[PHP-DEV] CVS Account Request: antimon

2006-04-29 Thread Ekin Koc
I want to work on documentation translation to Turkish. I've been developing with php for 4 years and my English knowledge is enough to translate php docs. I read the documentation how to and used to use cvs. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://w

Re: [PHP-DEV] ZSTR and NULL problems again

2006-04-29 Thread Nuno Lopes
Here is a diff to fix a couple of missing ZSTR macros. - Original Message - From: "Hannes Magnusson" <[EMAIL PROTECTED]> To: "Frank M. Kromann" <[EMAIL PROTECTED]> Cc: "Sara Golemon" <[EMAIL PROTECTED]>; "Wez Furlong" <[EMAIL PROTECTED]>; "Andrei Zmievski" <[EMAIL PROTECTED]>; Sent:

[PHP-DEV] CVS Account Request: mb

2006-04-29 Thread Marek Behun
I have written new PECL package: stime (setting time) extension. It contains two functions: settime and setmicrotime. So I need an account. :) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] ZSTR and NULL problems again

2006-04-29 Thread Hannes Magnusson
Hi Frank I have now removed the ZSTR() macros from the stream macros. Andrei will you please test that it compiles now? http://bugs.php.net/bug.php?id=37241 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Hash entries added with keys without trailing null

2006-04-29 Thread Michael Wallner
Wez Furlong wrote: On 4/28/06, Michael Wallner <[EMAIL PROTECTED]> wrote: - Registered PHP Streams - Registered Stream Socket Transports - Registered Stream Filters - PDO drivers These are all intentional; there is no need to store nor compare against that NUL

Re: [PHP-DEV] Help with generating a stack trace on IIS6

2006-04-29 Thread Nuno Lopes
I haven't been able to use such tool with PHP with the .pdb files myself. If you have success, could you please write a tutorial for our bugs.php.net site? That tool teoricaly should also find memory leaks, but well, I can't work with it.. Wine with valgrind is much easier :) Nuno - Orig

Re: [PHP-DEV] more candidates for PECL

2006-04-29 Thread Hartmut Holzgraefe
Wez Furlong wrote: It'd be good to have Hartmut's view on that, since he wrote both those systems. I suspect that Hartmut will want to keep at least one of them around in the core. *DISCLAIMER* I did *not* write ext_skel, i tried to maintain it for a short while but gave up on that pretty so

Re: [PHP-DEV] Developing PHP

2006-04-29 Thread Tim Van Wassenhove
On 2006-04-29, "Sara Golemon" <[EMAIL PROTECTED]> wrote: >> I found that around all the function you find somthing like that: >> >> /* {{{ proto object imap_fetchstructure(resource stream_id, int msg_no [, >> int >> options]) >> Read the full structure of a message */ >> PHP_FUNCTION(imap_fetchstr

Re: [PHP-DEV] Passing functions to function by reference

2006-04-29 Thread Etienne Kneuss
Hello, I don't see the point using func_taking_reference($quiet=some_func()); The expression $quiet=some_func() will not "return" $quiet itself. So its not an alternative to $quiet=some_func(); func_taking_reference($quiet); You don't avoid the E_STRICT here. Regards Rasmus Lerdorf a écrit :