#47321 [NEW]: (trivial) Consistency in type juggling examples

From: Date: Fri, 06 Feb 2009 00:14:55 +0000
Subject: #47321 [NEW]: (trivial) Consistency in type juggling examples
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-1804@lists.php.net to get a copy of this message
From:             php at webchick dot net
Operating system: N/A
PHP version:      Irrelevant
PHP Bug Type:     Documentation problem
Bug description:  (trivial) Consistency in type juggling examples

Description:
------------
This is *incredibly* trivial, but... ;)

In the type casting section of the "Type Juggling" page
http://us.php.net/manual/en/language.types.type-juggling.php,
there are
four examples of how to do casting with (type):

<?php
$bar = (boolean) $foo;
...
$foo = (int) $bar;
...
$binary = (binary)$string;
...
$fst = (string) $foo;
?>

Is it possible to change "(binary)$string;" to "(binary) $string;" (with a
space) so that it is consistent with the other examples?

This came about because we were discussing Drupal's coding standards at
http://groups.drupal.org/coding-standards-and-best-practices
and we were
looking to PHP.net for guidance. The guidance is pretty clear, except for
this one inconsistency.

My inner neat-freak thanks you. :)

Reproduce code:
---------------
N/A

Expected result:
----------------
N/A

Actual result:
--------------
N/A

-- 
Edit bug report at http://bugs.php.net/?id=47321&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        http://bugs.php.net/fix.php?id=47321&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        http://bugs.php.net/fix.php?id=47321&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        http://bugs.php.net/fix.php?id=47321&r=trysnapshot60
Fixed in CVS:                        http://bugs.php.net/fix.php?id=47321&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47321&r=needdocs
Fixed in release:                    http://bugs.php.net/fix.php?id=47321&r=alreadyfixed
Need backtrace:                      http://bugs.php.net/fix.php?id=47321&r=needtrace
Need Reproduce Script:               http://bugs.php.net/fix.php?id=47321&r=needscript
Try newer version:                   http://bugs.php.net/fix.php?id=47321&r=oldversion
Not developer issue:                 http://bugs.php.net/fix.php?id=47321&r=support
Expected behavior:                   http://bugs.php.net/fix.php?id=47321&r=notwrong
Not enough info:                     http://bugs.php.net/fix.php?id=47321&r=notenoughinfo
Submitted twice:                     http://bugs.php.net/fix.php?id=47321&r=submittedtwice
register_globals:                    http://bugs.php.net/fix.php?id=47321&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=47321&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=47321&r=dst
IIS Stability:                       http://bugs.php.net/fix.php?id=47321&r=isapi
Install GNU Sed:                     http://bugs.php.net/fix.php?id=47321&r=gnused
Floating point limitations:          http://bugs.php.net/fix.php?id=47321&r=float
No Zend Extensions:                  http://bugs.php.net/fix.php?id=47321&r=nozend
MySQL Configuration Error:           http://bugs.php.net/fix.php?id=47321&r=mysqlcfg



Thread (5 messages)

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