-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
12.09.1 throws warnings when php 5.4.11 is launched #113
Comments
Is midgard2 extension loaded in ini file and only once? I can not reproduce these warnings with 5.4.8. |
Yes, I see it happen on OS X using an Homebrew installation of the components. $ php -i phpinfo() In /usr/local/etc/php/5.4/php.ini Each of the (4) /usr/local/etc/php/5.4/conf.d files contains only 2 lines: $ cat /usr/local/etc/php/5.4/conf.d/ext-intl.ini [intl] $ cat /usr/local/etc/php/5.4/conf.d/ext-midgard2.ini [midgard2] $ cat /usr/local/etc/php/5.4/conf.d/ext-mongo.ini: [mongo] $ cat /usr/local/etc/php/5.4/conf.d/ext-xdebug.ini: [xdebug] When using this configuration what I get is: $ php -v PHP Warning: Function registration failed - duplicate name - MidgardSqlContentManager::get_connection in Unknown on line 0 Warning: Function registration failed - duplicate name - MidgardSqlContentManager::get_connection in Unknown on line 0 Warning: Function registration failed - duplicate name - MidgardSqlContentManager::create_job in Unknown on line 0 Changing /usr/local/etc/php/5.4/conf.d/ext-midgard2.ini to: [midgard2] And warnings are gone: $ php -v PHP 5.4.11 (cli) (built: Feb 28 2013 14:57:11) Hope this helps :-/ |
When using midgard2-php5 12.09.1 with PHP 5.4.11 the following warnings are thrown whenever PHP is started:
PHP Warning: Function registration failed - duplicate name - MidgardSqlContentManager::get_connection in Unknown on line 0
Warning: Function registration failed - duplicate name - MidgardSqlContentManager::get_connection in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - MidgardSqlContentManager::create_job in Unknown on line 0
Warning: Function registration failed - duplicate name - MidgardSqlContentManager::create_job in Unknown on line 0
Downgrading to midgard2-php5 10.05.7 removes the warnings
The text was updated successfully, but these errors were encountered: