#34072 [Com]: MySQL module can't connect if port is not 3306
ID: 34072 Comment by: m6mkiller at hotmail dot com Reported By: pash_ka at fonbet dot info Status: No Feedback Bug Type: PDO related Operating System: Windows XP PHP Version: 5CVS-2005-08-30 Assigned To: wez New Comment: yo im not able to connect it says localhost not alowwed to access this and i cant access my servers or any thing i had to use mysql its like it deleted the server name Previous Comments: [2007-11-16 22:08:28] stratsnteles at wi dot rr dot com I've installed Apache 2.2, PHP5 and mysql 5.0.45. I have verified that Apache is running fine, along with PHP (running PHP test script). When I use various sample php scripts to connect to mysql, I get nothing. nada. zip. Not even 'die' error message. I'm suspecting it's a problem w/PHP 5. I am a PHP/MySql newbie, but an old PC pro. I am certain that I have the servers configured properly, Can anyone help? [2007-10-22 07:11:48] shanewaj at gmail dot com Hi Friends I am trying to connect a mysql and php5 with Apache2 PHP is working ok I can show php files no problem but when i try to connect with mysql nothing is happending simply nothing as I have tried this script as well I have tried my old scripts as well not no response it does not show any thing not even error msg. any idea I am lost ... Thanks Shanewaj [2006-08-13 11:50:39] waruiinu at gmail dot com I think there is some sort of bug in mysql client library. It just doesn't want to use tcp connection if you connect to localhost. For example if I add -P 3306 to mysql client binary, netstat will show the unix connection, not the tcp. Only if i use -h 127.0.0.1 mysql will use tcp (-h localhost doesn't solve anything). [2005-09-08 01:00:03] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to Open. [2005-08-31 06:07:52] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip try a new 5.1 snapshot please. Your bug is only occurs when you use 'localhost' (and not 127.0.0.1), so please check that. Thanks, George The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/34072 -- Edit this bug report at http://bugs.php.net/?id=34072edit=1
#45199 [NEW]: Seializing objects with private properties
From: mehran20 at hotmail dot com Operating system: CentOS / Linux PHP version: 5.2.6 PHP Bug Type: Class/Object related Bug description: Seializing objects with private properties Description: Hi Before you read the code, I want to say that the code that is given in this section works fine. The only problem is for the code that is given in the Reproduce code. class A { private $a = 1; } class B extends A { private $b = 2; } $v = new B; print_r(unserialize(serialize($v))); Output (which is correct): B Object ( [b:private] = 2 [a:private] = 1 ) Reproduce code: --- class A { private $a = 1; public function __sleep() { $vars = get_object_vars($this); return array_keys($vars); } } class B extends A { private $b = 2; } $v = new B; print_r(unserialize(serialize($v))); Expected result: B Object ( [b:private] = 2 [a:private] = 1 ) Or B Object ( [b:private] = 2 ) I prefer the first one! But both could be correct!! Actual result: -- Notice: serialize() [function.serialize]: a returned as member variable from __sleep() but does not exist in __FILE__ on line 14 B Object ( [b:private] = 2 [a:private] = 1 [a] = ) -- Edit bug report at http://bugs.php.net/?id=45199edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45199r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45199r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45199r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45199r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45199r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45199r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=45199r=needscript Try newer version:http://bugs.php.net/fix.php?id=45199r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45199r=support Expected behavior:http://bugs.php.net/fix.php?id=45199r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45199r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45199r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45199r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45199r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45199r=dst IIS Stability:http://bugs.php.net/fix.php?id=45199r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45199r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45199r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45199r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=45199r=mysqlcfg
#45200 [NEW]: xsl document() Function crash Output
From: privat at praeclarus dot de Operating system: Linux PHP version: 5.2.6 PHP Bug Type: XSLT related Bug description: xsl document() Function crash Output Description: This Part of Code will crash the Script without any Error. After commenting out: xsl:value-of select=document('.'Sprache_DE_Fahrzeugliste.xml'.') / it will output hello. At php 4 domxsl the same Stylesheet will work like charme, like in all other XSLT-Processors. Reproduce code: --- ?php $s_xml = '?xml version=1.0 encoding=utf-8?roottesthallo/test/root'; $s_xsl = '?xml version=1.0 encoding=utf-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:template match=/ xsl:value-of select=document('.'Sprache_DE_Fahrzeugliste.xml'.') / xsl:apply-templates/ /xsl:template /xsl:stylesheet '; $o_xml = DOMDocument::loadXML ( $s_xml ); $o_xsl = DOMDocument::loadXML ( $s_xsl ); $o_Prozess = new XSLTProcessor(); $o_Prozess - importStyleSheet ( $o_xsl ); echo $o_Prozess - transformToXML( $o_xml ); ? Expected result: When not 'Sprache_DE_Fahrzeugliste.xml' exist an Error, and whn Exist processing the xml_Document. Actual result: -- Crash witout any output ... seems the Apache-Process will killed before an Output -- Edit bug report at http://bugs.php.net/?id=45200edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45200r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45200r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45200r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45200r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45200r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45200r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=45200r=needscript Try newer version:http://bugs.php.net/fix.php?id=45200r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45200r=support Expected behavior:http://bugs.php.net/fix.php?id=45200r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45200r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45200r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45200r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45200r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45200r=dst IIS Stability:http://bugs.php.net/fix.php?id=45200r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45200r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45200r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45200r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=45200r=mysqlcfg
#45201 [NEW]: Suggestion: allow SimpleXMLElement-xpath() to return single SimpleXMLElement
From: php at jacob-head dot com Operating system: Debian Testing (Lenny) PHP version: 5.2.6 PHP Bug Type: SimpleXML related Bug description: Suggestion: allow SimpleXMLElement-xpath() to return single SimpleXMLElement Description: Currently SimpleXMLElement-xpath() returns an array comprised of SimpleXMLElements which match the xpath query. To manipulate the results it is therefore necessary to extract the elements from the array. This is not problematic for situations when one is using xpath to search for a number of nodes. However, when one searching for specific and unique elements, it would be helpful if rather than having xpath return an array comprised of the single element, it would be possible to have it return only the SimpleXMLElement object. My suggestion is that a second parameter, an integer, be added to the function. If used, SimpleXMLElement-xpath() would return the SimpleXMLElement object equivalent to that result. For example: $finalresult=$xml-xpath('[EMAIL PROTECTED]XYZ]', 1); would be the same as: $firstresult=$xml-xpath('[EMAIL PROTECTED]XYZ]'); $finalresult=$firstresult[0]; This would be useful as it would allow further manipulation of the element within a specific SimpleXML list of functions. For example: $xml-xpath('[EMAIL PROTECTED]XYZ]', 1)-addChild('new', 'element'); rather than the current: $firstresult=$xml-xpath('[EMAIL PROTECTED]XYZ]'); $firstresult[0]-addChild('new', 'element'); Equally, it would also allow stacking of xpath elements. E.g.: $finalresult=$xml-xpath('[EMAIL PROTECTED]XYZ]', 1)-xpath('[EMAIL PROTECTED]ABC]', 1); rather than the current: $firstresult=$xml-xpath('[EMAIL PROTECTED]XYZ]'); $secondresult=$firstresult[0]-xpath('[EMAIL PROTECTED]ABC]'); $finalresult=$secondresult[0]; Although this may seem like a small change, when dealing with large numbers of these calls it would be very helpful. Many thanks, -Jacob PS. This is my first attempt at a Wishlist Bug Report suggestion. I hope I have done everything correctly, but please accept my apologies if I have not! -- Edit bug report at http://bugs.php.net/?id=45201edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45201r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45201r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45201r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45201r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45201r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45201r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=45201r=needscript Try newer version:http://bugs.php.net/fix.php?id=45201r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45201r=support Expected behavior:http://bugs.php.net/fix.php?id=45201r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45201r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45201r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45201r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45201r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45201r=dst IIS Stability:http://bugs.php.net/fix.php?id=45201r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45201r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45201r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45201r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=45201r=mysqlcfg
#45202 [NEW]: configuration failed
From: e dot ehritt at web dot de Operating system: Linux 2.6.24.7 i686 PHP version: 5.2.6 PHP Bug Type: Zlib Related Bug description: configuration failed Description: Configure Command ./configure --prefix=/opt/php/526 --mandir=/opt/php/man --disable-all --disable-cgi --disable-short-tags --enable-memory-limit --with-apxs2=/opt/apache/228/bin/apxs --with-config-file-path=/opt/conf --with-zend-vm=GOTO Server API Apache 2.0 Handler PHP API 20041225 PHP Extension 20060613 Zend Extension 220060519 Debug Build no Thread Safety enabled Zend Memory Manager enabled IPv6 Supportenabled Relevant Part of phpinfo() ZLib Support enabled Stream Wrapper support compress.zlib:// Stream Filtersupport zlib.inflate, zlib.deflate Compiled Version 1.2.3 Linked Version 1.2.3 Directive LocalMaster zlib.output_compressionOn Off zlib.output_compression_level 9-1 zlib.output_handlerno value no value ### Description ### If configuration of zlib.output_compression zlib.output_compression_level is seeded in a php.ini, there are no problems. Output is managed as configured. If configuration of zlib.output_compression zlib.output_compression_level is determined by ini_set(), phpinfo() adopt it but not at all output is compressed. As you can see other Modules are not enabled. Additional zlib extension was built by phpize. Reproduce code: --- ?php ini_set('zlib.output_compression',true); ini_set('zlib.output_compression_level',9); phpinfo(); ? -- Edit bug report at http://bugs.php.net/?id=45202edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45202r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45202r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45202r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45202r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45202r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45202r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=45202r=needscript Try newer version:http://bugs.php.net/fix.php?id=45202r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45202r=support Expected behavior:http://bugs.php.net/fix.php?id=45202r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45202r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45202r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45202r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45202r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45202r=dst IIS Stability:http://bugs.php.net/fix.php?id=45202r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45202r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45202r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45202r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=45202r=mysqlcfg
#45203 [NEW]: missing HTTP Vary header
From: e dot ehritt at web dot de Operating system: other PHP version: 5.2.6 PHP Bug Type: Zlib Related Bug description: missing HTTP Vary header Description: If configuration of zlib.output_compression zlib.output_compression_level is seeded in a php.ini, not at all there are a header Vary. RFC 2616 section 14.44 requires own. It is the same problem as discribe in http://bugs.php.net/40325 ob_start('ob_gzhander') is not the only way to start output compression. -- Edit bug report at http://bugs.php.net/?id=45203edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45203r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45203r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45203r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45203r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45203r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45203r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=45203r=needscript Try newer version:http://bugs.php.net/fix.php?id=45203r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45203r=support Expected behavior:http://bugs.php.net/fix.php?id=45203r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45203r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45203r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45203r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45203r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45203r=dst IIS Stability:http://bugs.php.net/fix.php?id=45203r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45203r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45203r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45203r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=45203r=mysqlcfg
#45204 [NEW]: Comma should be a valid HEREDOC keyword suffix
From: signe at cothlamadh dot net Operating system: All PHP version: 5.2.6 PHP Bug Type: Scripting Engine problem Bug description: Comma should be a valid HEREDOC keyword suffix Description: Comma should be added to the allowable line suffixes for HEREDOC keywords. The use of HEREDOC in an array becomes very ungainly because the keyword can not be terminated followed by a comma. Currently the addition of a comma renders the scripting engine unable to recognize the keyword as being the terminator for the HEREDOC string and the rest of the script is absorbed resulting in an syntax error, unexpected $end E_PARSE_ERROR. Reproduce code: --- ?php $foo = array( 'blah' = SQL SELECT * FROM test WHERE RAND() SQL, 'foo' = 'bar', 'baz' = 'blat' ); print_r($foo); ? Expected result: The comma should not prevent the HEREDOC string from being terminated, and should be a valid suffix, just like semi-colon is. Actual result: -- Parse error: syntax error, unexpected $end in test.php on line 16 -- Edit bug report at http://bugs.php.net/?id=45204edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45204r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45204r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45204r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45204r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45204r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45204r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=45204r=needscript Try newer version:http://bugs.php.net/fix.php?id=45204r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45204r=support Expected behavior:http://bugs.php.net/fix.php?id=45204r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45204r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45204r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45204r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45204r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45204r=dst IIS Stability:http://bugs.php.net/fix.php?id=45204r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45204r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45204r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45204r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=45204r=mysqlcfg