Skip to content

Instantly share code, notes, and snippets.

@antonbabenko
Created October 25, 2011 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antonbabenko/1313778 to your computer and use it in GitHub Desktop.
Save antonbabenko/1313778 to your computer and use it in GitHub Desktop.
Ticket #2388 (Symfony v2.0.4)
Instructions to reproduce the issue:
1) Download and unzip Symfony standard edition from here - http://symfony.com/download?v=Symfony_Standard_Vendors_2.0.4.tgz . It seems that this bug is not existing when do "git clone" and "bin/vendors install". Also this bug is not visible when using master or 2.0 branch.
2) Apply changes from files specified in this gist
3) Load http://localhost/Symfony/web/app_dev.php and see the error:
Fatal error: Allowed memory size of 1887436800 bytes exhausted (tried to allocate 523800 bytes) in /Users/Bob/Sites/Symfony/vendor/symfony/src/Symfony/Component/Translation/MessageCatalogue.php on line 127
Notes:
It happens only when translation key is not found in messages file, and cache is empty, and on first request (when reload the page session is restored and bug is not visible).
imports:
- { resource: parameters.ini }
- { resource: security.yml }
framework:
#esi: ~
translator: { fallback: %locale% }
secret: %secret%
charset: UTF-8
router: { resource: "%kernel.root_dir%/config/routing.yml" }
form: true
csrf_protection: true
validation: { enable_annotations: true }
templating: { engines: ['twig'] } #assets_version: SomeVersionScheme
session:
default_locale: %locale%
auto_start: true
# Twig Configuration
twig:
debug: %kernel.debug%
strict_variables: %kernel.debug%
# Assetic Configuration
assetic:
debug: %kernel.debug%
use_controller: false
filters:
cssrewrite: ~
# closure:
# jar: %kernel.root_dir%/java/compiler.jar
# yui_css:
# jar: %kernel.root_dir%/java/yuicompressor-2.4.2.jar
# Doctrine Configuration
doctrine:
dbal:
driver: %database_driver%
host: %database_host%
port: %database_port%
dbname: %database_name%
user: %database_user%
password: %database_password%
charset: UTF8
orm:
auto_generate_proxy_classes: %kernel.debug%
auto_mapping: true
# Swiftmailer Configuration
swiftmailer:
transport: %mailer_transport%
host: %mailer_host%
username: %mailer_user%
password: %mailer_password%
jms_security_extra:
secure_controllers: true
secure_all_services: false
{{ 'not_existing_key'|trans }}
ok: "OK"
something_else:
[parameters]
database_driver = pdo_mysql
database_host = localhost
database_port =
database_name = symfony
database_user = root
database_password =
mailer_transport = smtp
mailer_host = localhost
mailer_user =
mailer_password =
locale = nb_NO
secret = ThisTokenIsNotSoSecretChangeIt
@alterphp
Copy link

i'm exactly on the same case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment