0

I am using Centos 7 (PHP - 5.6.36 Thread safety - disabled) i have created PHP extension in c++ to store the function call stack traces.

Storing the information starts from PHP_RINIT_FUNCTION and end in PHP_RSHUTDOWN_FUNCTION.

Here, I have used persistent memory allocation to store the values,finally the result will be stored in the fomrat of zval* can able parse it. I was push it into the vector(m_resultVect) of every request shutdown method called(PHP_RSHUTDOWN_FUNCTION). In another thread i am swapping the vector (m_resultVect) to some other and then tried to parse the zval* to get call stack traces info. But I can't access the zval*.

why I can't able to access in another thread? is it gets cleared automatically by zendMM?

.

sidyll
  • 57,726
  • 14
  • 108
  • 151
Durai
  • 87
  • 12
  • Maybe it would help to show the code you are talking about. See [MCVE](https://stackoverflow.com/help/mcve). What kind of vectors are you talking about? Do you mean `std::vector`? – Gerhardh Jul 13 '18 at 13:34
  • @Gerhardh yuh..it's std::vector – Durai Jul 16 '18 at 04:58
  • Then this is not related to C at all. Please take a few seconds to think twice which tags to add. The wrong tag was already removed. – Gerhardh Jul 16 '18 at 09:25

0 Answers0