[PHP] RE: [PHP-DEV] Re: strtok bug

2002-01-13 Thread alain samoun

Manuel:
What is broken with strtok() since php4.06? So far my code that use it seems
to work ok with PHP4.10...??? I'd Like to know ;)
A+
Alain


-Original Message-
From: Manuel Lemos [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 13, 2002 2:44 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; Robert Mena
Subject: [PHP-DEV] Re: strtok bug


Hello,

Robert Mena wrote:

 Hi, does anybody know when the strtok bug introduced

After 4.0.6 .

 in 4.1.1 will be fixed ?
 Will we have a 4.1.2 or should I try to grab a cvs
 tree (assuming that it is already solved) ?

You may want to ask that in php-dev mailing list because last time that
I reported it I was told that it would not be fixed because it was just
me complaining.

Actually, I don't think that who has broken strtok noticed that he
broken the behaviour that was always like that since the function was
introduced in PHP 3, so the change was never documented. This suggests
that like you and me there are certainly much more people affected that
have not realized that strtok was broken and that it will affect their
code.

Anyway, since PHP developers do not seem to be willing to fix what they
broke, regardless if they ever reconsider, you may want to try this
alternative function that behaves like the original and only relies on
functions that were not (yet) broken, so you don't stop yourself from
upgrading PHP.

http://phpclasses.upperdesign.com/browse.html/package/404

I also had several popular classes of mine broken because of the strtok
bug. Since they are very popular the changes were announce in Freshmeat
which according to the PHP Classes site they were downloaded by more
than 30.000 users, despite on of the justifications for not fixing the
bug was that it was not affecting significant code bases, which is not
true as you may notice.

Email validation class
http://freshmeat.net/releases/66935/

HTTP client class
http://freshmeat.net/releases/66937/

POP3 client class
http://freshmeat.net/releases/66938/

MIME message composing and sending class
http://freshmeat.net/releases/66936/

SMTP client class
http://freshmeat.net/releases/66940/

Regards,
Manuel Lemos

--
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: [PHP-WIN] Re: [PHP] Revised [PHP] COM and PHP

2001-02-28 Thread Alain Samoun

Among other articles, look at the COM functions in PHP4 article:
http://www.phpbuilder.com/columns/

Alain

On Wed, Feb 28, 2001 at 11:35:15AM +0100, Daniel Tryba wrote:
 On Mon, Feb 05, 2001 at 03:05:24PM -0500, Conover, Ryan wrote:
  I have been trying the following example from the PHP developer's cookbook
  and it keeps giving me the following error.
  
  Parse error: parse error in c:\Inetpub\wwwroot/temp.php on line 5
  ? //line 1
  $excel_handle = new COM("excel.application"); //line2
  $excel_handle-Visible = false; //line3
  $worksheet = $excel_handle-workbooks-add(); //line4
  $worksheet-Cells(1,1)-value = "Name"; //line5
  $worksheet-SaveAs("temp.xls"); //line6
  $excel_handle-quit(); //line7
  //line8
  ? //line9
  
  Anyone that has Com and PHP experience help please
 
 I didn't test it in PHP (only in wscript.exe), but it seems the example 
 is wrong. It should be (line 4 - 4a, 4b):
 
 excel_handle = new COM("Excel.Application"); //line2
 excel_handle.Visible = true; //line3
 workbook = excel_handle.Workbooks.Add(); //4a
 worksheet=workbook.WorkSheets.Add(); //4b
 worksheet.Cells(1,1).Value = "Name"; //line5
 worksheet.SaveAs("temp.xls"); //line6
 excel_handle.quit(); //line7
 
 This seems to work.
 
 
 -- 
 PHP Windows Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: [PHP-WIN] Attaching to a PostgreSQL database on a Linux box from a VB app on NT4

2001-01-10 Thread alain samoun

See WDDX
Alain

"Brinkman, Theodore" wrote:
 
 I think the subject pretty much says it all.  I need help setting up things
 on both ends to let a VB app (on Windows, obviously) connect to a PostgreSQL
 database on a Linux box.
 
 Any help appreciated.
 
 - Theo
 
 Sorry about cross-posting to the two lists, but I figured it was pertinent
 to both.
 
 --
 PHP Windows Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]