Doc #66571 [NEW]: small change on constants examples

From: Date: Fri, 24 Jan 2014 19:16:01 +0000
Subject: Doc #66571 [NEW]: small change on constants examples
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-10883@lists.php.net to get a copy of this message
From:             martinscotta at gmail dot com
Operating system: 
PHP version:      5.6.0alpha1
Package:          Documentation problem
Bug Type:         Documentation Problem
Bug description:small change on constants examples

Description:
------------
---
From manual page: http://www.php.net/migration56.new-features
---

in the example says.. 
<?php
const SENTENCE = 'The value of '.THREE.' is 3';
?>
..but should said..
<?php
const SENTENCE = 'The value of THREE is ' . THREE;
?>

to match the expected output shown below: "The value of THREE is 3"


-- 
Edit bug report at https://bugs.php.net/bug.php?id=66571&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=66571&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=66571&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=66571&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=66571&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=66571&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=66571&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=66571&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=66571&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=66571&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=66571&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=66571&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=66571&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=66571&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66571&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=66571&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=66571&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=66571&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66571&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=66571&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=66571&r=mysqlcfg



Thread (2 messages)

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