From: Operating system: WIN2008 SERVER PHP version: Irrelevant Package: IIS related Bug Type: Feature/Change Request Bug description:PHP 6 DEV TEST OK BUT MISSING SOME THINGS
Description: ------------ ALL TESTS USING PHP 6.0.0 DEV WORK OK BUT IN SOME CODE THE CONECTION TO MYSQL SERVER ( OR ANY OTHER SQL SERVER ) ONLY WORKS ON LOCAL HOST NOT BY IP OR IN ANOTHER SERVER FAIL TO CONECT ,USING WIN 2008 R2 SP1, HERE IS A SAMPLE OF THE PHP INI **************************** max_execution_time = 60 max_input_time = 90 ;max_input_nesting_level = 64 memory_limit = 128M ;;;;;;;;;;;;;;;;;;;;;;;;; ; Paths and Directories ; ;;;;;;;;;;;;;;;;;;;;;;;;; include_path = "C:\PHP_6.0\extras\" ;doc_root = ;user_dir = extension_dir = "C:\PHP_6.0\ext\" ;;;;;;;;;;;;;;;; ; File Uploads ; ;;;;;;;;;;;;;;;; file_uploads = On ;upload_tmp_dir = I:\PHP\uploadtemp upload_max_filesize = 20M post_max_size = 16M max_file_uploads = 20 ;;;;;;;;;;;;;;;;;; ; Fopen wrappers ; ;;;;;;;;;;;;;;;;;; allow_url_fopen = On allow_url_include = Off ;from="j...@doe.com" ; user_agent="PHP" default_socket_timeout = 90 ; auto_detect_line_endings = Off ;;;;;;;;;;;;;;;;;;;;;; ; Dynamic Extensions ; ;;;;;;;;;;;;;;;;;;;;;; extension=php_mbstring.dll extension=php_bz2.dll ;extension=php_curl.dll extension=php_dba.dll extension=php_dbase.dll ;extension=php_exif.dll ;extension=php_fdf.dll extension=php_filepro.dll extension=php_gd2.dll extension=php_gettext.dll ;extension=php_ifx.dll extension=php_imap.dll ;extension=php_interbase.dll ;extension=php_ldap.dll extension=php_mcrypt.dll extension=php_mhash.dll extension=php_mime_magic.dll ;extension=php_ming.dll extension=php_mssql.dll extension=php_msql.dll extension=php_mysql.dll extension=php_mysqli.dll ;extension=php_oci8.dll extension=php_openssl.dll ;extension=php_oracle.dll ;extension=php_pgsql.dll ;extension=php_shmop.dll ;extension=php_snmp.dll ;extension=php_sockets.dll ;extension=php_sqlite.dll ;extension=php_sybase_ct.dll ;extension=php_tidy.dll ;extension=php_xmlrpc.dll ;extension=php_xsl.dll ;;;;;;;;;;;;;;;;;;; ; Module Settings ; ;;;;;;;;;;;;;;;;;;; [Date] date.timezone = Europe/London ;date.default_latitude = 31.7667 ;date.default_longitude = 35.2333 ;date.sunrise_zenith = 90.583333 ;date.sunset_zenith = 90.583333 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Error handling and logging ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; error_reporting = E_ALL display_errors = Off display_startup_errors = Off log_errors = On log_errors_max_len = 1024 ignore_repeated_errors = off ignore_repeated_source = Off report_memleaks = On ;report_zend_debug = 0 track_errors = Off ;html_errors = Off ;docref_root = "/phpmanual/" ;docref_ext = .html ;error_prepend_string = "<font color=ff0000>" ;error_append_string = "</font>" ;error_log = filename error_log = syslog ;;;;;;;;;;;;; ; SERVICE ; ;;;;;;;;;;;;; cgi.force_redirect = 0 ; cgi.nph = 1 ; cgi.redirect_status_env = ; ; fastcgi.impersonate = 1; ; fastcgi.log = 0 ;cgi.rfc2616_headers = 0 ;magic_quotes_gpc = Off ;magic_quotes_runtime = Off ;magic_quotes_sybase = Off ;;;;;;;;;;;;;;;;;;;; ; Language Options ; ;;;;;;;;;;;;;;;;;;;; engine = Off short_open_tag = Off precision = 14 y2k_compliance = On output_buffering = 4096 ;output_handler = zlib.output_compression = Off ;zlib.output_compression_level = -1 ;zlib.output_handler = implicit_flush = Off unserialize_callback_func= serialize_precision = 100 ;open_basedir = disable_functions = disable_classes = ;highlight.string = #DD0000 ;highlight.comment = #FF9900 ;highlight.keyword = #007700 ;highlight.bg = #FFFFFF ;highlight.default = #0000BB ;highlight.html = #000000 ; ignore_user_abort = On ; realpath_cache_size=16k ; realpath_cache_ttl=120 expose_php = off ;;;;;;;;;;;;;;;;; ; Data Handling ; ;;;;;;;;;;;;;;;;; ;arg_separator.output = "&" ;arg_separator.input = ";&" variables_order = "GPCS" register_argc_argv = Off auto_globals_jit = On post_max_size = 16M ;auto_prepend_file = ;auto_append_file = default_mimetype = "text/html" ;default_charset = "iso-8859-1" ;always_populate_raw_post_data = On ;;;;;;;;;;;;;;;;;;;; ; Unicode settings ; ;;;;;;;;;;;;;;;;;;;; unicode.semantics = off unicode.runtime_encoding = utf-8 unicode.script_encoding = utf-8 unicode.output_encoding = utf-8 unicode.from_error_mode = U_INVALID_SUBSTITUTE unicode.from_error_subst_char = 3f Test script: --------------- PHP CONFIG : $h = "128.1.1.10"; $d = "DATA"; $u = "USER"; $p = "TRJJRSFK"; **************** $link = mysql_connect ($h, $u, $p) or die ("Could not connect to database, try again later"); mysql_select_db($d,$link); Expected result: ---------------- CONNECT TO SQL Actual result: -------------- Could not connect to database, try again later -- Edit bug report at http://bugs.php.net/bug.php?id=54741&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54741&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54741&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54741&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=54741&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54741&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=54741&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=54741&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=54741&r=needscript Try newer version: http://bugs.php.net/fix.php?id=54741&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=54741&r=support Expected behavior: http://bugs.php.net/fix.php?id=54741&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=54741&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=54741&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=54741&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54741&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=54741&r=dst IIS Stability: http://bugs.php.net/fix.php?id=54741&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=54741&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=54741&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=54741&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=54741&r=mysqlcfg