Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Zephir bug in incrementing array element


Seems found a bug in incrementing an array element in Zephir. Possible same presents also for the decrement.

array a = [0, 0, 1, 1];

let a[0] += 1; // 1

let a[1] = a[1] + 1; // 1

let a[2] += 1; // 1 <- expected 2

let a[3] = a[3] + 1; // 2


Zephir 0.12.12, PHP 7.2.24-0ubuntu0.18.04.1


Can you please open an issue in Github? We use the forum for questions in Github we can easily track the status.


Thnx! Can you close this and mark this as solved?