--- a/web/lib/Zend/CodeGenerator/Php/File.php Sun Apr 21 10:07:03 2013 +0200
+++ b/web/lib/Zend/CodeGenerator/Php/File.php Sun Apr 21 21:54:24 2013 +0200
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_CodeGenerator
* @subpackage PHP
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: File.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: File.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
/**
* @category Zend
* @package Zend_CodeGenerator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_CodeGenerator_Php_File extends Zend_CodeGenerator_Php_Abstract
@@ -97,7 +97,7 @@
}
/**
- * fromReflectedFilePath() - use this if you intend on generating code generation objects based on the same file.
+ * fromReflectedFileName() - use this if you intend on generating code generation objects based on the same file.
* This will keep previous changes to the file in tact during the same PHP process
*
* @param string $filePath
@@ -110,7 +110,7 @@
$realpath = realpath($filePath);
if ($realpath === false) {
- if ( ($realpath = Zend_Reflection_file::findRealpathInIncludePath($filePath)) === false) {
+ if ( ($realpath = Zend_Reflection_File::findRealpathInIncludePath($filePath)) === false) {
require_once 'Zend/CodeGenerator/Php/Exception.php';
throw new Zend_CodeGenerator_Php_Exception('No file for ' . $realpath . ' was found.');
}
@@ -394,7 +394,7 @@
// if there are markers, put the body into the output
$body = $this->getBody();
- if (preg_match('#/\* Zend_CodeGenerator_Php_File-(.*?)Marker:#', $body)) {
+ if (preg_match('#/\* Zend_CodeGenerator_Php_File-(.*?)Marker#', $body)) {
$output .= $body;
$body = '';
}
@@ -428,6 +428,9 @@
$classes = $this->getClasses();
if (!empty($classes)) {
foreach ($classes as $class) {
+ if($this->getDocblock() == $class->getDocblock()) {
+ $class->setDocblock(null);
+ }
$regex = str_replace('?', $class->getName(), self::$_markerClass);
$regex = preg_quote($regex, '#');
if (preg_match('#'.$regex.'#', $output)) {