Created
October 25, 2011 18:38
-
-
Save antonbabenko/1313778 to your computer and use it in GitHub Desktop.
Ticket #2388 (Symfony v2.0.4)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ 'not_existing_key'|trans }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ok: "OK" | |
something_else: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i'm exactly on the same case