From f96f7aecf80130f90adb55f2d577813768451eb7 Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker Date: Sat, 13 Jun 2015 22:10:18 +0000 Subject: [PATCH] improved examples git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336937 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/pcntl/functions/pcntl-signal.xml | 3 ++- reference/simplexml/examples.xml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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; } ?> ]]>