Re: [CakePHP : The Rapid Development Framework for PHP] #5792: Inflector optimization by returning replaced values instead of assining before returning
#5792: Inflector optimization by returning replaced values instead of assining before returning --+- Reporter: kiger | Owner: Type: Optimization |Status: new Priority: Low| Milestone: 1.2.x.x Component: Core Libs | Version: RC3 Severity: Normal |Resolution: Keywords: inflector underscore optimize | Php_version: n/a Cake_version: 7883 | --+- Comment (by kiger): Sorry about the ticket classification; that totally slipped my mind. Someone should really throw in a default empty value for the classification which requires us to manually pick one instead of defaulting to bug. -- Ticket URL: https://trac.cakephp.org/ticket/5792#comment:3 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 tickets-cakephp@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #5793: PaginatorHelper escaping $disabledTitle
#5793: PaginatorHelper escaping $disabledTitle ---+ Reporter: [EMAIL PROTECTED] | Owner: mariano.iglesias Type: Bug |Status: assigned Priority: Medium | Milestone: 1.2.x.x Component: Helpers | Version: RC2 Severity: Normal |Resolution: Keywords: escape paginator| Php_version: n/a Cake_version: | ---+ Comment (by mariano.iglesias): The second parameter to prev() provides options to the link title, while the fourth parameter provides options for the disabled title, so you'll have to change your code to: {{{ $paginator-prev('bprev/b', array('escape'=false), 'bprev/b', array('escape' = false)); }}} Please refer to the tests I'm attaching when closing the ticket. -- Ticket URL: https://trac.cakephp.org/ticket/5793#comment:2 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 tickets-cakephp@googlegroups.com 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 Development Framework for PHP] #5797: validation consume memory
#5797: validation consume memory ---+ Reporter: francky06l | Type: Bug Status: new | Priority: Medium Milestone: 1.2.x.x | Component: Validation Version: RC3 | Severity: Normal Keywords: | Php_version: n/a Cake_version: 1.2.0.7692 RC3 | ---+ I am using validation in a shell with a large number of records update (up to 3-4 millions) and the validations are exhausting all the memory. The problem comes from the _check function in validation.php, this function set $_this-error[] to true/false but actually $_this-error is never reset, so the validation object keeps growing. $_this-error is actually not used (as far as I know), the same problem can occur with the the class variable $errors (never reset). I can't make a test case (since you can't estimate any memory usage), basically to reproduce, run $model-validates in a loop and watch the memory. If you reset $_this-error = array() of the Validation class prior to call validates everything is fine. -- Ticket URL: https://trac.cakephp.org/ticket/5797 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 tickets-cakephp@googlegroups.com 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 Development Framework for PHP] #5798: [PATCH] _deleteLinks() ignores HABTM conditions
#5798: [PATCH] _deleteLinks() ignores HABTM conditions --+- Reporter: ksch | Type: Bug Status: new| Priority: Medium Milestone: 1.2.x.x| Component: Model Version: RC3| Severity: Major Keywords: model habtm delete conditions | Php_version: PHP 5 Cake_version: 1.2.0.7692 RC3 | --+- If you define a HABTM with 'conditions', the _deleteLinks() method ignores them in finding deletable records. That can lead to SEVERE DATA LOSS, as all records are deleted instead! This patch merges the Model's defined HABTM conditions into the _deleteLinks() query. {{{ Index: libs/model/model.php === --- libs/model/model.php(revision 7884) +++ libs/model/model.php(working copy) @@ -1698,8 +1698,10 @@ $db = ConnectionManager::getDataSource($this-useDbConfig); foreach ($this-hasAndBelongsToMany as $assoc = $data) { + $conditions = array_merge((array) $data['conditions'], array($data['foreignKey'] = $id)); + $records = $this-{$data['with']}-find('all', array( - 'conditions' = array($data['foreignKey'] = $id), + 'conditions' = $conditions, 'fields' = $this-{$data['with']}-primaryKey, 'recursive' = -1 )); -- Ticket URL: https://trac.cakephp.org/ticket/5798 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 tickets-cakephp@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: [CakePHP : The Rapid Development Framework for PHP] #5450: Session.checkAgent = false breaks Session.timeout
#5450: Session.checkAgent = false breaks Session.timeout -+-- Reporter: c_t | Owner: mark_story Type: Bug |Status: reopened Priority: Medium| Milestone: 1.2.x.x Component: Session | Version: RC2 Severity: Critical |Resolution: Keywords:| Php_version: n/a Cake_version:| -+-- Changes (by Eor): * status: closed = reopened * resolution: fixed = Comment: This bug appears to be duplicated in CakeSession-_checkValid as well. {{{ if (Configure::read('Session.checkAgent') === false || $this-_userAgent == $this-read(Config.userAgent) $this-time = $this-read(Config.time)) { }}} -- Ticket URL: https://trac.cakephp.org/ticket/5450#comment:4 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 tickets-cakephp@googlegroups.com 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 -~--~~~~--~~--~--~---