Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
拡張機能で、zval 文字列を自分で割り当てたときに php エンジンがクラッシュしないようにするにはどうすればよいですか?
.. // will do implicitly ZVAL_STRING("tmp", "/tmp", 0); // SET_VAR_STRING("tmp", "/tmp"); .. php_embed_shutdown(TSRMLS_C); // GPF !!
何か案は?
次のように変更します。
SET_VAR_STRING("tmp", estrdup("/tmp"));