[PHPTAL] HELP - Page Generation with phptal.
Laurent Bedubourg
lbedubourg at motion-twin.com
Mon Aug 14 10:12:45 CEST 2006
Rony Cohen wrote:
> Hello, I've got a problem.
>
> I see that phptal generates very big files:
>
The size of generated files depends of the size of your templates.
> Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to
> allocate 233472 bytes)
There is a problem there, PHPTAL should not generate a 16MB file unless
your template is as big.
Please send me your template file so i can check that PHPTAL is not
involved in this bug.
>
> I opened the /tmp/****.php file and why is this file so big?
>
Chances are that your PHP configuration has a problem. Which PHP version
are you using ? which PHPTAL version ?
It looks like PHP itself is broken these times (well, it's not like it
has ever been really stable :).
Regards
Laurent
NOTE:
There is a big problem related to zend.ze1_compatibility_mode option,
which force PHP5 to act as PHP4 and break the behaviour of some OO
libraries like PHPTAL.
See below :
http://www.php.net/~derick/meeting-notes.html
2.5 zend.ze1_compatibility mode
Issue: zend.ze1_compatibility_mode tries to keep the old PHP 4 behaviour
where objects will be copied on assignment unless they are assigned by
reference (and the same for passing to a function as that is assigning
too). It also affects casting objects to an integer.
Discussion: This functionality does not work 100% and its functionality
was introduced to migrate PHP 4 users to PHP 5 in an easier way. As this
is not an issue anyway, we intend to remove this setting.
Conclusions:
1. We remove the zend.ze1_compatibility_mode feature from PHP.
2. We throw an E_CORE_ERROR when starting PHP and when we detect the
zend.ze1_compatibility_mode setting.
More information about the PHPTAL
mailing list