PHP dtrace extension for Cool Stack 1.2
By shanti on Nov 05, 2007
We have fixed the issue with the PHP dtrace extension not working in Cool Stack 1.2. As I mentioned in my announcement post, we had already identified the issue but didn't have time to fix it before the release. The issue was that /usr/ccs/bin/ld was being used to do the linking but this doesn't work for dtrace as some initialization code needs to be called from the .init section and this is not setup correctly if we don't use 'cc' to do the linking (rather than 'ld').
So a simple addition to the configure line:
did the trick.
- Copy it to the php5 extensions directory of /opt/coolstack/php5/lib/php/extensions/no-debug-non-zts-20060613 and re-name it as dtrace.so.
- Add extension="dtrace.so" to your /opt/coolstack/php5/lib/php.ini.
See my earlier post, for an example of how to use dtrace to trace through the AMP stack.