[PHP-BUG] Bug #53034 [NEW]: shebang parsing problem
From: Operating system: CentOS 5.3 PHP version: 5.3.3 Package: Unknown/Other Function Bug Type: Bug Bug description:shebang parsing problem Description: Using parameters in shebang line causes script errors, doesn't parse process shebang parameters. Test script: --- #!/usr/bin/php -d display_errors=1 -d display_startup_errors=1 ? echo 1\r\n; new a(); echo 2\r\n; ? Expected result: 1 Fatal error: Class 'a' not found in /opt/tools/bin/mysql_dump_parser.php on line 4 Actual result: -- PHP: syntax error, unexpected TC_STRING in Unknown on line 7 1 -- Edit bug report at http://bugs.php.net/bug.php?id=53034edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53034r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53034r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53034r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=53034r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53034r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=53034r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=53034r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=53034r=needscript Try newer version: http://bugs.php.net/fix.php?id=53034r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=53034r=support Expected behavior: http://bugs.php.net/fix.php?id=53034r=notwrong Not enough info: http://bugs.php.net/fix.php?id=53034r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=53034r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=53034r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53034r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=53034r=dst IIS Stability: http://bugs.php.net/fix.php?id=53034r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=53034r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=53034r=float No Zend Extensions: http://bugs.php.net/fix.php?id=53034r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=53034r=mysqlcfg
#41790 [Com]: dotnet class
ID: 41790 Comment by: cpriest at warpmail dot net Reported By: mona dot arabi at yahoo dot co dot uk Status: No Feedback Bug Type: COM related Operating System: windows xp 2002 sp2 PHP Version: 5.2.3 New Comment: ?php $stack = new DOTNET(mscorlib, System.Collections.Stack); $stack-Push(.Net); $stack-Push(Hello ); echo $stack-Pop() . $stack-Pop(); ? is no longer working either in 5.3.1 ? $test = new DOTNET(System, System.Diagnostics.Process); ? This also still fails in 5.3.1 -- it appears as though DOTNET functionality is not going to be fixed, there are numerous bug reports and no activity. Previous Comments: [2007-07-17 01:00:01] 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. [2007-07-09 11:19:24] j...@php.net See bug #29800 for more info. [2007-06-24 16:03:21] mona dot arabi at yahoo dot co dot uk i mean that this code is working ?php $stack = new DOTNET(mscorlib, System.Collections.Stack); $stack-Push(.Net); $stack-Push(Hello ); echo $stack-Pop() . $stack-Pop(); ? but this ? $test = new DOTNET(System, System.Diagnostics.Process); ? generate Fatal error: Uncaught exception 'com_exception' with message 'Failed to instantiate .Net object [CreateInstance] [0x80070002] The system cannot find the file specified. ' in C:\webs\test\index.php:7 Stack trace: #0 C:\webs\test\index.php(7): dotnet-dotnet('System', 'System.Diagnost...') #1 {main} thrown in C:\webs\test\index.php on line 7 [2007-06-24 14:26:47] mona dot arabi at yahoo dot co dot uk Description: i can't instanciate an object from .net Reproduce code: --- ? $test = new DOTNET(System, System.Diagnostics.Process); ? WHILE ?php $stack = new DOTNET(mscorlib, System.Collections.Stack); $stack-Push(.Net); $stack-Push(Hello ); echo $stack-Pop() . $stack-Pop(); ? WORKING Expected result: CREATING AN OBJECT TO PROCESS Actual result: -- Fatal error: Uncaught exception 'com_exception' with message 'Failed to instantiate .Net object [CreateInstance] [0x80070002] The system cannot find the file specified. ' in C:\webs\test\index.php:7 Stack trace: #0 C:\webs\test\index.php(7): dotnet-dotnet('System', 'System.Diagnost...') #1 {main} thrown in C:\webs\test\index.php on line 7 my php PHP 5.2.3 (cli) (built: may 31 2007 09:37:22) copyright (c) 1997-2007 THE PHP GROUP Zend Engin v2.2.0 , copyright(c)1998-2007 zend Technologies. Apache/2.0.59 (Win32) -- Edit this bug report at http://bugs.php.net/?id=41790edit=1
#48977 [NEW]: US/Central != Etc/GMT-6
From: cpriest at warpmail dot net Operating system: Vista 64-Bit PHP version: 5.3.0 PHP Bug Type: Date/time related Bug description: US/Central != Etc/GMT-6 Description: When initializing two new DateTime objects using equivalent DateTimeZone()'s of US/Central and Etc/GMT-6, the result is incorrect Reproduce code: --- $objTime = new DateTime('now', new DateTimeZone('US/Central')); echo $objTime-format('m/d/Y H:i:s T').\r\n; $objTime = new DateTime('now', new DateTimeZone('Etc/GMT-6')); echo $objTime-format('m/d/Y H:i:s T').\r\n; Expected result: The same timestamp on two lines (with different TimeZone specifiers) Actual result: -- Different timestamps. -- Edit bug report at http://bugs.php.net/?id=48977edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48977r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48977r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48977r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=48977r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=48977r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48977r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48977r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48977r=needscript Try newer version: http://bugs.php.net/fix.php?id=48977r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48977r=support Expected behavior: http://bugs.php.net/fix.php?id=48977r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48977r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48977r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48977r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48977r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=48977r=dst IIS Stability: http://bugs.php.net/fix.php?id=48977r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48977r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48977r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48977r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48977r=mysqlcfg
#46441 [NEW]: Bitwise or not available in class definition
From: cpriest at warpmail dot net Operating system: Linux/Apache PHP version: 5.2.6 PHP Bug Type: Feature/Change Request Bug description: Bitwise or not available in class definition Description: Bitwise | and are not available in class definition areas. Reproduce code: --- ?php class a { const FLAG_1 = 1; const FLAG_2 = 2; protected $Flags = self::FLAG_1 | self::FLAG_2; } Expected result: Properly compiled and having $Flags = 3 upon instantiation. Actual result: -- Compile error, expected ';' where '|' is. -- Edit bug report at http://bugs.php.net/?id=46441edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46441r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46441r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46441r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46441r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46441r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=46441r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46441r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46441r=needscript Try newer version: http://bugs.php.net/fix.php?id=46441r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46441r=support Expected behavior: http://bugs.php.net/fix.php?id=46441r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46441r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46441r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46441r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46441r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=46441r=dst IIS Stability: http://bugs.php.net/fix.php?id=46441r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46441r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46441r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46441r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46441r=mysqlcfg
#42325 [Bgs-Opn]: xmlns parsing issues
ID: 42325 User updated by: cpriest at warpmail dot net Reported By: cpriest at warpmail dot net -Status: Bogus +Status: Open Bug Type: SimpleXML related Operating System: Windows PHP Version: 5.2.4RC2 New Comment: I'm not sure I understand why I would have to call registerXPathNamespace() to use a default namespace? I thought one of the reasons to use SimpleXML was to parse XML documents. If I make the one default namespace (xmlns=http://zzz.com/webservices;) a non-default such as xmlns:test=, then it properly queries the /result value. To do what you're suggestion I would have to parse the XML document myself looking for the namespace I would want to query against. The code below also works if you simply remove the xmlns= attribute. Are you sure that I'm supposed to be using registerXPathNamespace() Previous Comments: [2007-08-17 07:01:04] [EMAIL PROTECTED] You have to register default namespaces with http://ch2.php.net/manual/en/function.simplexml-element- registerXPathNamespace.php [2007-08-17 04:08:56] cpriest at warpmail dot net Description: SimpleXML is having some difficulty in parsing XML which contains a default xmlns entry. Reproduce code: --- ? header('Content-Type: text/plain'); $ResponseBody = '?xml version=1.0 encoding=UTF-8? result xmlns=https://zzz.com/webservices; xmlns:xsd=https://www.w3.org/2001/XMLSchema; xmlns:xsi=https://www.w3.org/2001/XMLSchema-instance;Test/result'; $objXML = new SimpleXMLElement($ResponseBody); $tMatches = $objXML-xpath('/result'); print_r((string)$tMatches[0]); ? Expected result: Expect print_r() to print Test Actual result: -- $tMatches is an empty array() If you change the xmlns=https://zzz.com/webservices; to xmlns:zzz=https://zzz.com/webservices; (add a namespace sub-string), it works fine. -- Edit this bug report at http://bugs.php.net/?id=42325edit=1
#42325 [Bgs-Opn]: xmlns parsing issues
ID: 42325 User updated by: cpriest at warpmail dot net Reported By: cpriest at warpmail dot net -Status: Bogus +Status: Open Bug Type: SimpleXML related Operating System: Windows PHP Version: 5.2.4RC2 New Comment: Why is this bogus? Does anyone actually even read these reports? Previous Comments: [2007-08-17 14:45:18] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php [2007-08-17 14:35:16] cpriest at warpmail dot net I'm not sure I understand why I would have to call registerXPathNamespace() to use a default namespace? I thought one of the reasons to use SimpleXML was to parse XML documents. If I make the one default namespace (xmlns=http://zzz.com/webservices;) a non-default such as xmlns:test=, then it properly queries the /result value. To do what you're suggestion I would have to parse the XML document myself looking for the namespace I would want to query against. The code below also works if you simply remove the xmlns= attribute. Are you sure that I'm supposed to be using registerXPathNamespace() [2007-08-17 07:01:04] [EMAIL PROTECTED] You have to register default namespaces with http://ch2.php.net/manual/en/function.simplexml-element- registerXPathNamespace.php [2007-08-17 04:08:56] cpriest at warpmail dot net Description: SimpleXML is having some difficulty in parsing XML which contains a default xmlns entry. Reproduce code: --- ? header('Content-Type: text/plain'); $ResponseBody = '?xml version=1.0 encoding=UTF-8? result xmlns=https://zzz.com/webservices; xmlns:xsd=https://www.w3.org/2001/XMLSchema; xmlns:xsi=https://www.w3.org/2001/XMLSchema-instance;Test/result'; $objXML = new SimpleXMLElement($ResponseBody); $tMatches = $objXML-xpath('/result'); print_r((string)$tMatches[0]); ? Expected result: Expect print_r() to print Test Actual result: -- $tMatches is an empty array() If you change the xmlns=https://zzz.com/webservices; to xmlns:zzz=https://zzz.com/webservices; (add a namespace sub-string), it works fine. -- Edit this bug report at http://bugs.php.net/?id=42325edit=1
#42325 [Bgs-Opn]: xmlns parsing issues
ID: 42325 User updated by: cpriest at warpmail dot net Reported By: cpriest at warpmail dot net -Status: Bogus +Status: Open Bug Type: SimpleXML related Operating System: Windows PHP Version: 5.2.4RC2 New Comment: Okay, this is a little frustrating here, I don't have infinite amount of time to get a bug report through to you. I am trying to use the DEFAULT NAMESPACE. I couldn't use registerXPathNamespace() if I wanted to, there is no prefix or namespace to declare to use it with. PLEASE READ THE REPORT. Previous Comments: [2007-08-17 19:52:49] [EMAIL PROTECTED] This is not a help desk. Thats how XPath and default namespaces work. [2007-08-17 16:30:49] cpriest at warpmail dot net Why is this bogus? Does anyone actually even read these reports? [2007-08-17 14:45:18] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php [2007-08-17 14:35:16] cpriest at warpmail dot net I'm not sure I understand why I would have to call registerXPathNamespace() to use a default namespace? I thought one of the reasons to use SimpleXML was to parse XML documents. If I make the one default namespace (xmlns=http://zzz.com/webservices;) a non-default such as xmlns:test=, then it properly queries the /result value. To do what you're suggestion I would have to parse the XML document myself looking for the namespace I would want to query against. The code below also works if you simply remove the xmlns= attribute. Are you sure that I'm supposed to be using registerXPathNamespace() [2007-08-17 07:01:04] [EMAIL PROTECTED] You have to register default namespaces with http://ch2.php.net/manual/en/function.simplexml-element- registerXPathNamespace.php 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/42325 -- Edit this bug report at http://bugs.php.net/?id=42325edit=1
#42325 [NEW]: xmlns parsing issues
From: cpriest at warpmail dot net Operating system: Windows PHP version: 5.2.4RC2 PHP Bug Type: SimpleXML related Bug description: xmlns parsing issues Description: SimpleXML is having some difficulty in parsing XML which contains a default xmlns entry. Reproduce code: --- ? header('Content-Type: text/plain'); $ResponseBody = '?xml version=1.0 encoding=UTF-8? result xmlns=https://zzz.com/webservices; xmlns:xsd=https://www.w3.org/2001/XMLSchema; xmlns:xsi=https://www.w3.org/2001/XMLSchema-instance;Test/result'; $objXML = new SimpleXMLElement($ResponseBody); $tMatches = $objXML-xpath('/result'); print_r((string)$tMatches[0]); ? Expected result: Expect print_r() to print Test Actual result: -- $tMatches is an empty array() If you change the xmlns=https://zzz.com/webservices; to xmlns:zzz=https://zzz.com/webservices; (add a namespace sub-string), it works fine. -- Edit bug report at http://bugs.php.net/?id=42325edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42325r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42325r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42325r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42325r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42325r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42325r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=42325r=needscript Try newer version:http://bugs.php.net/fix.php?id=42325r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42325r=support Expected behavior:http://bugs.php.net/fix.php?id=42325r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42325r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42325r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42325r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42325r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42325r=dst IIS Stability:http://bugs.php.net/fix.php?id=42325r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42325r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42325r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42325r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=42325r=mysqlcfg
#42289 [Bgs-Opn]: xpath relative paths incorrectly returns no match
ID: 42289 User updated by: cpriest at warpmail dot net Reported By: cpriest at warpmail dot net -Status: Bogus +Status: Open Bug Type: SimpleXML related Operating System: Windows Linux PHP Version: 5.2.4RC1 New Comment: According to the specs: Always returns an array of SimpleXMLElement objects. While the xpath() is actually returning a boolean value. Here is some revised code which demonstrates an incorrect return value: ?php require_once('inc.backend.interactive.php'); header('Content-Type: text/plain'); set_time_limit(0); $ResponseBody = '?xml version=1.0 encoding=UTF-8?postresponsestatus accept=noINVALID/status/postresponse'; $objXML = new SimpleXMLElement($ResponseBody); $tMatches = $objXML-xpath('postresponse/status/@accept'); print_r($tMatches); print_r(gettype($tMatches)); //print_r((string)$tMatches[0]); ? Previous Comments: [2007-08-14 11:56:16] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php output is correct. $objXML is document element [2007-08-14 01:12:55] cpriest at warpmail dot net Description: Non-absolute paths using -xpath() do not match appropriately. With the given example, changing the xpath to '/postresponse/status/@accept' correctly returns no Reproduce code: --- ? $ResponseBody = '?xml version=1.0 encoding=UTF-8?postresponsestatus accept=noINVALID/status/postresponse'; $objXML = new SimpleXMLElement($ResponseBody); $tMatches = $objXML-xpath('postresponse/status/@accept'); print_r((string)$tMatches[0]); ? Expected result: no Actual result: -- xpath() returns no results -- Edit this bug report at http://bugs.php.net/?id=42289edit=1
#42289 [NEW]: relative paths incorrectly returning no match
From: cpriest at warpmail dot net Operating system: Windows Linux PHP version: 5.2.4RC1 PHP Bug Type: SimpleXML related Bug description: relative paths incorrectly returning no match Description: Non-absolute paths using -xpath() do not match appropriately. With the given example, changing the xpath to '/postresponse/status/@accept' correctly returns no Reproduce code: --- ? $ResponseBody = '?xml version=1.0 encoding=UTF-8?postresponsestatus accept=noINVALID/status/postresponse'; $objXML = new SimpleXMLElement($ResponseBody); $tMatches = $objXML-xpath('postresponse/status/@accept'); print_r((string)$tMatches[0]); ? Expected result: no Actual result: -- xpath() returns no results -- Edit bug report at http://bugs.php.net/?id=42289edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42289r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42289r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42289r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42289r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42289r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42289r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=42289r=needscript Try newer version:http://bugs.php.net/fix.php?id=42289r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42289r=support Expected behavior:http://bugs.php.net/fix.php?id=42289r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42289r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42289r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42289r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42289r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42289r=dst IIS Stability:http://bugs.php.net/fix.php?id=42289r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42289r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42289r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42289r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=42289r=mysqlcfg
#42289 [Opn]: xpath relative paths incorrectly returns no match
ID: 42289 User updated by: cpriest at warpmail dot net -Summary: relative paths incorrectly returning no match Reported By: cpriest at warpmail dot net Status: Open Bug Type: SimpleXML related Operating System: Windows Linux PHP Version: 5.2.4RC1 New Comment: Changing incorrect summary text. Previous Comments: [2007-08-14 01:12:55] cpriest at warpmail dot net Description: Non-absolute paths using -xpath() do not match appropriately. With the given example, changing the xpath to '/postresponse/status/@accept' correctly returns no Reproduce code: --- ? $ResponseBody = '?xml version=1.0 encoding=UTF-8?postresponsestatus accept=noINVALID/status/postresponse'; $objXML = new SimpleXMLElement($ResponseBody); $tMatches = $objXML-xpath('postresponse/status/@accept'); print_r((string)$tMatches[0]); ? Expected result: no Actual result: -- xpath() returns no results -- Edit this bug report at http://bugs.php.net/?id=42289edit=1
#41234 [Bgs]: additional info
ID: 41234 User updated by: cpriest at warpmail dot net -Summary: Additional Notes Reported By: cpriest at warpmail dot net Status: Bogus Bug Type: MySQLi related Operating System: Windows Vista Business PHP Version: 5.2.1 New Comment: I've done a fresh install of both Apache and PHP twice. Default installation. I guess I'll try it again. No other reports of issues on Vista have shown up? Previous Comments: [2007-04-30 11:32:37] [EMAIL PROTECTED] You probably have another libmysql.dll or you have mixed up several PHP installs. The mysqli extension works fine. [2007-04-30 05:02:00] cpriest at warpmail dot net I have verified the following: - libmysql.dll is located in c:\php - c:\php is in the environment PATH variable (rebooted afterwards) - php_mysql.dll and php_mysqli.dll are both in .\ext and are being loaded (mysqli load fails) I have also tried the following: - Apache 2.2.x - Copying the libmysql.dll to c:\windows\system32 - Copying the libmysql.dll from my MySQL 4.1.x installation into c:\php All result in the same error Procedure could not be found while loading php_mysqli.dll I'm reasonably certain that this is related to my Windows Vista Business install, I have successfully installed this environment many times before on Windows XP and Linux installations with no problems. [2007-04-30 04:56:16] cpriest at warpmail dot net Description: Unable to get php_mysqli.dll to load properly on Windows Vista Business with Apache 2.0.59 or 2.2.x. Reproduce code: --- Install Apache 2.0.59 + PHP 5.2.1 Try loading the php_mysqli.dll Expected result: Able to load extension Actual result: -- Cannot load, get error Procedure could not be found. -- Edit this bug report at http://bugs.php.net/?id=41234edit=1
#41234 [NEW]: Procedure could not be found - mysqli - Vista
From: cpriest at warpmail dot net Operating system: Windows Vista Business PHP version: 5.2.1 PHP Bug Type: MySQLi related Bug description: Procedure could not be found - mysqli - Vista Description: Unable to get php_mysqli.dll to load properly on Windows Vista Business with Apache 2.0.59 or 2.2.x. Reproduce code: --- Install Apache 2.0.59 + PHP 5.2.1 Try loading the php_mysqli.dll Expected result: Able to load extension Actual result: -- Cannot load, get error Procedure could not be found. -- Edit bug report at http://bugs.php.net/?id=41234edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41234r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41234r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41234r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41234r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41234r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41234r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=41234r=needscript Try newer version:http://bugs.php.net/fix.php?id=41234r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41234r=support Expected behavior:http://bugs.php.net/fix.php?id=41234r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41234r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41234r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41234r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41234r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41234r=dst IIS Stability:http://bugs.php.net/fix.php?id=41234r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41234r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41234r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41234r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=41234r=mysqlcfg
#41234 [Opn]: Additional Notes
ID: 41234 User updated by: cpriest at warpmail dot net -Summary: Procedure could not be found - mysqli - Vista Reported By: cpriest at warpmail dot net Status: Open Bug Type: MySQLi related Operating System: Windows Vista Business PHP Version: 5.2.1 New Comment: I have verified the following: - libmysql.dll is located in c:\php - c:\php is in the environment PATH variable (rebooted afterwards) - php_mysql.dll and php_mysqli.dll are both in .\ext and are being loaded (mysqli load fails) I have also tried the following: - Apache 2.2.x - Copying the libmysql.dll to c:\windows\system32 - Copying the libmysql.dll from my MySQL 4.1.x installation into c:\php All result in the same error Procedure could not be found while loading php_mysqli.dll I'm reasonably certain that this is related to my Windows Vista Business install, I have successfully installed this environment many times before on Windows XP and Linux installations with no problems. Previous Comments: [2007-04-30 04:56:16] cpriest at warpmail dot net Description: Unable to get php_mysqli.dll to load properly on Windows Vista Business with Apache 2.0.59 or 2.2.x. Reproduce code: --- Install Apache 2.0.59 + PHP 5.2.1 Try loading the php_mysqli.dll Expected result: Able to load extension Actual result: -- Cannot load, get error Procedure could not be found. -- Edit this bug report at http://bugs.php.net/?id=41234edit=1
#39717 [NEW]: opendir - Segmentation Fault - Reproducable
From: cpriest at warpmail dot net Operating system: Apache 2.0.55 PHP version: 5.2.0 PHP Bug Type: Reproducible crash Bug description: opendir - Segmentation Fault - Reproducable Description: I am getting segmentation faults while using opendir(). This has been going off and on with glob() and opendir() over the course of many versions. I've never really thought it was with php but the segmentation faults only occur while using nearly any of the directory based functions in php from versions 5.0.x through 5.2.x Reproduce code: --- function LocateImportFiles($Path) { $tFilepaths = array(); if(($hDir = opendir($Path)) !== false) { while(($filepath = readdir($hDir)) !== false) { echo $filepath.'BR'; flush(); if(is_dir($filepath)) $tFilepaths = array_merge($tFilepaths, LocateImportFiles($filepath)); else { switch(array_pop(explode('.',$filepath))) { case 'htm': case 'html': $tFilepaths[$filepath] = 'Html Creative'; break; case 'txt': if(strstr($filepath, 'Subjects') !== false) $tFilepaths[$filepath] = 'Subject Lines'; else $tFilepaths[$filepath] = 'Unknown (Ignore)'; break; case 'zip': UnzipFile($filepath, dirname($filepath), $OutputDir, false); $tFilepaths = array_merge($tFilepaths, LocateImportFiles($OutputDir)); break; } } } closedir($hDir); } return $tFilepaths; } Expected result: no crashes Actual result: -- segmentation fault. Is there any way I can glean any usable information from the segmentation fault I can send you? Invariably this type of problem never seems to be able to be reproduced elsewhere and perhaps I can get you a dump of some file to isolate where the issue is? -- Edit bug report at http://bugs.php.net/?id=39717edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39717r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39717r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39717r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39717r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39717r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39717r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=39717r=needscript Try newer version:http://bugs.php.net/fix.php?id=39717r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39717r=support Expected behavior:http://bugs.php.net/fix.php?id=39717r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39717r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39717r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39717r=globals PHP 3 support discontinued: http://bugs.php.net
#39717 [Opn]: opendir - Segmentation Fault - Reproducable
ID: 39717 User updated by: cpriest at warpmail dot net Reported By: cpriest at warpmail dot net Status: Open Bug Type: Reproducible crash Operating System: Apache 2.0.55 PHP Version: 5.2.0 New Comment: Easier to read code: function LocateImportFiles($Path) { $tFilepaths = array(); if(($hDir = opendir($Path)) !== false) { while(($filepath = readdir($hDir)) !== false) { echo $filepath.'BR';flush(); if(is_dir($filepath)) $tFilepaths = array_merge($tFilepaths, LocateImportFiles($filepath)); else { switch(array_pop(explode('.',$filepath))) { case 'htm': case 'html': $tFilepaths[$filepath] = 'Html Creative'; break; case 'txt': if(strstr($filepath, 'Subjects') !== false) $tFilepaths[$filepath] = 'Subject Lines'; else $tFilepaths[$filepath] = 'Unknown (Ignore)'; break; case 'zip': UnzipFile($filepath, dirname($filepath), $OutputDir, false); $tFilepaths = array_merge($tFilepaths, LocateImportFiles($OutputDir)); break; } } } closedir($hDir); } return $tFilepaths; } Previous Comments: [2006-12-02 23:16:52] cpriest at warpmail dot net Description: I am getting segmentation faults while using opendir(). This has been going off and on with glob() and opendir() over the course of many versions. I've never really thought it was with php but the segmentation faults only occur while using nearly any of the directory based functions in php from versions 5.0.x through 5.2.x Reproduce code: --- function LocateImportFiles($Path) { $tFilepaths = array(); if(($hDir = opendir($Path)) !== false) { while(($filepath = readdir($hDir)) !== false) { echo $filepath.'BR'; flush(); if(is_dir($filepath)) $tFilepaths = array_merge($tFilepaths, LocateImportFiles($filepath)); else { switch(array_pop(explode('.',$filepath))) { case 'htm': case 'html': $tFilepaths[$filepath] = 'Html Creative'; break; case 'txt': if(strstr($filepath, 'Subjects') !== false) $tFilepaths[$filepath] = 'Subject Lines'; else $tFilepaths[$filepath] = 'Unknown (Ignore)'; break; case 'zip': UnzipFile($filepath, dirname($filepath), $OutputDir, false); $tFilepaths = array_merge($tFilepaths, LocateImportFiles($OutputDir)); break; } } } closedir($hDir); } return $tFilepaths; } Expected result: no crashes Actual result
#39717 [Opn-Bgs]: bogus, ignore
ID: 39717 User updated by: cpriest at warpmail dot net -Summary: opendir - Segmentation Fault - Reproducable Reported By: cpriest at warpmail dot net -Status: Open +Status: Bogus Bug Type: Reproducible crash Operating System: Apache 2.0.55 PHP Version: 5.2.0 New Comment: Nevermind, this particular time (perhaps every time I've run into this), I was caught in an infinite loop due to readdir() returning '.' and '..' entries. Previous Comments: [2006-12-02 23:18:18] cpriest at warpmail dot net Easier to read code: function LocateImportFiles($Path) { $tFilepaths = array(); if(($hDir = opendir($Path)) !== false) { while(($filepath = readdir($hDir)) !== false) { echo $filepath.'BR';flush(); if(is_dir($filepath)) $tFilepaths = array_merge($tFilepaths, LocateImportFiles($filepath)); else { switch(array_pop(explode('.',$filepath))) { case 'htm': case 'html': $tFilepaths[$filepath] = 'Html Creative'; break; case 'txt': if(strstr($filepath, 'Subjects') !== false) $tFilepaths[$filepath] = 'Subject Lines'; else $tFilepaths[$filepath] = 'Unknown (Ignore)'; break; case 'zip': UnzipFile($filepath, dirname($filepath), $OutputDir, false); $tFilepaths = array_merge($tFilepaths, LocateImportFiles($OutputDir)); break; } } } closedir($hDir); } return $tFilepaths; } [2006-12-02 23:16:52] cpriest at warpmail dot net Description: I am getting segmentation faults while using opendir(). This has been going off and on with glob() and opendir() over the course of many versions. I've never really thought it was with php but the segmentation faults only occur while using nearly any of the directory based functions in php from versions 5.0.x through 5.2.x Reproduce code: --- function LocateImportFiles($Path) { $tFilepaths = array(); if(($hDir = opendir($Path)) !== false) { while(($filepath = readdir($hDir)) !== false) { echo $filepath.'BR'; flush(); if(is_dir($filepath)) $tFilepaths = array_merge($tFilepaths, LocateImportFiles($filepath)); else { switch(array_pop(explode('.',$filepath))) { case 'htm': case 'html': $tFilepaths[$filepath] = 'Html Creative'; break; case 'txt': if(strstr($filepath, 'Subjects') !== false) $tFilepaths[$filepath] = 'Subject Lines'; else $tFilepaths[$filepath] = 'Unknown (Ignore)'; break; case 'zip': UnzipFile($filepath, dirname($filepath), $OutputDir, false); $tFilepaths = array_merge($tFilepaths, LocateImportFiles($OutputDir)); break
#39202 [Bgs-Opn]: Temporary tables with references dereference
ID: 39202 User updated by: cpriest at warpmail dot net Reported By: cpriest at warpmail dot net -Status: Bogus +Status: Open Bug Type: Arrays related Operating System: Apache 2.0.55 PHP Version: 5.1.6 New Comment: I think there's some confusion here, if you look at the code source I am only creating two objects. When I call getReferenced() it returns a table which has references to the created objects. When I go to change the name of the object in the second table (the one with references) it doesn't change the real object. For some reason there are then three objects when only two have been created. If this is the expected behavior can you explain why? I don't understand why a third object is being created when I have used references. Previous Comments: [2006-10-20 08:42:56] [EMAIL PROTECTED] See my explanation in the previous message. No bug here. [2006-10-20 00:18:12] cpriest at warpmail dot net Expected: -- Array ( [Test] = myClassA Object ( [Name] = Object 3 ) [Test2] = myClassA Object ( [Name] = Object 2 ) ) Array ( [Test] = myClassA Object ( [Name] = Object 3 ) [Test2] = myClassA Object ( [Name] = Object 2 ) ) Actual: Array ( [Test] = myClassA Object ( [Name] = Object 1 ) [Test2] = myClassA Object ( [Name] = Object 2 ) ) Array ( [Test] = myClassA Object ( [Name] = Object 3 ) [Test2] = myClassA Object ( [Name] = Object 2 ) ) [2006-10-19 21:11:57] [EMAIL PROTECTED] Can't reproduce. After the first print_r() I see Object 1 (because the object haven't been changed yet), after ther second call I get Object 3, which is expected too. Hint: when we say expected and actual results we usually mean copy/paste what you see and also attach what you expected to see, not a I expect to see ... [2006-10-19 20:56:01] cpriest at warpmail dot net Description: References in temporary tables de-reference their references upon crossing function boundaries Reproduce code: --- ?php class myClassA { public $Name = ''; function __construct($Name) { $this-Name = $Name; } } global $tblData; $tblData = array( 'Test' = new myClassA('Object 1'), 'Test2' = new myClassA('Object 2'), ); function getReferenced() { global $tblData; $tblData2 = array( 'Test' = $tblData['Test'], 'Test2' = $tblData['Test2'], ); return $tblData2; } echo 'plaintext'; print_r($tblData); $tblData2 = getReferenced(); $tblData2['Test']-Name = 'Object 3'; print_r($tblData2); ? Expected result: I expect there to be only two objects at the end of the call, one with a Name of 'Object 3' and one with a Name of 'Object 2' Actual result: -- Three objects exist, 'Object 1', 'Object 2', and 'Object 3' -- Edit this bug report at http://bugs.php.net/?id=39202edit=1
#39202 [Bgs]: Temporary tables with references dereference
ID: 39202 User updated by: cpriest at warpmail dot net Reported By: cpriest at warpmail dot net Status: Bogus Bug Type: Arrays related Operating System: Apache 2.0.55 PHP Version: 5.1.6 New Comment: It does, but you call print_r() BEFORE changing it =) I'm calling print_r() twice, once before and once after. The before shows correctly the after shows three objects exist... What am I missing? Previous Comments: [2006-10-20 16:15:24] [EMAIL PROTECTED] it doesn't change the real object. It does, but you call print_r() BEFORE changing it =) [2006-10-20 16:07:16] cpriest at warpmail dot net I think there's some confusion here, if you look at the code source I am only creating two objects. When I call getReferenced() it returns a table which has references to the created objects. When I go to change the name of the object in the second table (the one with references) it doesn't change the real object. For some reason there are then three objects when only two have been created. If this is the expected behavior can you explain why? I don't understand why a third object is being created when I have used references. [2006-10-20 08:42:56] [EMAIL PROTECTED] See my explanation in the previous message. No bug here. [2006-10-20 00:18:12] cpriest at warpmail dot net Expected: -- Array ( [Test] = myClassA Object ( [Name] = Object 3 ) [Test2] = myClassA Object ( [Name] = Object 2 ) ) Array ( [Test] = myClassA Object ( [Name] = Object 3 ) [Test2] = myClassA Object ( [Name] = Object 2 ) ) Actual: Array ( [Test] = myClassA Object ( [Name] = Object 1 ) [Test2] = myClassA Object ( [Name] = Object 2 ) ) Array ( [Test] = myClassA Object ( [Name] = Object 3 ) [Test2] = myClassA Object ( [Name] = Object 2 ) ) [2006-10-19 21:11:57] [EMAIL PROTECTED] Can't reproduce. After the first print_r() I see Object 1 (because the object haven't been changed yet), after ther second call I get Object 3, which is expected too. Hint: when we say expected and actual results we usually mean copy/paste what you see and also attach what you expected to see, not a I expect to see ... 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/39202 -- Edit this bug report at http://bugs.php.net/?id=39202edit=1
#39202 [Bgs]: Temporary tables with references dereference
ID: 39202 User updated by: cpriest at warpmail dot net Reported By: cpriest at warpmail dot net Status: Bogus Bug Type: Arrays related Operating System: Apache 2.0.55 PHP Version: 5.1.6 New Comment: Okay you're right, I'm an idiot, I see my error. I saw something very similar occur in more complicated code and I tried to write a simpler test case for it. This obviously isn't right and doesn't demonstrate properly (nor even demonstrate an issue). I'll come up with something better, sorry Tony! Previous Comments: [2006-10-20 17:15:12] [EMAIL PROTECTED] Where did you manage to find THREE objects here? Array ( [Test] = myClassA Object ( [Name] = Object 3 ) [Test2] = myClassA Object ( [Name] = Object 2 ) ) [2006-10-20 17:04:26] cpriest at warpmail dot net It does, but you call print_r() BEFORE changing it =) I'm calling print_r() twice, once before and once after. The before shows correctly the after shows three objects exist... What am I missing? [2006-10-20 16:15:24] [EMAIL PROTECTED] it doesn't change the real object. It does, but you call print_r() BEFORE changing it =) [2006-10-20 16:07:16] cpriest at warpmail dot net I think there's some confusion here, if you look at the code source I am only creating two objects. When I call getReferenced() it returns a table which has references to the created objects. When I go to change the name of the object in the second table (the one with references) it doesn't change the real object. For some reason there are then three objects when only two have been created. If this is the expected behavior can you explain why? I don't understand why a third object is being created when I have used references. [2006-10-20 08:42:56] [EMAIL PROTECTED] See my explanation in the previous message. No bug here. 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/39202 -- Edit this bug report at http://bugs.php.net/?id=39202edit=1
#39202 [Bgs]: Temporary tables with references dereference
ID: 39202 User updated by: cpriest at warpmail dot net Reported By: cpriest at warpmail dot net Status: Bogus Bug Type: Arrays related Operating System: Apache 2.0.55 PHP Version: 5.1.6 New Comment: I cannot reproduce, I'll give up. Sorry to waste your time Tony. Previous Comments: [2006-10-20 17:48:14] cpriest at warpmail dot net Okay you're right, I'm an idiot, I see my error. I saw something very similar occur in more complicated code and I tried to write a simpler test case for it. This obviously isn't right and doesn't demonstrate properly (nor even demonstrate an issue). I'll come up with something better, sorry Tony! [2006-10-20 17:15:12] [EMAIL PROTECTED] Where did you manage to find THREE objects here? Array ( [Test] = myClassA Object ( [Name] = Object 3 ) [Test2] = myClassA Object ( [Name] = Object 2 ) ) [2006-10-20 17:04:26] cpriest at warpmail dot net It does, but you call print_r() BEFORE changing it =) I'm calling print_r() twice, once before and once after. The before shows correctly the after shows three objects exist... What am I missing? [2006-10-20 16:15:24] [EMAIL PROTECTED] it doesn't change the real object. It does, but you call print_r() BEFORE changing it =) [2006-10-20 16:07:16] cpriest at warpmail dot net I think there's some confusion here, if you look at the code source I am only creating two objects. When I call getReferenced() it returns a table which has references to the created objects. When I go to change the name of the object in the second table (the one with references) it doesn't change the real object. For some reason there are then three objects when only two have been created. If this is the expected behavior can you explain why? I don't understand why a third object is being created when I have used references. 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/39202 -- Edit this bug report at http://bugs.php.net/?id=39202edit=1
#39202 [NEW]: Temporary tables with references dereference
From: cpriest at warpmail dot net Operating system: Apache 2.0.55 PHP version: 5.1.6 PHP Bug Type: Arrays related Bug description: Temporary tables with references dereference Description: References in temporary tables de-reference their references upon crossing function boundaries Reproduce code: --- ?php class myClassA { public $Name = ''; function __construct($Name) { $this-Name = $Name; } } global $tblData; $tblData = array( 'Test' = new myClassA('Object 1'), 'Test2' = new myClassA('Object 2'), ); function getReferenced() { global $tblData; $tblData2 = array( 'Test' = $tblData['Test'], 'Test2' = $tblData['Test2'], ); return $tblData2; } echo 'plaintext'; print_r($tblData); $tblData2 = getReferenced(); $tblData2['Test']-Name = 'Object 3'; print_r($tblData2); ? Expected result: I expect there to be only two objects at the end of the call, one with a Name of 'Object 3' and one with a Name of 'Object 2' Actual result: -- Three objects exist, 'Object 1', 'Object 2', and 'Object 3' -- Edit bug report at http://bugs.php.net/?id=39202edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39202r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39202r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39202r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39202r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39202r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39202r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=39202r=needscript Try newer version:http://bugs.php.net/fix.php?id=39202r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39202r=support Expected behavior:http://bugs.php.net/fix.php?id=39202r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39202r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39202r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39202r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39202r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39202r=dst IIS Stability:http://bugs.php.net/fix.php?id=39202r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39202r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39202r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39202r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=39202r=mysqlcfg
#39202 [Fbk-Opn]: Temporary tables with references dereference
ID: 39202 User updated by: cpriest at warpmail dot net Reported By: cpriest at warpmail dot net -Status: Feedback +Status: Open Bug Type: Arrays related Operating System: Apache 2.0.55 PHP Version: 5.1.6 New Comment: Expected: -- Array ( [Test] = myClassA Object ( [Name] = Object 3 ) [Test2] = myClassA Object ( [Name] = Object 2 ) ) Array ( [Test] = myClassA Object ( [Name] = Object 3 ) [Test2] = myClassA Object ( [Name] = Object 2 ) ) Actual: Array ( [Test] = myClassA Object ( [Name] = Object 1 ) [Test2] = myClassA Object ( [Name] = Object 2 ) ) Array ( [Test] = myClassA Object ( [Name] = Object 3 ) [Test2] = myClassA Object ( [Name] = Object 2 ) ) Previous Comments: [2006-10-19 21:11:57] [EMAIL PROTECTED] Can't reproduce. After the first print_r() I see Object 1 (because the object haven't been changed yet), after ther second call I get Object 3, which is expected too. Hint: when we say expected and actual results we usually mean copy/paste what you see and also attach what you expected to see, not a I expect to see ... [2006-10-19 20:56:01] cpriest at warpmail dot net Description: References in temporary tables de-reference their references upon crossing function boundaries Reproduce code: --- ?php class myClassA { public $Name = ''; function __construct($Name) { $this-Name = $Name; } } global $tblData; $tblData = array( 'Test' = new myClassA('Object 1'), 'Test2' = new myClassA('Object 2'), ); function getReferenced() { global $tblData; $tblData2 = array( 'Test' = $tblData['Test'], 'Test2' = $tblData['Test2'], ); return $tblData2; } echo 'plaintext'; print_r($tblData); $tblData2 = getReferenced(); $tblData2['Test']-Name = 'Object 3'; print_r($tblData2); ? Expected result: I expect there to be only two objects at the end of the call, one with a Name of 'Object 3' and one with a Name of 'Object 2' Actual result: -- Three objects exist, 'Object 1', 'Object 2', and 'Object 3' -- Edit this bug report at http://bugs.php.net/?id=39202edit=1
#34721 [Fbk-Csd]: fpassthru() or readfile() returns invalid data
ID: 34721 User updated by: cpriest at warpmail dot net Reported By: cpriest at warpmail dot net -Status: Feedback +Status: Closed Bug Type: Output Control Operating System: Redhat Enterprise 4 PHP Version: 5.0.5 New Comment: CVS Version fixed the problem, thanks! Previous Comments: [2005-10-03 22:13:02] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.0-win32-latest.zip [2005-10-03 22:04:15] cpriest at warpmail dot net Description: Calling fpassthru() or readfile() on a file returns a truncated file, using: echo file_get_contents(); and it works fine. I'm assuming its a binary issue, I know it has problems with pdf documents. Reproduce code: --- readfile($filepath); // Returns unreadable pdf file Expected result: Uncorrupted file returned to browser Actual result: -- Corrupted file returned to browser -- Edit this bug report at http://bugs.php.net/?id=34721edit=1
#34721 [NEW]: fpassthru() or readfile() returns invalid data
From: cpriest at warpmail dot net Operating system: Redhat Enterprise 4 PHP version: 5.0.5 PHP Bug Type: Output Control Bug description: fpassthru() or readfile() returns invalid data Description: Calling fpassthru() or readfile() on a file returns a truncated file, using: echo file_get_contents(); and it works fine. I'm assuming its a binary issue, I know it has problems with pdf documents. Reproduce code: --- readfile($filepath); // Returns unreadable pdf file Expected result: Uncorrupted file returned to browser Actual result: -- Corrupted file returned to browser -- Edit bug report at http://bugs.php.net/?id=34721edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34721r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34721r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34721r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=34721r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=34721r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34721r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34721r=needscript Try newer version: http://bugs.php.net/fix.php?id=34721r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34721r=support Expected behavior: http://bugs.php.net/fix.php?id=34721r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34721r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34721r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=34721r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34721r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=34721r=dst IIS Stability: http://bugs.php.net/fix.php?id=34721r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34721r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34721r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34721r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34721r=mysqlcfg