mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
fixed typo and few grammar mistakes
This commit is contained in:
parent
5e368b76ed
commit
6b90f23787
@ -9,11 +9,11 @@ Modified: 2001-09-17
|
|||||||
1. Background/Need
|
1. Background/Need
|
||||||
==================
|
==================
|
||||||
|
|
||||||
Many internal function of PHP will reject parameters because of their
|
Many internal functions of PHP will reject parameters because of their
|
||||||
type (the array and variable function come to mind). For userland
|
type (the array and variable function come to mind). For userland
|
||||||
this is not an easy task as there is no uniform way to do it. An
|
this is not an easy task as there is no uniform way to do it. An
|
||||||
addition to the engine for requiring loose types would allow
|
addition to the engine for requiring loose types would allow
|
||||||
delevopers to know that the data passed to their functions is of the
|
developers to know that the data passed to their functions are of the
|
||||||
correct type and reduce the need for duplicating the same code in
|
correct type and reduce the need for duplicating the same code in
|
||||||
every function to check for the type of data.
|
every function to check for the type of data.
|
||||||
|
|
||||||
@ -57,7 +57,7 @@ function foo (array $var){
|
|||||||
===========
|
===========
|
||||||
|
|
||||||
Mis-matches in type should be reported as fatal errors and should halt
|
Mis-matches in type should be reported as fatal errors and should halt
|
||||||
the execution of a script as that function can not be run and code
|
the execution of a script as that function cannot be run and code
|
||||||
following could not reliably run.
|
following could not reliably run.
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user