Skip to content

Commit 5e5d252

Browse files
committed
Add php-runtime-extension-loaded-p
1 parent 3393804 commit 5e5d252

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

php-runtime.el

+5
Original file line numberDiff line numberDiff line change
@@ -222,5 +222,10 @@ Pass INPUT-BUFFER to PHP executable as STDIN."
222222
(when php-runtime--kill-temp-output-buffer
223223
(kill-buffer (php-runtime-stdout-buffer executor))))))
224224

225+
;;;###autoload
226+
(defun php-runtime-extension-loaded-p (extension)
227+
"Return T if EXTENSION is loaded."
228+
(string= "1" (php-runtime-expr (format "extension_loaded(%s)" (php-runtime-quote-string extension)))))
229+
225230
(provide 'php-runtime)
226231
;;; php-runtime.el ends here

0 commit comments

Comments
 (0)