ID: 43035 Comment by: hoffie at gentoo dot org Reported By: chad at herballure dot com Status: Open Bug Type: *General Issues Operating System: Linux PHP Version: 5.2.5RC1 New Comment:
While it might be really useful to test PHP in a lot of different environments, there is at least one case where using a global php.ini does not make any sense: If you have a global PHP installed (no-zts, no-debug) and have any extensions (and load them in the global php.ini file) but you are building php with zts and/or debug, tests will fail because PHP is unable to load the extensions which were built for no-debug-no-zts (obviously). We are using ./run-tests.php -n and are patching any tests which call their own interpreter (if you want the patches, just tell me and I'll send them). However, I don't think this is a good solution... (I already mentioned this issue on IRC and that was the reason for me to create patches for that...) Previous Comments: ------------------------------------------------------------------------ [2007-11-07 13:25:48] chad at herballure dot com ; Differences from php.ini-dist output_buffering = 4096 allow_call_time_pass_reference = Off safe_mode_protected_env_vars = LD_LIBRARY_PATH,LD_DEBUG,LD_PRELOAD expose_php = Off memory_limit = 24M error_reporting = E_ALL display_startup_errors = On log_errors = On ; this is a troublesome one: ignore_repeated_errors = On html_errors = Off register_argc_argv = Off post_max_size = 200M default_charset = "iso-8859-1" include_path = ".:/local/data/php/include:/local/pkgs/php/lib/php" upload_max_filesize = 200M allow_url_fopen = Off mysql.max_persistent = 10 mysql.max_links = 15 ; sessions saved on tmpfs session.save_path = "/local/data/php/session" session.use_only_cookies = 1 session.name = SessionKey session.gc_maxlifetime = 3600 session.bug_compat_42 = 0 session.hash_bits_per_character = 6 ------------------------------------------------------------------------ [2007-10-30 22:14:14] [EMAIL PROTECTED] It's intentional to use system php.ini to find possible issues with different settings being something else than default. To help us fix the tests or some bug in PHP you need to come up with a diff against the stock php.ini-dist / php.ini-recommended (depending what you used as base for your php.ini). ------------------------------------------------------------------------ [2007-10-19 14:04:59] [EMAIL PROTECTED] The tests are still broken, but not because of the reason that you mention. All tests should run under *any* environment - although some of the settings we force to avoid some of the things you mention. ------------------------------------------------------------------------ [2007-10-19 12:37:43] chad at herballure dot com Description: ------------ ignore_repeated_errors, error_reporting, and display_errors in the system php.ini file can interfere with testing, causing bogus failure reports. Tests should run in a known-good environment, not under the system's /usr/local/lib/php.ini settings. 388 additional failures can be provoked in 5.2.5RC1 this way. This wastes the time of both PHP-QA (who get bogus reports) and users (who have to hide the system php.ini by hand and replace it after running tests--if they remember). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43035&edit=1