[PHP-DOC] #36758 [NEW]: eval not behaving like in documantation
From: khan dot shadow at gmail dot com Operating system: PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: eval not behaving like in documantation Description: In case of a parse error in the evaluated code, eval() returns FALSE. In case of a fatal error in the evaluated code, the whole script exits. Reproduce code: --- $page = 'for(\$i=0;\$i=2;\$i++){?'; $page .= 'btest code/b'; $page .= '? } ?'; ' $cad = $page; $cad = @eval($cad)==false ? echo $cad : ob_get_contents(); Expected result: $cad should be $cad='btest code/bbtest code/bbtest code/b' Actual result: -- $cad is echod to the screen -- Edit bug report at http://bugs.php.net/?id=36758edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36758r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36758r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36758r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36758r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36758r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36758r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=36758r=needscript Try newer version:http://bugs.php.net/fix.php?id=36758r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36758r=support Expected behavior:http://bugs.php.net/fix.php?id=36758r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36758r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36758r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36758r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36758r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36758r=dst IIS Stability:http://bugs.php.net/fix.php?id=36758r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36758r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36758r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36758r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=36758r=mysqlcfg
[PHP-DOC] cvs: phpdoc /en/reference/ssh2/functions ssh2-sftp-mkdir.xml ssh2-sftp-rmdir.xml
betzThu Mar 16 11:10:22 2006 UTC Modified files: /phpdoc/en/reference/ssh2/functions ssh2-sftp-mkdir.xml ssh2-sftp-rmdir.xml Log: typo in examples, spotted byuser notes http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/ssh2/functions/ssh2-sftp-mkdir.xml?r1=1.4r2=1.5diff_format=u Index: phpdoc/en/reference/ssh2/functions/ssh2-sftp-mkdir.xml diff -u phpdoc/en/reference/ssh2/functions/ssh2-sftp-mkdir.xml:1.4 phpdoc/en/reference/ssh2/functions/ssh2-sftp-mkdir.xml:1.5 --- phpdoc/en/reference/ssh2/functions/ssh2-sftp-mkdir.xml:1.4 Thu Dec 30 19:27:07 2004 +++ phpdoc/en/reference/ssh2/functions/ssh2-sftp-mkdir.xml Thu Mar 16 11:10:22 2006 @@ -1,5 +1,5 @@ ?xml version='1.0' encoding='iso-8859-1'? -!-- $Revision: 1.4 $ -- +!-- $Revision: 1.5 $ -- !-- Generated by xml_proto.php v2.1. Found in /scripts directory of phpdoc. -- refentry id=function.ssh2-sftp-mkdir refnamediv @@ -32,7 +32,7 @@ programlisting role=php ![CDATA[ ?php -$connection = ssh2_connet('shell.example.com', 22); +$connection = ssh2_connect('shell.example.com', 22); ssh2_auth_password($connection, 'username', 'password'); $sftp = ssh2_sftp($connection); http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/ssh2/functions/ssh2-sftp-rmdir.xml?r1=1.3r2=1.4diff_format=u Index: phpdoc/en/reference/ssh2/functions/ssh2-sftp-rmdir.xml diff -u phpdoc/en/reference/ssh2/functions/ssh2-sftp-rmdir.xml:1.3 phpdoc/en/reference/ssh2/functions/ssh2-sftp-rmdir.xml:1.4 --- phpdoc/en/reference/ssh2/functions/ssh2-sftp-rmdir.xml:1.3 Tue Jan 4 10:36:43 2005 +++ phpdoc/en/reference/ssh2/functions/ssh2-sftp-rmdir.xml Thu Mar 16 11:10:22 2006 @@ -1,5 +1,5 @@ ?xml version='1.0' encoding='iso-8859-1'? -!-- $Revision: 1.3 $ -- +!-- $Revision: 1.4 $ -- !-- Generated by xml_proto.php v2.1. Found in /scripts directory of phpdoc. -- refentry id=function.ssh2-sftp-rmdir refnamediv @@ -27,7 +27,7 @@ programlisting role=php ![CDATA[ ?php -$connection = ssh2_connet('shell.example.com', 22); +$connection = ssh2_connect('shell.example.com', 22); ssh2_auth_password($connection, 'username', 'password'); $sftp = ssh2_sftp($connection);
[PHP-DOC] #36758 [Opn-Bgs]: eval not behaving like in documantation
ID: 36758 Updated by: [EMAIL PROTECTED] Reported By: khan dot shadow at gmail dot com -Status: Open +Status: Bogus Bug Type:Documentation problem PHP Version: Irrelevant New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Then don't use the echo statement. Previous Comments: [2006-03-16 12:00:53] khan dot shadow at gmail dot com Description: In case of a parse error in the evaluated code, eval() returns FALSE. In case of a fatal error in the evaluated code, the whole script exits. Reproduce code: --- $page = 'for(\$i=0;\$i=2;\$i++){?'; $page .= 'btest code/b'; $page .= '? } ?'; ' $cad = $page; $cad = @eval($cad)==false ? echo $cad : ob_get_contents(); Expected result: $cad should be $cad='btest code/bbtest code/bbtest code/b' Actual result: -- $cad is echod to the screen -- Edit this bug report at http://bugs.php.net/?id=36758edit=1
[PHP-DOC] #36758 [Bgs]: eval not behaving like in documantation
ID: 36758 Updated by: [EMAIL PROTECTED] Reported By: khan dot shadow at gmail dot com Status: Bogus Bug Type:Documentation problem PHP Version: Irrelevant New Comment: There are a lot of non-sense in your post: 1) variables don't have to be escaped inside single quotes, the evaluated code will result to a parse error. 2) you can't use echo in a return context, because echo is a language construct that doesn't behave like a function. 3) your eval() will always be evaluated as false : As of PHP 4, eval() returns NULL unless return is called in the evaluated code. Previous Comments: [2006-03-16 12:12:39] [EMAIL PROTECTED] Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Then don't use the echo statement. [2006-03-16 12:00:53] khan dot shadow at gmail dot com Description: In case of a parse error in the evaluated code, eval() returns FALSE. In case of a fatal error in the evaluated code, the whole script exits. Reproduce code: --- $page = 'for(\$i=0;\$i=2;\$i++){?'; $page .= 'btest code/b'; $page .= '? } ?'; ' $cad = $page; $cad = @eval($cad)==false ? echo $cad : ob_get_contents(); Expected result: $cad should be $cad='btest code/bbtest code/bbtest code/b' Actual result: -- $cad is echod to the screen -- Edit this bug report at http://bugs.php.net/?id=36758edit=1
[PHP-DOC] #36762 [NEW]: php-1.99s.tar.gz in wrong place
From: VJTD3 at VJTD3 dot com Operating system: PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: php-1.99s.tar.gz in wrong place Description: php-1.99s.tar.gz at http://museum.php.net/php2 should be in http://museum.php.net/php1 -- Edit bug report at http://bugs.php.net/?id=36762edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36762r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36762r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36762r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36762r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36762r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36762r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=36762r=needscript Try newer version:http://bugs.php.net/fix.php?id=36762r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36762r=support Expected behavior:http://bugs.php.net/fix.php?id=36762r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36762r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36762r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36762r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36762r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36762r=dst IIS Stability:http://bugs.php.net/fix.php?id=36762r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36762r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36762r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36762r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=36762r=mysqlcfg
[PHP-DOC] #36758 [Bgs]: eval not behaving like in documantation
ID: 36758 User updated by: khan dot shadow at gmail dot com Reported By: khan dot shadow at gmail dot com Status: Bogus Bug Type:Documentation problem PHP Version: Irrelevant New Comment: never mind...problem solved :) Previous Comments: [2006-03-16 16:10:49] [EMAIL PROTECTED] There are a lot of non-sense in your post: 1) variables don't have to be escaped inside single quotes, the evaluated code will result to a parse error. 2) you can't use echo in a return context, because echo is a language construct that doesn't behave like a function. 3) your eval() will always be evaluated as false : As of PHP 4, eval() returns NULL unless return is called in the evaluated code. [2006-03-16 12:12:39] [EMAIL PROTECTED] Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Then don't use the echo statement. [2006-03-16 12:00:53] khan dot shadow at gmail dot com Description: In case of a parse error in the evaluated code, eval() returns FALSE. In case of a fatal error in the evaluated code, the whole script exits. Reproduce code: --- $page = 'for(\$i=0;\$i=2;\$i++){?'; $page .= 'btest code/b'; $page .= '? } ?'; ' $cad = $page; $cad = @eval($cad)==false ? echo $cad : ob_get_contents(); Expected result: $cad should be $cad='btest code/bbtest code/bbtest code/b' Actual result: -- $cad is echod to the screen -- Edit this bug report at http://bugs.php.net/?id=36758edit=1