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

Bug #16446 Use of split() causes E_DEPRECATED warnings
Submitted: 2009-07-17 09:26 UTC Modified: 2009-08-08 06:02 UTC
From: aharvey Assigned: ashnazg
Status: Closed Package: PhpDocumentor (version 1.4.2)
PHP Version: 5.3.0 OS: Irrelevant
Roadmaps: 1.4.3    
Subscription  



Patch phpdocumentor-smarty-split-replacements Revisions
Revision 2009-07-17 09:27 UTC
Developer aharvey
 
Download patch

Index: phpDocumentor/Smarty-2.6.0/libs/plugins/function.fetch.php
===================================================================
--- phpDocumentor/Smarty-2.6.0/libs/plugins/function.fetch.php	(revision 284238)
+++ phpDocumentor/Smarty-2.6.0/libs/plugins/function.fetch.php	(working copy)
@@ -177,12 +177,12 @@
 						$content .= fgets($fp,4096);
 					}
 					fclose($fp);					
-					$csplit = split("\r\n\r\n",$content,2);
+					$csplit = explode("\r\n\r\n", $content, 2);
 
 					$content = $csplit[1];
 					
 					if(!empty($params['assign_headers'])) {
-						$smarty->assign($params['assign_headers'],split("\r\n",$csplit[0]));
+						$smarty->assign($params['assign_headers'], explode("\r\n", $csplit[0]));
 					}
 				}
 			} else {