PHP 4.0 Bug #3430: skript passes its source code to variable
| From: | petr dot husak at meiller dot com | Date: | Tue, 08 Feb 2000 13:57:09 +0000 |
| Subject: | PHP 4.0 Bug #3430: skript passes its source code to variable | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-15305@lists.php.net to get a copy of this message | ||
From: petr.husak@meiller.com
Operating system: hpux 10.20
PHP version: 4.0 Beta 3
PHP Bug Type: Scripting Engine problem
Bug description: skript passes its source code to variable
Skript below has this result:
printer lanmt18 now printing lanmt18-9274. enabled since Nov 11 10:41 fence priority : 0
0 :sthru("lpstat
-planmt18"); $view
=
explode("
",$result); for($i=0;
$i $i++){
echo
"$view[$i]"
.
"
\n"; }
?>
************************************************************
And this is the skript:
<?php
$result = passthru("lpstat -planmt18");
$view = explode(" ",$result);
for($i=0; $i<sizeof($view); $i++){
echo "$view[$i]" . "<br>\n";
}
?>