zf.bat 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. @ECHO off
  2. REM Zend Framework
  3. REM
  4. REM LICENSE
  5. REM
  6. REM This source file is subject to the new BSD license that is bundled
  7. REM with this package in the file LICENSE.txt.
  8. REM It is also available through the world-wide-web at this URL:
  9. REM http://framework.zend.com/license/new-bsd
  10. REM If you did not receive a copy of the license and are unable to
  11. REM obtain it through the world-wide-web, please send an email
  12. REM to license@zend.com so we can send you a copy immediately.
  13. REM
  14. REM Zend
  15. REM Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  16. REM http://framework.zend.com/license/new-bsd New BSD License
  17. REM Test to see if this was installed via pear
  18. SET ZTMPZTMPZTMPZ=@ph
  19. SET TMPZTMPZTMP=%ZTMPZTMPZTMPZ%p_bin@
  20. REM below @php_bin@
  21. FOR %%x IN ("@php_bin@") DO (if %%x=="%TMPZTMPZTMP%" GOTO :NON_PEAR_INSTALLED)
  22. GOTO PEAR_INSTALLED
  23. :NON_PEAR_INSTALLED
  24. REM Assume php.exe is executable, and that zf.php will reside in the
  25. REM same file as this one
  26. SET PHP_BIN=php.exe
  27. SET PHP_DIR=%~dp0
  28. GOTO RUN
  29. :PEAR_INSTALLED
  30. REM Assume this was installed via PEAR and use replacements php_bin & php_dir
  31. SET PHP_BIN=@php_bin@
  32. SET PHP_DIR=@php_dir@
  33. GOTO RUN
  34. :RUN
  35. SET ZF_SCRIPT=%PHP_DIR%\zf.php
  36. "%PHP_BIN%" -d safe_mode=Off -f "%ZF_SCRIPT%" -- %*