#37688 [NEW]: ×¢ÊÍ´íÎó

From: Date: Sat, 03 Jun 2006 15:18:06 +0000
Subject: #37688 [NEW]: ×¢ÊÍ´íÎó
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969373170@lists.php.net to get a copy of this message
From: cheneyforever at yahoo dot com dot cn Operating system: Windows XP SP2 PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: ×¢ÊÍ´íÎó Description: ------------ fwriteº¯Êý Àý×ÓÓÐÒ»´¦×¢ÊÍ´íÎó // ÔÚÕâ¸öÀý×ÓÀÎÒÃǽ«Ê¹ÓÃÌí¼Óģʽ´ò¿ª$filename£¬ // Òò´Ë£¬ÎļþÖ¸Õ뽫»áÔÚÎļþµÄ¿ªÍ·£¬<=======Ó¦¸ÃΪ½áβ // ÄǾÍÊǵ±ÎÒÃÇʹÓÃfwrite()µÄʱºò£¬$somecontent½«ÒªÐ´ÈëµÄµØ·½¡£ if (!$handle = fopen($filename, 'a')) { echo "²»ÄÜ´ò¿ªÎļþ $filename"; exit; } Reproduce code: --------------- fwriteº¯Êý Àý×ÓÓÐÒ»´¦×¢ÊÍ´íÎó // ÔÚÕâ¸öÀý×ÓÀÎÒÃǽ«Ê¹ÓÃÌí¼Óģʽ´ò¿ª$filename£¬ // Òò´Ë£¬ÎļþÖ¸Õ뽫»áÔÚÎļþµÄ¿ªÍ·£¬<=======Ó¦¸ÃΪ½áβ // ÄǾÍÊǵ±ÎÒÃÇʹÓÃfwrite()µÄʱºò£¬$somecontent½«ÒªÐ´ÈëµÄµØ·½¡£ if (!$handle = fopen($filename, 'a')) { echo "²»ÄÜ´ò¿ªÎļþ $filename"; exit; } Expected result: ---------------- fwriteº¯Êý Àý×ÓÓÐÒ»´¦×¢ÊÍ´íÎó // ÔÚÕâ¸öÀý×ÓÀÎÒÃǽ«Ê¹ÓÃÌí¼Óģʽ´ò¿ª$filename£¬ // Òò´Ë£¬ÎļþÖ¸Õ뽫»áÔÚÎļþµÄ¿ªÍ·£¬<=======Ó¦¸ÃΪ½áβ // ÄǾÍÊǵ±ÎÒÃÇʹÓÃfwrite()µÄʱºò£¬$somecontent½«ÒªÐ´ÈëµÄµØ·½¡£ if (!$handle = fopen($filename, 'a')) { echo "²»ÄÜ´ò¿ªÎļþ $filename"; exit; } Actual result: -------------- fwriteº¯Êý Àý×ÓÓÐÒ»´¦×¢ÊÍ´íÎó // ÔÚÕâ¸öÀý×ÓÀÎÒÃǽ«Ê¹ÓÃÌí¼Óģʽ´ò¿ª$filename£¬ // Òò´Ë£¬ÎļþÖ¸Õ뽫»áÔÚÎļþµÄ¿ªÍ·£¬<=======Ó¦¸ÃΪ½áβ // ÄǾÍÊǵ±ÎÒÃÇʹÓÃfwrite()µÄʱºò£¬$somecontent½«ÒªÐ´ÈëµÄµØ·½¡£ if (!$handle = fopen($filename, 'a')) { echo "²»ÄÜ´ò¿ªÎļþ $filename"; exit; } -- Edit bug report at http://bugs.php.net/?id=37688&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37688&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37688&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37688&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37688&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37688&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37688&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37688&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37688&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37688&r=support Expected behavior: http://bugs.php.net/fix.php?id=37688&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37688&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37688&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37688&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37688&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37688&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37688&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37688&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37688&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37688&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37688&r=mysqlcfg

« previous php.doc (#969373170) next »