Zend Framework

zf.sh - problems executing if its folder name has whitespaces

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.8.1
  • Fix Version/s: 1.9.0
  • Component/s: Zend_Tool
  • Labels:
    None
  • Fix Version Priority:
    Should Have

Description

if the the PHP_DIR includes whitespaces the script fails to be executed.

Activity

Hide
Satoru Yoshida added a comment -

The last line of zf.sh may cause this problem.

$PHP_BIN -d safe_mode=Off -f $PHP_DIR/zf.php -- $@

It seems to have bad influence on MacOS Edition of Zend Studio for Eclipse 7.0.0 Early Access when creating project.

Show
Satoru Yoshida added a comment - The last line of zf.sh may cause this problem.
$PHP_BIN -d safe_mode=Off -f $PHP_DIR/zf.php -- $@
It seems to have bad influence on MacOS Edition of Zend Studio for Eclipse 7.0.0 Early Access when creating project.
Hide
Roy Ganor added a comment -

As a work around one can double quote the $PHP_DIR/zf.php section in the file.

so this line should be altered to
$PHP_BIN -d safe_mode=Off -f "$PHP_DIR/zf.php" – $@

Show
Roy Ganor added a comment - As a work around one can double quote the $PHP_DIR/zf.php section in the file. so this line should be altered to $PHP_BIN -d safe_mode=Off -f "$PHP_DIR/zf.php" – $@
Hide
Satoru Yoshida added a comment - - edited

Thank you, Roy.
Solved in SVN r16195

Show
Satoru Yoshida added a comment - - edited Thank you, Roy. Solved in SVN r16195
Hide
Shahar Evron added a comment -

The problem still exists because $PHP_BIN should be quoted for spaces as well.

Show
Shahar Evron added a comment - The problem still exists because $PHP_BIN should be quoted for spaces as well.
Hide
Shahar Evron added a comment -

Fixed in trunk rev 16770

Show
Shahar Evron added a comment - Fixed in trunk rev 16770

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: