Bug #51604 [PATCH]: newline in end of header is shown in start of message
Edit report at http://bugs.php.net/bug.php?id=51604&edit=1 ID: 51604 Patch added by: degeb...@php.net Reported by: pavol at klacansky dot com Summary: newline in end of header is shown in start of message Status: Open Type: Bug Package: Mail related Operating System: Ubuntu PHP Version: 5.3.2 New Comment: The following patch has been added/updated: Patch Name: php_bug51604.diff Revision: 1271858442 URL: http://bugs.php.net/patch-display.php?bug=51604&patch=php_bug51604.diff&revision=1271858442 Previous Comments: [2010-04-19 20:50:47] pavol at klacansky dot com Actual result: -- \nHallo [2010-04-19 20:49:55] pavol at klacansky dot com Description: if I have a newline (\n) at the end of last header, it will show to start of message of mail Test script: --- Expected result: Hallo Actual result: -- Hallo -- Edit this bug report at http://bugs.php.net/bug.php?id=51604&edit=1
Bug #52015 [PATCH]: Ending date is ignored while iterating DatePeriod
Edit report at http://bugs.php.net/bug.php?id=52015&edit=1 ID: 52015 Patch added by: degeb...@php.net Reported by: ko dot fivestar at gmail dot com Summary: Ending date is ignored while iterating DatePeriod Status: Open Type: Bug Package: Date/time related Operating System: Ubuntu 10.04 PHP Version: 5.3.2 New Comment: The following patch has been added/updated: Patch Name: php_bug52015.diff Revision: 1275919428 URL: http://bugs.php.net/patch-display.php?bug=52015&patch=php_bug52015.diff&revision=1275919428 Previous Comments: [2010-06-07 16:03:44] degeb...@php.net Whether or not it's a bug is debatable. It could be considered a half-open interval (which would then make it a documentation issue). Changing it to a closed interval would break backwards compatibility. It would probably be better adding one more option to DatePeriod that allows the inclusion of the end date. The attached patch implements that. [2010-06-07 13:56:17] ko dot fivestar at gmail dot com Description: When passing DateTime objects to first and third argument of DatePeriod constructor, the specified date on the third argument is not being interated when both DateTime object contains same time value. After looking through ext/date/php_date.c, date_period_it_has_more() function (line 1831) had following code: --- return object->start->sse < object->end->sse ? SUCCESS : FAILURE; --- While the operator "<" is currently used to compare values, operator "<=" is more appropriate for this content. Test script: --- $period = new \DatePeriod( new \DateTime('2010-06-01'), new \DateInterval('P1D'), new \DateTime('2010-06-03') ); foreach ($period as $day) { echo $day->format('Y-m-d') . "\n"; } Expected result: 2010-06-01 2010-06-02 2010-06-03 Actual result: -- 2010-06-01 2010-06-02 -- Edit this bug report at http://bugs.php.net/bug.php?id=52015&edit=1
#50558 [NEW]: Broken object model when extending tidy
From: degeb...@php.net Operating system: Irrelevant PHP version: 5.3.1 PHP Bug Type: Class/Object related Bug description: Broken object model when extending tidy Description: When extending the class tidy (http://docs.php.net/class.tidy) with a subtype MyTidy, the PHP engine fails type checks for MyTidy (probably easier to explain using code). This is inconsistent with normal behavior in the object model. is_a($o, get_class($o)) should always be true if $o is an object, that is an object should always be an instance of its own class. Reproduce code: --- NULL ["value"]=> NULL } Actual result: -- bool(false) string(6) "MyTidy" PHP Catchable fatal error: Argument 1 passed to doSomething() must be an instance of MyTidy, instance of tidy given, called in /home/daniel/test.php on line 16 and defined in /home/daniel/test.php on line 7 Catchable fatal error: Argument 1 passed to doSomething() must be an instance of MyTidy, instance of tidy given, called in /home/daniel/test.php on line 16 and defined in /home/daniel/test.php on line 7 -- Edit bug report at http://bugs.php.net/?id=50558&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50558&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50558&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50558&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50558&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50558&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50558&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50558&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50558&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50558&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50558&r=support Expected behavior: http://bugs.php.net/fix.php?id=50558&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50558&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50558&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50558&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50558&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=50558&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50558&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50558&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50558&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50558&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50558&r=mysqlcfg