Re: [PHP-DEV] Exceptions and Errors

2004-04-11 Thread John Coggeshall
On Mon, 2004-04-12 at 01:27, Adam Maccabee Trachtenberg wrote: > 1) None (almost none?) of the internal classes use exceptions. This >makes it difficult (if not impossible) to explain how to use >exceptions because you cannot show a meaningful example. As of today, Tidy throws Exceptions i

Re: [PHP-DEV] Exceptions and Errors

2004-04-11 Thread Adam Maccabee Trachtenberg
On Sun, 11 Apr 2004, John Coggeshall wrote: > As a matter of consistency, I would like to suggest that for those > extensions which have a OO/procedural syntax that the non-fatal errors > generated by those extensions be thrown as Exceptions when called from > an OO syntax. I have already committe

[PHP-DEV] Exceptions and Errors

2004-04-11 Thread John Coggeshall
As a matter of consistency, I would like to suggest that for those extensions which have a OO/procedural syntax that the non-fatal errors generated by those extensions be thrown as Exceptions when called from an OO syntax. I have already committed such a change to Tidy, and I can't see any serious

Re: [PHP-DEV] fputcsv()

2004-04-11 Thread Moriyoshi Koizumi
On 2004/04/12, at 1:33, David Sklar wrote: Attached is a patch that implements fputcsv() as a complement to fgetcsv(). There are two things that still need improvement: - It adds "\n" as a newline onto the end of each line. I think it would be better to add a platform-specific line ending. -

Re: [PHP-DEV] PHP4 -> PHP5 incompatibility - classes must be declared before being used

2004-04-11 Thread Marcus Boerger
Hello Marc, Sunday, April 11, 2004, 7:47:23 AM, you wrote: > Hi All, > I have a couple question re: {subject}. > Can anybody point me to some info on why this change was neccessary (not > complaining, just curious). I did some searching and it seems to relate > to objects that use interfaces

Re: [PHP-DEV] fputcsv()

2004-04-11 Thread Ilia Alshanetsky
Hi David, I've made a slight revision to your proposed patch with adds the following changes: 1) Raise notice when delimeter or enclosure are >1 character long. 2) Fixed a crash with custom delimeters & enclosures. 3) Made fields with spaces and tabs be enclosed. 4) Simplify the code & made it a

Re: [PHP-DEV] fputcsv()

2004-04-11 Thread David Sklar
Perfect, thanks. I knew there was a #define lurking around somewhere that was \r\n, \r, or \n, as appropriate, I just didn't know what it was called. David Andi Gutmans wrote: How about using PHP_EOL? At 12:33 PM 4/11/2004 -0400, David Sklar wrote: Attached is a patch that implements fputcsv

Re: [PHP-DEV] email change

2004-04-11 Thread Jeremy Johnstone
http://master.php.net/manage/users.php On Sunday 11 April 2004 11:49 am, Sergey Kartashoff wrote: > Hi! > > I have an PHP CVS account 'gluke' which is binged to email > gluke @ php.net. This email forwards all email at gluke @ > sky.net.ua. Please tell me how can i change a forward destinati

Re: [PHP-DEV] fputcsv()

2004-04-11 Thread Andi Gutmans
How about using PHP_EOL? At 12:33 PM 4/11/2004 -0400, David Sklar wrote: Attached is a patch that implements fputcsv() as a complement to fgetcsv(). There are two things that still need improvement: - It adds "\n" as a newline onto the end of each line. I think it would be better to add a platf

[PHP-DEV] email change

2004-04-11 Thread Sergey Kartashoff
Hi! I have an PHP CVS account 'gluke' which is binged to email gluke @ php.net. This email forwards all email at gluke @ sky.net.ua. Please tell me how can i change a forward destination ? I mean change gluke @ sky.net.ua to something else ? -- Regards, Sergey aka gluke. -- PHP Interna

[PHP-DEV] fputcsv()

2004-04-11 Thread David Sklar
Attached is a patch that implements fputcsv() as a complement to fgetcsv(). There are two things that still need improvement: - It adds "\n" as a newline onto the end of each line. I think it would be better to add a platform-specific line ending. - It is not mbstring-aware. Any suggestions fo

Re: [PHP-DEV] Function request

2004-04-11 Thread Derick Rethans
On Sun, 11 Apr 2004, Jakes wrote: > Please can you send me in the right direction, for requesting a function to > be added to the php core. This doesn't belong in PHP as it's an application thing. Also, there is no way this can be added to PHP with the current framework, hence Wez pointing you to

Re: [PHP-DEV] Function request

2004-04-11 Thread Jakes
Hi Wez Please can you send me in the right direction, for requesting a function to be added to the php core. J "Wez Furlong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The internals@ list is not the appropriate forum for this discussion. > Try [EMAIL PROTECTED] instead. > > >

Re: [PHP-DEV] Function request

2004-04-11 Thread Wez Furlong
The internals@ list is not the appropriate forum for this discussion. Try [EMAIL PROTECTED] instead. - Original Message - From: "Jakes" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, April 11, 2004 1:10 PM Subject: Re: [PHP-DEV] Function request > Please can you explain to m

Re: [PHP-DEV] Function request

2004-04-11 Thread Jakes
Please can you explain to me how this is done, without having to create some sort of data storage facility. Regards Jakes "Sean Coates" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > This can be done in user space, using custom session handlers. > [plug]http://phparch.com/sample.