1
Weird title, I know!

Let's assume I have a block of a module with the following define:
define('_BLOCKDEFINE','blockdefine');
Further I have a file of the same module with the following define:
define('_FILEDEFINE','filedefine');
Both, block and file are rendered on the same page.
Now I add another line to the file:
print_r(get_defined_constants());
This function should deliver all defined constants. Here I get _BLOCKDEFINE AND _FILEDEFINE.
Seems to be expected behaviour?
Now I remove
print_r(get_defined_constants());
and put it into the block.
What do you expect now? WRONG! Now I get only _BLOCKDEFINE
??? Any reason for this ???
I always felt that the blocks were a contaminant inside XOOPS and never well integrated. There has always some extra code written to "mimic" functions of normal module files.
It's no deal for me checking now for defines in the "files", but it is strange.
Just curious and hoping for an answer or a solution.

Used version: 2.3.3 and the reason for my question is that I want to put a trigger in a simple manner.