All code has been commented out for at least 5 years, some code even from the very beginning.
Close #4139
}
}
- //for ($i = 0; $i < 2; $i++) {
$br = $this->getDocument()->createElement('br');
$paragraph->appendChild($br);
- //}
}
DOMUtil::removeNode($paragraph, true);
// store the compressed data immediately following the file header
$header .= $compressedData;
- // complete the file record by adding an additional footer directly following the file data
- //$header .= pack("V", $crc);
- //$header .= pack("V", $sizeCompressed);
- //$header .= pack("V", $sizeUncompressed);
-
// store the completed file record in the $headers array
$this->headers[] = $header;
// delete or alter tables
foreach ($entries as $entry) {
// don't alter table if it should be dropped
- if (!empty($entry['sqlColumn'])/* || !empty($entry['sqlIndex'])*/) {
+ if (!empty($entry['sqlColumn'])) {
$isDropped = false;
foreach ($entries as $entry2) {
if (
break;
case 'object access':
- if (/*strpos($values[$i], '$') !== false || */ \strpos($values[$i], '@@') !== false) {
+ if (\strpos($values[$i], '@@') !== false) {
throw new SystemException(
static::formatSyntaxError(
"unexpected '->" . $values[$i] . "' in tag '" . $tag . "'",
// perform the actual regex pattern matching.
$range = '(((' . $pattern . ')|(\*\/' . $step . ')?)|(((' . $pattern . ')-(' . $pattern . '))(\/' . $step . ')?))';
- // $longPattern prototype: ^\d+(,\d)*$
- // $longPattern = '/^(?<!,)'.$range.'+(,'.$range.')*$/i'; // with assertions?
- // $longPattern = '/^'.$range.'+(,'.$range.')*$/i'; / does not work on some php installations
$longPattern = '/^' . $range . '(,' . $range . ')*$/i';
if ($value != '*' && !\preg_match($longPattern, $value)) {
if (isset($rawExifData['FocalLength']) && \is_string($rawExifData['FocalLength'])) {
$exifData['FocalLength'] = self::convertExifRational($rawExifData['FocalLength']);
}
- /*if (isset($rawExifData['ShutterSpeedValue']) && is_string($rawExifData['ShutterSpeedValue'])) {
- // To convert this value to ordinary 'Shutter Speed'; calculate this value's power of 2, then reciprocal.
- // For example, if value is '4', shutter speed is 1/(2^4)=1/16 second. (signed rational)
- $exifData['ShutterSpeedValue'] = '1/' . round(pow(2, self::convertExifRational($rawExifData['ShutterSpeedValue'])), 0);
- }*/
if (isset($rawExifData['ISOSpeedRatings'])) {
// CCD sensitivity equivalent to Ag-Hr film speedrate. (unsigned short)
$exifData['ISOSpeedRatings'] = \intval($rawExifData['ISOSpeedRatings']);
$target = \explode('/', $targetDir);
$relPath = '';
- //for ($i = max(count($current), count($target)) - 1; $i >= 0; $i--) {
for ($i = 0, $max = \max(\count($current), \count($target)); $i < $max; $i++) {
if (isset($current[$i]) && isset($target[$i])) {
if ($current[$i] != $target[$i]) {
}
$sourceFile = new GZipFile($gzipped, 'rb');
- //$filesize = $sourceFile->getFileSize();
$targetFile = new File($destination);
while (!$sourceFile->eof()) {
$targetFile->write($sourceFile->read(512), 512);