php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78650 new COM Crash
Submitted: 2019-10-08 18:56 UTC Modified: 2019-10-09 12:18 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: bugzilla77 at gmail dot com Assigned: cmb (profile)
Status: Closed Package: COM related
PHP Version: 7.4.0RC3 OS: Windows 10 Pro 1903
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
19 - 1 = ?
Subscribe to this entry?

 
 [2019-10-08 18:56 UTC] bugzilla77 at gmail dot com
Description:
------------
PHP 7.4.0RC3 crashes
but
PHP 7.3.10 do not crash

Test script:
---------------
<?php
 $o=new COM('com.sun.star.ServiceManager');

 $pv=$o->Bridge_GetStruct('com.sun.star.beans.PropertyValue');
 $pv->Name='Hidden';$pv->Value=false;

 $d=$o->CreateInstance('com.sun.star.frame.Desktop')->LoadComponentFromURL('private:factory/swriter','_blank',0,[$pv]);
 $d->DocumentProperties->Title='Hello';
 $d->Close(true);

 print('OK');
?>

Expected result:
----------------
OK

Actual result:
--------------
crash

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-10-08 20:51 UTC] requinix@php.net
-Status: Open +Status: Feedback
 [2019-10-08 20:51 UTC] requinix@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.


 [2019-10-09 08:06 UTC] cmb@php.net
-Status: Feedback +Status: Verified -Assigned To: +Assigned To: cmb
 [2019-10-09 08:06 UTC] cmb@php.net
Backtrace:

0000000000000000() (Unbekannte Quelle:0)
php7_debug.dll!zend_fetch_property_address(_zval_struct * result, _zval_struct * container, unsigned int container_op_type, _zval_struct * prop_ptr, unsigned int prop_op_type, void * * cache_slot, int type, unsigned int flags, unsigned char init_undef, const _zend_op * opline, _zend_execute_data * execute_data) Line 2816 (c:\php-sdk\phpdev\vc15\x64\php-src-7.4\Zend\zend_execute.c:2816)
php7_debug.dll!ZEND_FETCH_OBJ_W_SPEC_CV_CONST_HANDLER(_zend_execute_data * execute_data) Line 39389 (c:\php-sdk\phpdev\vc15\x64\php-src-7.4\Zend\zend_vm_execute.h:39389)
php7_debug.dll!execute_ex(_zend_execute_data * ex) Line 53354 (c:\php-sdk\phpdev\vc15\x64\php-src-7.4\Zend\zend_vm_execute.h:53354)
php7_debug.dll!zend_execute(_zend_op_array * op_array, _zval_struct * return_value) Line 57640 (c:\php-sdk\phpdev\vc15\x64\php-src-7.4\Zend\zend_vm_execute.h:57640)
php7_debug.dll!zend_execute_scripts(int type, _zval_struct * retval, int file_count, ...) Line 1664 (c:\php-sdk\phpdev\vc15\x64\php-src-7.4\Zend\zend.c:1664)
php7_debug.dll!php_execute_script(_zend_file_handle * primary_file) Line 2619 (c:\php-sdk\phpdev\vc15\x64\php-src-7.4\main\main.c:2619)
php.exe!do_cli(int argc, char * * argv) Line 962 (c:\php-sdk\phpdev\vc15\x64\php-src-7.4\sapi\cli\php_cli.c:962)
php.exe!main(int argc, char * * argv) Line 1352 (c:\php-sdk\phpdev\vc15\x64\php-src-7.4\sapi\cli\php_cli.c:1352)
php.exe!invoke_main() Line 79 (d:\agent\_work\2\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:79)
php.exe!__scrt_common_main_seh() Line 288 (d:\agent\_work\2\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288)
php.exe!__scrt_common_main() Line 331 (d:\agent\_work\2\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:331)
php.exe!mainCRTStartup() Line 17 (d:\agent\_work\2\s\src\vctools\crt\vcstartup\src\startup\exe_main.cpp:17)
kernel32.dll!00007ffe11d67bd4() (Unbekannte Quelle:0)
ntdll.dll!00007ffe1388ced1() (Unbekannte Quelle:0)
 [2019-10-09 12:15 UTC] cmb@php.net
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=4625fa181fd5e1c9b3d8ef291c7003bf51a70512
Log: Fix #78650: new COM Crash
 [2019-10-09 12:15 UTC] cmb@php.net
-Status: Verified +Status: Closed
 [2019-10-09 12:17 UTC] cmb@php.net
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=4625fa181fd5e1c9b3d8ef291c7003bf51a70512
Log: Fix #78650: new COM Crash
 [2019-10-09 12:18 UTC] cmb@php.net
-Package: Reproducible crash +Package: COM related
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 08:01:29 2024 UTC