[php-src] PR #15504: opcache: Set up symbols when disassembly is enabled at runtime

From: Date: Tue, 20 Aug 2024 06:02:58 +0000
Subject: [php-src] PR #15504: opcache: Set up symbols when disassembly is enabled at runtime
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-28077@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/15504 Author: tstarling opcache.jit_debug can be modified at runtime, which is a handy way to dump specific functions. However, the initialisation of symbols was missed when disassembly was not enabled at startup. So, load symbols when ini_set() is called, if they weren't loaded already. Also free the symbol table on shutdown even if disassembly is disabled on shutdown. Calling zend_jit_setup_disasm() when zend_jit_setup() wasn't previously called caused dereference of the null pointer zend_jit_halt_op, so I guarded against that in two ways.

« previous php.git-pulls (#28077) next »