PHP 8.1.9 (tried also 7.4.3) VARIANT property assignment causes error (no error in equivalent VBScript)
Đang mở
@cmb69 đang làm issue này rồi.
Từ ngày 9/8/2022.
Bug
Extension: com_dotnet
Status: Verified
- Ngôn ngữ chính
- C
- Star
- 40.4k
- Fork
- 8.1k
- Merge trung bình
- 2 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 96
Mô tả
Description
Note: MSMQ is a standard COM library present in all Windows versions.
The following code:
<?php
$msg = new COM("MSMQ.MSMQMessage", null, CP_UTF8);
$msg->Body = 123;
Resulted in this output:
PHP Fatal error: Uncaught com_exception: Source: MSMQMessage
Description: The parameter is incorrect. in C:\Temp\test.php:3
Stack trace:
#0 {main}
thrown in C:\Temp\test.php on line 3
But I expected NO OUTPUT AT ALL.
Equivalent VBScript code, which does not cause any errors:
Set msg = CreateObject("MSMQ.MSMQMessage")
msg.Body = 123
Both files attached: test.zip
PHP Version
php-8.1.9-nts-Win32-vs16-x64
Operating System
Windows 10 x64
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Đánh giá
Issue này chưa được đánh giá.