Hi to everyone here...
I’ve run into a problem which is quite confusing...
situation is this:
i have i php code, that works perfectly if it is a direct test.php file on server, but if i try it in snippet in modx I get the following resoult:
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: unpack(): Type H: outside of string
Error type/ Nr.: Warning - 2
File: openSRS_base.php
Line: 839
Line 839 source: $temp = unpack('H*temp', $data);
Parser timing
MySQL: 0.0018 s (4 Requests)
PHP: 1.2241 s
Total: 1.2259 s
I checked the problem on php.net and there was a bug reporterd about this exact problem and de-buged in version PHP5.2
The confusion part is followed -> Why does the same code works in pure php file, but not in snippets which are "pure raw PHP"???
I guess that updating of PHP is the solution, but updating is up to my hosting provider which is out of my hands...
So guys...asking you for help... is there some kind of php compiler inside Modx that still has the bug?
System: Linux CentOS & Apache & PHP 4 & Modx 0.96
Any suggestions?
Sumoborac