Doc #75008 [NEW]: Example code error

From: Date: Mon, 31 Jul 2017 05:14:40 +0000
Subject: Doc #75008 [NEW]: Example code error
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-14874@lists.php.net to get a copy of this message
From: prioriqz at gmail dot com Operating system: irrelevant PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:Example code error Description: ------------ --- From manual page: http://www.php.net/function.preg-match --- In Korean language page: http://php.net/manual/kr/function.preg-match.php Example #4 code has errors see below <?php $str = 'foobar: 2008'; preg_match('/(?<name>\w+): (?<digit>\d+/', $str, $matches); print_r($matches); ?> expected code <?php $str = 'foobar: 2008'; preg_match('/(?<name>\w+): (?<digit>\d+)/', $str, $matches); print_r($matches); ?> -- Edit bug report at https://bugs.php.net/bug.php?id=75008&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75008&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75008&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75008&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=75008&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=75008&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=75008&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=75008&r=needscript Try newer version: https://bugs.php.net/fix.php?id=75008&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=75008&r=support Expected behavior: https://bugs.php.net/fix.php?id=75008&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=75008&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=75008&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=75008&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75008&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=75008&r=dst IIS Stability: https://bugs.php.net/fix.php?id=75008&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=75008&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=75008&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=75008&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=75008&r=mysqlcfg

« previous php.doc.bugs (#14874) next »