Notices: This section not yet converted to new layout. Download stats are rolling back out.

This is not the latest version of PHP Service available.

PHP Service

7.2.8

Package test results are passing.

This package was approved by moderator gep13 on 7/19/2018.

PHP is a popular general-purpose scripting language that is especially suited to web development.
Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.

This package will install PHP (Hypertext Preprocessor) with it's default values. Its installed trough dependencies and those can't be passed with extra arguments.

To install PHP Service, run the following command from the command line or from PowerShell:

C:\> choco install php-service --version 7.2.8

To upgrade PHP Service, run the following command from the command line or from PowerShell:

C:\> choco upgrade php-service --version 7.2.8

Files

Hide
  • tools\chocolateyinstall.ps1 Show
    $ErrorActionPreference = 'Stop'; # stop on all errors
    $version    = $env:chocolateyPackageVersion -replace "-beta.*",""
    $installDir = "$($env:ChocolateyToolsLocation)\php{0}" -f ($version -replace '\.').Substring(0,2)
    
    # Actual service installation
    $ErrorActionPreference = 'SilentlyContinue'
    net stop php 2>&1 | Out-Null
    sc delete php 2>&1 | Out-Null
    
    nssm stop php 2>&1 | Out-Null
    nssm remove php confirm 2>&1 | Out-Null
    nssm install php "$($installDir)\php-cgi.exe" 2>&1 | Out-Null
    nssm set php Description "PHP, service managed by NSSM" 2>&1 | Out-Null
    nssm set php AppDirectory  "$installDir" 2>&1 | Out-Null
    nssm set php AppParameters "-b """"127.0.0.1:9000""""" 2>&1 | Out-Null
    nssm start php 2>&1 | Out-Null
    $ErrorActionPreference = 'Stop'
    
    # Throw some barebones info for user
    Write-Host @"
    Config file "$installDir\php.ini"
    
    PHP now can be started and stopped as regular Windows service or through NSSM command interface
    Type one of those commands in CMD or PowerShell for php-service control:
    
    "@  -ForegroundColor Green
    Write-Host "To start service:" -ForegroundColor Green
    Write-Host "    net start php" -ForegroundColor Yellow
    Write-Host "    or" -ForegroundColor Green
    Write-Host "    nssm start php" -ForegroundColor Yellow
    
    Write-Host "To stop service:" -ForegroundColor Green
    Write-Host "    net stop php" -ForegroundColor Yellow
    Write-Host "    or" -ForegroundColor Green
    Write-Host "    nssm stop php" -ForegroundColor Yellow
    
    Write-Host "To restart service do both:" -ForegroundColor Green
    Write-Host "    net stop php" -ForegroundColor Yellow
    Write-Host "    net start php" -ForegroundColor Yellow
    Write-Host "    or" -ForegroundColor Green
    Write-Host "    nssm stop php" -ForegroundColor Yellow
    Write-Host "    nssm start php" -ForegroundColor Yellow
    
  • tools\chocolateyuninstall.ps1 Show
    $ErrorActionPreference = 'SilentlyContinue'
    nssm stop php 2>&1 | Out-Null
    nssm remove php confirm 2>&1 | Out-Null
    $ErrorActionPreference = 'Stop'
    

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Dependencies

Package Maintainer(s)

Software Author(s)

  • PHP Authors

Copyright

2018 © PHP Group

Tags

Release Notes

  • Core:
    . Fixed bug #76534 (PHP hangs on 'illegal string offset on string references
    with an error handler). (Laruence)
    . Fixed bug #76520 (Object creation leaks memory when executed over HTTP).
    (Nikita)
    . Fixed bug #76502 (Chain of mixed exceptions and errors does not serialize
    properly). (Nikita)

  • Date:
    . Fixed bug #76462 (Undefined property: DateInterval::$f). (Anatol)

  • EXIF:
    . Fixed bug #76409 (heap use after free in phpstreamfree). (cmb)
    . Fixed bug #76423 (Int Overflow lead to Heap OverFlow in
    exif
    thumbnail_extract of exif.c). (Stas)
    . Fixed bug #76557 (heap-buffer-overflow (READ of size 48) while reading exif
    data). (Stas)

  • FPM:
    . Fixed bug #73342 (Vulnerability in php-fpm by changing stdin to
    non-blocking). (Nikita)

  • GMP:
    . Fixed bug #74670 (Integer Underflow when unserializing GMP and possible
    other classes). (Nikita)

  • intl:
    . Fixed bug #76556 (getdebuginfo handler for BreakIterator shows wrong
    type). (cmb)

  • mbstring:
    . Fixed bug #76532 (Integer overflow and excessive memory usage
    in mb_strimwidth). (MarcusSchwarz)

  • Opcache:
    . Fixed bug #76477 (Opcache causes empty return value).
    (Nikita, Laruence)

  • PGSQL:
    . Fixed bug #76548 (pgfetchresult did not fetch the next row). (Anatol)

  • phpdbg:
    . Fix arginfo wrt. optional/required parameters. (cmb)

  • Reflection:
    . Fixed bug #76536 (PHP crashes with core dump when throwing exception in
    error handler). (Laruence)
    . Fixed bug #75231 (ReflectionProperty#getValue() incorrectly works with
    inherited classes). (Nikita)

  • Standard:
    . Fixed bug #76505 (arraymergerecursive() is duplicating sub-array keys).
    (Laruence)
    . Fixed bug #71848 (getimagesize with $imageinfo returns false). (cmb)

  • Win32:
    . Fixed bug #76459 (windows linkinfo lacks openbasedir check). (Anatol)

  • ZIP:
    . Fixed bug #76461 (OPSYSZCPM defined instead of OPSYS_CPM).
    (Dennis Birkholz, Remi)

Version History

Version Downloads Last updated Status
PHP Service 7.2.10 51 Friday, September 14, 2018 approved
PHP Service 7.2.9 32 Friday, August 17, 2018 approved
PHP Service 7.2.8 42 Thursday, July 19, 2018 approved
PHP Service 7.2.7 40 Thursday, June 21, 2018 approved
php-service (Install) 7.2.5 83 Wednesday, June 6, 2018 approved

Discussion for the PHP Service Package

Ground rules:

  • This discussion is only about PHP Service and the PHP Service package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or PHP Service, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok