Development

#2231 (Missing tokenizer support may cause high memory requirement)

You must first sign up to be able to contribute.

Ticket #2231 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

Missing tokenizer support may cause high memory requirement

Reported by: halfer Assigned to: fabien
Priority: minor Milestone: 1.0.12
Component: controller Version: 1.0.7
Keywords: tokenizer memory memory_limit Cc:
Qualification: Accepted

Description

A number of users have reported that on some Linux PHP builds, if tokenizer support is not included, symfony requires much more memory than usual to operate (32M). At a guess, this is due to a complex regexp scanning through large Propel files to remove comments. I suggest a warning is output in the web debug toolbar (web mode) and in the command line if the tokenizer is unavailable.

http://www.symfony-project.com/forum/index.php/t/4167/

(Feel free to modify the target version for this ticket)

Change History

09/12/07 10:06:20 changed by halfer

Qualification: of course if only a warning is output, the user may never see it if the application white-screens! An error output to the log file may be more appropriate, or perhaps it should refuse to strip comments without the tokenizer?

09/13/07 08:51:40 changed by fabien

  • qualification changed from Unreviewed to Accepted.

see r5061 and r5062 for a possible fix

03/19/08 12:33:33 changed by fabien

  • status changed from new to closed.
  • resolution set to fixed.

(In [7965]) removed comment stripping if you don't have the tokenizer enabled + added a new entry in the web debug toolbar for the tokenizer (closes #3134, #2231)

03/19/08 12:34:34 changed by fabien

  • milestone set to 1.0.12.

03/19/08 12:35:04 changed by fabien

(In [7966]) removed comment stripping if you don't have the tokenizer enabled (closes #2231)

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.