Hello Robert,

Friday, October 26, 2007, 1:06:31 PM, you wrote:

> http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_splice_variation1.phpt?view=markup&rev=1.1
> Index: php-src/ext/standard/tests/array/array_splice_variation1.phpt
> +++ php-src/ext/standard/tests/array/array_splice_variation1.phpt
> --TEST--
> Test array_splice() function : usage variations - references

Do not add a blank line in --TEST--. That block must have exactly one line.

> --INI--

Do not provide empty blocls like this --INI-- one.

> --FILE--
> <?php
> /* 
>  * proto array array_splice(array input, int offset [, int length [, array 
> replacement]])
>  * Function is implemented in ext/standard/array.c
> */ 

> $input_array=array (array(1,2));
> $input_array[]=&$input_array[0];
> var_dump (array_splice ($input_array[0],1,1));
> var_dump ($input_array);

Our normal coding style has no space between function and opening brace. But
we do have spaces after commas and between operators. Sharing that style
makes the code much more readable to all people that deal with tests.

Best regards,
 Marcus

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to