#5876: Apache process termination when var not set in view used for input
prepopulation
-------------------------+--------------------------------------------------
    Reporter:  adcworks  |          Type:  Bug     
      Status:  new       |      Priority:  Critical
   Milestone:  1.2.x.x   |     Component:  General 
     Version:  RC3       |      Severity:  Critical
    Keywords:            |   Php_version:  PHP 5   
Cake_version:            |  
-------------------------+--------------------------------------------------
 Create a controller BugController with an action function called test.
 Leave empty. Create /views/bug/test.ctp with content

 <?php
 echo $form->create("Bug");
 echo $form->input('whatever', array('value' => $varDoesNotExist));
 echo $form->end();
 ?>

 call /bugs/test

 Apache terminates. Completely.

 If however you suppress errors on the var, e.g.

 @$varDoesNotExist

 this will work and not cause Apache to terminate.

 Termination of the web server is quite serious regardless of whose fault
 the nonexistant var is. At worst I would expect an exception to be thrown
 with a cause. Not software infrastructure failure.

 This was tested on XAMPP Windows.

-- 
Ticket URL: <https://trac.cakephp.org/ticket/5876>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tickets cakephp" 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/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

  • [CakePHP : The Rapid Dev... CakePHP : The Rapid Development Framework for PHP

Reply via email to