There's probably not a whole lot I can add to the discussion.
1. GT.M does not implement structured system variable names (SSVNs).
2. In a
GT.CM client server configuration, LKE must be run on the server computing node to see locks. The
GT.CM server process owns M locks on behalf of clients. On client processes, ZSHOW "L" will provide the client process with M locks it thinks it owns, but in a
GT.CM client server environment where the client is a PHP program that communicates with the server using GNP, there is no way for PHP code to know what locks it has unless it keeps track of it.
For testing, perhaps you can have a client process get a lock, and then confirm that an attempt by a different client process to get the same lock fails.
Regards
-- Bhaskar