diff --git a/reference/pcntl/functions/pcntl-signal.xml b/reference/pcntl/functions/pcntl-signal.xml index c7c184f6b5..7e283cfd17 100644 --- a/reference/pcntl/functions/pcntl-signal.xml +++ b/reference/pcntl/functions/pcntl-signal.xml @@ -165,9 +165,10 @@ pcntl_signal(SIGUSR1, "sig_handler"); // or use an object, available as of PHP 4.3.0 // pcntl_signal(SIGUSR1, array($obj, "do_something")); -echo"Generating signal SIGTERM to self...\n"; +echo"Generating signal SIGUSR1 to self...\n"; // send SIGUSR1 to current process id +// posix_* functions require the posix extension posix_kill(posix_getpid(), SIGUSR1); echo "Done\n"; diff --git a/reference/simplexml/examples.xml b/reference/simplexml/examples.xml index f830823fe2..6cc9f75b6f 100644 --- a/reference/simplexml/examples.xml +++ b/reference/simplexml/examples.xml @@ -253,7 +253,7 @@ include 'example.php'; $movies = new SimpleXMLElement($xmlstr); foreach ($movies->xpath('//character') as $character) { - echo $character->name, 'played by ', $character->actor, PHP_EOL; + echo $character->name, ' played by ', $character->actor, PHP_EOL; } ?> ]]>