After searching into the trac, I realized that this is linked to the
zend_optimizer that was loaded. Commenting this line into the [zend]
section of php.ini corrects the problem. Sorry for the alarming post,
but I have installed XAMP 3 days ago.
Thanks
On Jun 27, 1:51 pm, francky06l <[EMAIL PROTECTED]> wrote:
> hello,
>
> I am dealing with l10n and everything seems to work ok. However for
> some calls I have Apache that crashes and I found out why.
> First I am using Apache 2.2.4 and php 5.2.2 with XAMP 1.6.2 on
> windows.
>
> In a form I have made some test, here a shorten code:
>
> <?php echo $form->create(array('action' => 'login'));?>
> <?php
> $l = array('class' => 'required', 'label' => __('user',
> true)); // OK
> pr($l);
> ?>
>
> <?php echo $form->input('firstname', $l);?> // OK
> <?php echo $form->input('username', array('class' =>
> 'required', 'label' => __('user', true)));?> // CRASH
>
> When I call the __() within the $form->input, Apache crashes.
> After digging/debugging a bit, I found that
>
> function __($singular, $return = false) {
> if (!class_exists('I18n')) {
> uses('i18n');
> }
> $calledFrom = debug_backtrace(); // <---- Apache crashes
> here
>
> It seems that the call to debug_backtrace here generates the crash. I
> am using the cake1.2 from the SVN branch, but the trunc gives the same
> result.
> I also tried to set debug to 0, does not change anything. For now the
> solution seems to generate the translation before the call to $form->input().
>
> I am not an expert in the php settings, maybe there is something to do
> there..
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---