Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.2.3

Bug #14625 Autodetect mode in string.php contains incorrect logic
Submitted: 2008-09-09 19:55 UTC
From: stim Assigned: yunosh
Status: Closed Package: Text_Diff (version 1.0.0)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 42 - 20 = ?

 
 [2008-09-09 19:55 UTC] stim (Stim Stim)
Description: ------------ Line 51 to 52 of string.php read: } elseif ($context === false || $context === false) { $mode = $context !== false ? 'context' : 'unified'; } else { This makes no sense and probably should read: } elseif ($context === false || $unified === false) { $mode = $context !== false ? 'context' : 'unified'; } else { for otherwise line 52 will always evaluate to 'unified'. (even though this bug will probably never raise an error in the state)

Comments

 [2008-09-10 08:58 UTC] yunosh (Jan Schneider)
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/Text_Diff