svn: /phpdoc/en/trunk/reference/ datetime/functions/strftime.xml reflection/reflectionfunction/invokeargs.xml
reflection/reflectionfunction/tostring.xml sem/functions/shm-attach.xml
| From: | Peter Cowburn | Date: | Mon, 25 Oct 2010 19:41:39 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/ datetime/functions/strftime.xml reflection/reflectionfunction/invokeargs.xml reflection/reflectionfunction/tostring.xml sem/functions/shm-attach.xml |
||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-7335@lists.php.net to get a copy of this message | ||
salathe Mon, 25 Oct 2010 19:41:39 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=304888
Log:
CS
Changed paths:
U phpdoc/en/trunk/reference/datetime/functions/strftime.xml
U phpdoc/en/trunk/reference/reflection/reflectionfunction/invokeargs.xml
U phpdoc/en/trunk/reference/reflection/reflectionfunction/tostring.xml
U phpdoc/en/trunk/reference/sem/functions/shm-attach.xml
Modified: phpdoc/en/trunk/reference/datetime/functions/strftime.xml
===================================================================
--- phpdoc/en/trunk/reference/datetime/functions/strftime.xml 2010-10-25 19:38:17 UTC (rev 304887)
+++ phpdoc/en/trunk/reference/datetime/functions/strftime.xml 2010-10-25 19:41:39 UTC (rev 304888)
@@ -463,9 +463,8 @@
// Check for Windows and only attempt to replace
// the %e modifiers if they exists in the format
-if(strtoupper(substr(PHP_OS, 0, 3)) == 'WIN' && strpos($format, '%e')
!== false)
-{
- $format = str_replace('%e', '%#d', $format);
+if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN' && strpos($format, '%e')
!== false) {
+ $format = str_replace('%e', '%#d', $format);
}
echo strftime($format);
Modified: phpdoc/en/trunk/reference/reflection/reflectionfunction/invokeargs.xml
===================================================================
--- phpdoc/en/trunk/reference/reflection/reflectionfunction/invokeargs.xml 2010-10-25 19:38:17 UTC
(rev 304887)
+++ phpdoc/en/trunk/reference/reflection/reflectionfunction/invokeargs.xml 2010-10-25 19:41:39 UTC
(rev 304888)
@@ -55,12 +55,12 @@
<?php
function title($title, $name)
{
- return sprintf("%s. %s\r\n", $title, $name);
+ return sprintf("%s. %s\r\n", $title, $name);
}
$function = new ReflectionFunction('title');
-echo $function->invokeArgs(Array('Dr', 'Phil'));
+echo $function->invokeArgs(array('Dr', 'Phil'));
?>
]]>
</programlisting>
@@ -78,23 +78,21 @@
<programlisting role="php">
<![CDATA[
<?php
-function get_false_conditions(Array $conditions, Array &$false_conditions)
+function get_false_conditions(array $conditions, array &$false_conditions)
{
- foreach($conditions as $condition)
- {
- if(!$condition)
- {
- $false_conditions[] = $condition;
- }
- }
+ foreach ($conditions as $condition) {
+ if (!$condition) {
+ $false_conditions[] = $condition;
+ }
+ }
}
-$function_ref = new ReflectionFunction('get_false_conditions');
+$function_ref = new ReflectionFunction('get_false_conditions');
-$conditions = Array(true, false, -1, 0, 1);
-$false_conditions = Array();
+$conditions = array(true, false, -1, 0, 1);
+$false_conditions = array();
-$function_ref->invokeArgs(Array($conditions, &$false_conditions));
+$function_ref->invokeArgs(array($conditions, &$false_conditions));
var_dump($false_conditions);
?>
Modified: phpdoc/en/trunk/reference/reflection/reflectionfunction/tostring.xml
===================================================================
--- phpdoc/en/trunk/reference/reflection/reflectionfunction/tostring.xml 2010-10-25 19:38:17 UTC
(rev 304887)
+++ phpdoc/en/trunk/reference/reflection/reflectionfunction/tostring.xml 2010-10-25 19:41:39 UTC
(rev 304888)
@@ -41,7 +41,7 @@
<?php
function title($title, $name)
{
- return sprintf("%s. %s\r\n", $title, $name);
+ return sprintf("%s. %s\r\n", $title, $name);
}
echo new ReflectionFunction('title');
Modified: phpdoc/en/trunk/reference/sem/functions/shm-attach.xml
===================================================================
--- phpdoc/en/trunk/reference/sem/functions/shm-attach.xml 2010-10-25 19:38:17 UTC (rev 304887)
+++ phpdoc/en/trunk/reference/sem/functions/shm-attach.xml 2010-10-25 19:41:39 UTC (rev 304888)
@@ -118,9 +118,8 @@
// Attach the SHM resource, notice the cast afterwards
$id = shm_attach($key);
-if($id === false)
-{
- die('Unable to create the shared memory segment');
+if ($id === false) {
+ die('Unable to create the shared memory segment');
}
// Cast to integer, since prior to PHP 5.3.0 the resource id