150 usleep( self::SLEEP_TIME );
152 $this->latestStatus = self::STATUS_NA;
153 $maxtime = time() + self::PENDING_TIMEOUT;
155 while ( $this->latestStatus == self::STATUS_NA || $this->
isPending( $this->latestStatus ) ) {
156 $exec = $this->
exec(
'status ' . $this->
getName() );
157 if ( $exec !==
false ) {
158 if ( count( $exec ) > 1 ) {
159 $this->latestStatus = self::STATUS_NOT_EXIST;
162 $this->latestStatus = $exec[0];
165 if ( $timeout && $maxtime < time() ) {
170 if ( $this->latestStatus == self::STATUS_NOT_EXIST ) {
171 $this->latestError =
'Error 3: The specified service does not exist as an installed service.';
172 $this->latestStatus = self::STATUS_NA;
350 global $bearsamppRegistry;
353 if ( $infos ===
false ) {
357 $infosNssm = array();
359 self::INFO_APPLICATION,
360 self::INFO_APP_PARAMETERS,
363 foreach ( $infosKeys as $infoKey ) {
365 $exists = $bearsamppRegistry->exists(
367 'SYSTEM\CurrentControlSet\Services\\' . $this->
getName() .
'\Parameters',
371 $value = $bearsamppRegistry->getValue(
373 'SYSTEM\CurrentControlSet\Services\\' . $this->
getName() .
'\Parameters',
377 $infosNssm[$infoKey] = $value;
380 if ( !isset( $infosNssm[self::INFO_APPLICATION] ) ) {
705 $paths .=
$bearsamppBins->getApache()->getSymlinkPath() .
'/bin;';
711 $paths .=
$bearsamppBins->getPhp()->getSymlinkPath() .
'/imagick;';
716 if ($bearsamppTools->getComposer()->isEnable()) {
717 $paths .= $bearsamppTools->getComposer()->getSymlinkPath() .
';';
718 $paths .= $bearsamppTools->getComposer()->getSymlinkPath() .
'/vendor/bin;';
720 if ($bearsamppTools->getGhostscript()->isEnable()) {
721 $paths .= $bearsamppTools->getGhostscript()->getSymlinkPath() .
'/bin;';
723 if ($bearsamppTools->getGit()->isEnable()) {
724 $paths .= $bearsamppTools->getGit()->getSymlinkPath() .
'/bin;';
726 if ($bearsamppTools->getNgrok()->isEnable()) {
727 $paths .= $bearsamppTools->getNgrok()->getSymlinkPath() .
';';
729 if ($bearsamppTools->getPerl()->isEnable()) {
730 $paths .= $bearsamppTools->getPerl()->getSymlinkPath() .
'/perl/site/bin;';
731 $paths .= $bearsamppTools->getPerl()->getSymlinkPath() .
'/perl/bin;';
732 $paths .= $bearsamppTools->getPerl()->getSymlinkPath() .
'/c/bin;';
734 if ($bearsamppTools->getPython()->isEnable()) {
735 $paths .= $bearsamppTools->getPython()->getSymlinkPath() .
'/bin;';
737 if ($bearsamppTools->getRuby()->isEnable()) {
738 $paths .= $bearsamppTools->getRuby()->getSymlinkPath() .
'/bin;';