Re: strings chopped in half using COM objects
| From: | Pete Dishman | Date: | Thu, 08 Nov 2001 15:24:25 +0000 |
| Subject: | Re: strings chopped in half using COM objects | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-10297@lists.php.net to get a copy of this message | ||
Hi,
I think this is because the COM support in the current 4.08 dev version is
only half complete. I believe that it's in the middle of having full
unicode support being added to it so there are still some problems with
string lengths.
It's probably going to be this way for a while yet. Use one of the 4.07
release candidates, I haven't found any problems with those yet.
Pete Dishman
"Giuseppe D'Ambrosio" <boltthrower@libero.it> wrote in message
news:20011108103527.19358.cpmta@c012.sfo.cp.net...
> hello,
>
> I got a strange behaviour with this simple script:
>
> $word=new COM("word.application");
> $word->Documents->Add();
>
> $word->Selection->Typetext("this is a test this is a test");
> $word->Documents[1]->SaveAs('c:\temp\test_test_test_test_te');
> $word->Quit();
>
> the result is: a file named test_te.doc, containg "this is a test" (/one/
time!)
>
> both strings (filename and text) come out half the length of the
original..
>
> anyone had experienced this?
> is it a bug?
>
> I'm running php 4.0.8-dev, apache 1.3.12, win/office 2000
>
> thanks,
> --giuse
>
>
>
> PS:
> I posted this also on
http://www.phpbuilder.com/annotate/message.php3?id=1008094
>
>
> ________________end_of_mail_________________________
>
> Find the best deals on the web at AltaVista Shopping!
> http://www.shopping.altavista.com