Project

General

Profile

Actions

Bug #20392

closed

cli_dispatch.phpsh: server variable $_SERVER['PWD'] on windows systems not available

Added by Tobias Klepp over 15 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-05-05
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

In the CLI Interface (cli_dispatch.phpsh) is the server variable $_SERVER['PWD'] on windows systems not available. PHP throw a notice, because the script don't fetch the unset variable. Then the script throw a lot of warings "Can not modify header information...". The problem is also in the TYPO3 version 4.2.6.

example for a better solution (line 68 in cli_dispatch.phpsh)

// on windows don't exist $_SERVER['PWD']. This throw a php notice
// check the key existence with array_key_exists.
if (array_key_exists('PWD', $_SERVER)) {
$workingDirectory = $_SERVER['PWD'] ? $_SERVER['PWD'] : getcwd();
}
else {
$workingDirectory = getcwd();
}
(issue imported from #M11031)

Actions #1

Updated by Andreas Heissenberger over 12 years ago

  • Target version deleted (0)

Problem still exists in typo3 version 4.6.5 - here a quickfix without modifying the typo3 src - works with all versions:

Wrapper to call the scheduler script - eg.* typo3-scheduler.cmd*:

@echo off
pushd C:\inetpub\wwwroot
FOR /F "tokens=*" %%i in ('cd') do SET PWD=%%i
php typo3\cli_dispatch.phpsh scheduler
popd

Actions #2

Updated by Gerrit Code Review over 11 years ago

  • Status changed from New to Under Review

Patch set 2 for branch TYPO3_4-7 has been pushed to the review server.
It is available at https://review.typo3.org/19771

Actions #3

Updated by Nicole Cordes over 11 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #4

Updated by Gerrit Code Review over 11 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch TYPO3_4-5 has been pushed to the review server.
It is available at https://review.typo3.org/19772

Actions #5

Updated by Nicole Cordes over 11 years ago

  • Status changed from Under Review to Resolved
Actions #6

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF