Bug #37965 [Asn->Opn]: Multi-dimensional array between PHP and COM

From: Date: Fri, 13 Dec 2013 07:47:31 +0000
Subject: Bug #37965 [Asn->Opn]: Multi-dimensional array between PHP and COM
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183298@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=37965&edit=1 ID: 37965 Updated by: wez@php.net Reported by: mcboog at zonnet dot nl Summary: Multi-dimensional array between PHP and COM -Status: Assigned +Status: Open Type: Bug Package: COM related Operating System: Windows XP Professional PHP Version: 5.1.4 -Assigned To: wez +Assigned To: Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2006-07-06 12:49:09] tony2001@php.net Assigned to the maintainer. ------------------------------------------------------------------------ [2006-07-06 12:40:00] mcboog at zonnet dot nl Sorry man, never done this before... Now I got the following backtrace: convert_to_long_base(_zval_struct * 0x100ea6d5, int 0) line 306 + 9 bytes saproxy_read_dimension(_zval_struct * 0x10076460, _zval_struct * 0x100369b1, int 17481848, void * * * 0x010ac064) line 176 ZEND_FETCH_DIM_R_SPEC_CV_CONST_HANDLER(_zend_execute_data * 0x10019515, void * * * 0x010ac530) line 20802 execute(_zend_op_array * 0x7c9106eb, void * * * 0x1000948d) line 92 + 12 bytes NTDLL! 7c9106eb() NTDLL! 7c9106eb() ------------------------------------------------------------------------ [2006-07-06 12:10:36] mcboog at zonnet dot nl Following the instructions for Generating a backtrace on Win32 gave me this backtrace: PHP5TS! 100af45c() ------------------------------------------------------------------------ [2006-07-05 21:20:28] tony2001@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. ------------------------------------------------------------------------ [2006-07-05 21:13:04] mcboog at zonnet dot nl Forget everything above. Description: When accessing a multi-dim array from COM-object Apache2 crashes with error [Wed Jul 05 22:50:21 2006] [notice] Parent: child process exited with status 3221225477 -- Restarting. This error-code seems to be related with array access problems. When I use the COM-object with VBScript I can access the value of the multi-dim array with: multiArray(1,1), which should have an equivalent in PHP by $multiArray[1][1]. Reproduce code: <?php $obj = new COM('com_object'); $obj->function_call($multiArray); print $multiArray[1][1]; ?> Expected result: output value. Actual result: Apache crashes. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=37965 -- Edit this bug report at https://bugs.php.net/bug.php?id=37965&edit=1

« previous php.bugs (#183298) next »