Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
got rid of dependency on posix module; replaced posix_getpid with get…
Browse files Browse the repository at this point in the history
…mypid
  • Loading branch information
Jacek Spera committed May 31, 2011
1 parent e839d58 commit 6c47441
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/phpsh.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
exit;
}

$missing = array_diff(array('pcre','posix','tokenizer'),
$missing = array_diff(array('pcre','tokenizer'),
get_loaded_extensions());
if ($missing) {
fwrite(STDERR, 'Fatal error: phpsh requires the following extensions: '.
Expand Down Expand Up @@ -568,7 +568,7 @@ function interactive_loop() {
}

if ($this->fork_every_command) {
$parent_pid = posix_getpid();
$parent_pid = getmypid();
$pid = pcntl_fork();
$evalue = null;
if ($pid) {
Expand All @@ -585,7 +585,7 @@ function interactive_loop() {
}

// if we are still alive..
$childpid = posix_getpid();
$childpid = getmypid();
fwrite($this->_comm_handle, "child $childpid\n");
}
} else {
Expand Down

0 comments on commit 6c47441

Please sign in to comment.