ID: 14334 Comment by: [EMAIL PROTECTED] Old Reported By: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: COM related Operating System: Windows 2000 Professional PHP Version: 4.0.6 New Comment:
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. Previous Comments: ------------------------------------------------------------------------ [2001-12-06 22:09:09] [EMAIL PROTECTED] 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 15:07:09] [EMAIL PROTECTED] 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 12:13:41] [EMAIL PROTECTED] please provide the shortest possible code that produces this error. ------------------------------------------------------------------------ [2001-12-04 02:55:21] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14334&edit=1 -- 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]