pmmp / ext-pmmpthread

Fork of https://github.com/krakjoe/pthreads with a revamped API and PHP 8.1+ support
Other
81 stars 17 forks source link

ThreadSafeArray segfault #125

Closed JaxkDev closed 1 year ago

JaxkDev commented 1 year ago

Environment

Reproducing Code

<?php

use pmmp\thread\ThreadSafeArray;

$config = new ThreadSafeArray();
$config[0][0] = 0;

Expected Output

I actually don't know.

Actual Output

Assertion failed: ((((zend_executor_globals *) (((char*) _tsrm_ls_cache)+(executor_globals_offset)))->exception) && "read_dimension() returned NULL without exception"), function zend_fetch_dimension_address, file zend_execute.c, line 2595.
zsh: abort      /Users/jackhonour/Documents/PocketMine/PMMP5/bin/php7/bin/php 
JaxkDev commented 1 year ago

Not a urgent issue, only came across this when one of my array's changed structure and forgot to update a line that referenced a now non existent array