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

Bug #20 regexp bug in Generator.php
Submitted: 2003-09-18 12:30 UTC
From: sergey at nikiforov dot net Assigned: alan_k
Status: Closed Package: DB_DataObject
PHP Version: 4.3.1 OS: Win2K
Roadmaps: (Not assigned)    
Subscription  


 [2003-09-18 12:30 UTC] sergey at nikiforov dot net
Description: ------------ in Generator.php lines 459-461 you wrote this code: return preg_replace( '/(\n|\r\n)\s*###START_AUTOCODE\n.*\n\s*###END_AUTOCODE(\n|\r\n)/s', $body,$input); it doesn't work under win platform becouse of missing \r in regexp. The following will work: return preg_replace( '/(\n|\r\n)\s*###START_AUTOCODE(\n|\r\n).*(\n|\r\n)\s*###END_AUTOCODE(\n|\r\n)/s', $body,$input); Reproduce code: --------------- return preg_replace( '/(\n|\r\n)\s*###START_AUTOCODE\n.*\n\s*###END_AUTOCODE(\n|\r\n)/s', $body,$input);

Comments

 [2003-09-18 12:42 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!