php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14334 Bug in COM class
Submitted: 2001-12-04 02:55 UTC Modified: 2002-04-27 05:50 UTC
Votes:4
Avg. Score:3.5 ± 1.5
Reproduced:3 of 4 (75.0%)
Same Version:0 (0.0%)
Same OS:1 (33.3%)
From: wshs_chat at yahoo dot com Assigned:
Status: Closed Package: COM related
PHP Version: 4.0.6 OS: Windows 2000 Professional
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: wshs_chat at yahoo dot com
New email:
PHP Version: OS:

 

 [2001-12-04 02:55 UTC] wshs_chat at yahoo dot com
Warning: Error in php_OLECHAR_to_char() in g:\apache\test\index.php on line 65.

This error is only returned when the script is run from the httpd. IIS, Apache, and Xitami, all return this error.  When I use the script via pasting it to stdin on php.exe, it runs perfectly.  The script returns no errors from the stdin.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-06 12:13 UTC] phanto@php.net
please provide the shortest possible code that produces this error.
 [2001-12-06 15:07 UTC] wshs_chat at yahoo dot com
If you mean php code, here goes:
-
$instance = new COM("WinampCOM.Application");
$title = $instance->CurrentSongTitle;
-
The $title line will produce the error if run via the httpd, but not if pasted in the stdin of php.exe.  The WinampCOM.Application com requires a winamp module, which can be found at http://www.adcock8.freeserve.co.uk/gen_com.zip
If any more info is needed, please don't hesitate to ask.
 [2001-12-06 22:09 UTC] wshs_chat at yahoo dot com
If you mean php code, here goes:
-
$instance = new COM("WinampCOM.Application");
$title = $instance->CurrentSongTitle;
-
The $title line will produce the error if run via the httpd, but not if pasted in the stdin of php.exe.  The WinampCOM.Application com requires a winamp module, which can be found at http://www.adcock8.freeserve.co.uk/gen_com.zip
If any more info is needed, please don't hesitate to ask.
 [2002-01-21 12:47 UTC] wloske at yahoo dot de
I am having the same problem which is a bit
stranger though.

One time my call is correct while done in another
place produces php_OLECHAR_to_char error message.

Working:
$pdflib = new COM("PDFlib_com.PDF");
print $pdflib->get_parameter("version",0);

Prints version string as expected.

Not working:
$pdflib = new COM("PDFlib_com.PDF");
print $pdflib->set_parameter("fontwarning",1);
print $pdflib->get_parameter("version",0);

Produces error message for the get_parameter line
and "0" (true !!! in php for PDFlib, -1 is false)
for the fontwarning line.

Also, to make it even stranger, at least to me:
When I switch the line in the non-working example,
I both get the version string and "0" for the 
fontwarning

Is there something wrong about the way I connect
to PDFLib ?

HTH

W.
 [2002-04-02 06:47 UTC] sp at m-me dot dk
I get the same error when I try to run the following code:
-
$af = new COM("AtheneFile.File");
$af->SetDatabaseDetails("server", "database", "user", "pass");
$sti = $af->GetFile(295721, "c:\\test.doc");
-
It is the last line that fails.

This is my system data:
PHP Version: 4.0.6
System: Windows NT 5.0 build 2195 
Build Date: Jun 22 2001 
Server API: CGI 
Virtual Directory Support: enabled 
Configuration File (php.ini) Path: C:\WINNT\php.ini 
ZEND_DEBUG: disabled 
Thread Safety: enabled
 [2002-04-27 05:50 UTC] phanto@php.net
should be fixed in cvs now
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 00:01:30 2024 UTC