script runs until $this is encountered then text printed

I have been running this code for years on an apache webserver via a host provider. Im setting up to run the same on a home server using slacko-puppy 5-4- Hiawatha php5.4 mysql… php
my sql queries work fine on the server and display until the keyword $this is encountered in a class THEN all the rest of the code is printed to the browser (without whitespace)
(The class is in an include file ) if i put phpinfo () after the include I get text from $this to the end of the include file then phpinfo displays OK
The only errors in the log seem unrelated:
PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/
PHP Startup: Unable to load dynamic library ‘/usr/lib/php/extensions/’
PHP info displays OK
I had the same result using php 5.2.9 so am now trying 5.4.7
Im really not sure which tree to bark up as Im standing in a forest of new stuff…
Im hoping its a simple and obvious but im a bit stuck…
Thanks for looking at this

another symptom: (from terrys alterego …
This problem only happens when the classes are in an include file using require(“thefile”);
when the required files are pasted in to the document it is all OK.
Also it will work with a small required file
when all the required files are pasted in the file size is 195k
there are include files within include files…

Sponsor our Newsletter | Privacy Policy | Terms of Service