Re: [PHP-DEV] __Destruct() functionality

2004-06-29 Thread Adam Maccabee Trachtenberg
On Wed, 30 Jun 2004, Gareth Ardron wrote: > Does the examples I gave you before not count ? Yes. It does not count. > in this case, the __destruct() function within someOtherClass does > absolutly bugger all. You can't reference one object from another's destructor. PHP makes no promises about

Re: [PHP-DEV] Code coverage testing

2004-06-29 Thread Michael Luu
These tools are exactly what I'm looking for. Thanks guys! Mike On Wed, 30 Jun 2004 06:07:51 +0200, Sebastian Bergmann <[EMAIL PROTECTED]> wrote: > > George Schlossnagle wrote: > > I believe xDebug supports this > > It does. When using PHPUnit2 with XDebug you get information about > which

Re: [PHP-DEV] Code coverage testing

2004-06-29 Thread Sebastian Bergmann
George Schlossnagle wrote: I believe xDebug supports this It does. When using PHPUnit2 with XDebug you get information about which lines of code are covered by which unit test, etc. -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Das Buch zu PHP 5:

Re: [PHP-DEV] Code coverage testing

2004-06-29 Thread George Schlossnagle
On Jun 29, 2004, at 10:52 PM, Michael Luu wrote: Hi all. I've started poking/hacking around in the Zend source trying to implement code coverage statistics for php files. The end goal is to build php with a coverage option, place it on a test server, run test suites, then see which lines of code in

[PHP-DEV] Fix for bug #28325

2004-06-29 Thread Moriyoshi Koizumi
I made a patch for bug #28325. I'd like to see this one applied by the time PHP5 gets out of the door. http://www.voltex.jp/patches/bug28325-preliminary.patch.diff Regards, Moriyoshi -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Code coverage testing

2004-06-29 Thread Michael Luu
Hi all. I've started poking/hacking around in the Zend source trying to implement code coverage statistics for php files. The end goal is to build php with a coverage option, place it on a test server, run test suites, then see which lines of code in which files were hit (more importantly which one

[PHP-DEV] Receiving arguments by ref...

2004-06-29 Thread l0t3k
i've read the Zend API docs at php.net and they seem dated, but i haven't found anything that deals with byref parameters using the new parameter parsing API. so i have a few questions ... 1. Is it sufficient to have an zend_arg_info structure declaring that a parameter is byref, and parse the val

Re: [PHP-DEV] __Destruct() functionality

2004-06-29 Thread Gareth Ardron
On Mon, 2004-06-28 at 12:25, Florian Schaper wrote: > > __destruct will get executed during request shutdown after the > > communication has been shutdown. The only way to be able to write > > from within __destruct is to deinitialize it at the end of the > > script and therefore before the reques

Re: [PHP-DEV] __Destruct() functionality

2004-06-29 Thread Gareth Ardron
On Tue, 2004-06-29 at 18:55, Marcus Boerger wrote: > Hello Florian, > > there is no problem in calling resource destructors/terminators in your > destructors. You simply cannot output text to your pages from them. If > this is not true then we need to fix it. For example if an object of > yours ho

Re: [PHP-DEV] __Destruct() functionality

2004-06-29 Thread Florian Schaper
Marcus Boerger wrote: > Hello Florian, > > there is no problem in calling resource destructors/terminators in > your destructors. You simply cannot output text to your pages from > them. If this is not true then we need to fix it. For example if an > object of yours holds a database connection and

Re: [PHP-DEV] Base and derived class construction

2004-06-29 Thread Marcus Boerger
Hello Jason, to be honest i don't really care. Since i am a C++ guy who loves types i'd appreciate automatic calling of inherited constructors/destructors. But php does not have types and so the non implicit calling version gives us a little bit more flexibility. Since we also don't have polymorph

Re: [PHP-DEV] __Destruct() functionality

2004-06-29 Thread Marcus Boerger
Hello Florian, there is no problem in calling resource destructors/terminators in your destructors. You simply cannot output text to your pages from them. If this is not true then we need to fix it. For example if an object of yours holds a database connection and your destructor executes some SQL

Re: [PHP-DEV] __Destruct() functionality

2004-06-29 Thread Florian Schaper
Gareth Ardron wrote: > On Mon, 2004-06-28 at 12:25, Florian Schaper wrote: > [...] >( though I'd prefer the way destruct is called to be > changed ;-) ) For what it's worth, i'd second that. ./regards Florian -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http:

[PHP-DEV] CVS Account Request: gabe

2004-06-29 Thread Gabriel Ricard
Maintenance of zeroconf extension. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php