diff --git a/spec/09-lexical-structure.md b/spec/09-lexical-structure.md index f06cbe7f..39557fa7 100644 --- a/spec/09-lexical-structure.md +++ b/spec/09-lexical-structure.md @@ -708,8 +708,8 @@ single-quotes (`'`, U+0027). The literal can contain any source character except single-quote (`'`) and backslash (`\\`), which can only be represented by their corresponding escape sequence. -The optional *b-prefix* is reserved for future use in dealing with -so-called *binary strings*. For now, a *single-quoted-string-literal* +*Deprecated* The optional *b-prefix* was reserved for future use in dealing with +so-called *binary strings*. A *single-quoted-string-literal* with a *b-prefix* is equivalent to one without. A single-quoted string literal is always a constant expression. @@ -812,8 +812,8 @@ double-quote (`"`) and backslash (`\\`), which can only be represented by their corresponding escape sequence. Certain other (and sometimes non-printable) characters can also be expressed as escape sequences. -The optional *b-prefix* is reserved for future use in dealing with -so-called *binary strings*. For now, a *double-quoted-string-literal* +*Deprecated* The optional *b-prefix* was reserved for future use in dealing with +so-called *binary strings*. A *double-quoted-string-literal* with a *b-prefix* is equivalent to one without. An escape sequence represents a single-character encoding, as described @@ -1040,7 +1040,7 @@ A heredoc literal supports variable substitution as defined for A heredoc string literal is a constant expression if it does not contain any variable substitution. -The optional *b-prefix* has no effect. +*Deprecated* The optional *b-prefix* has no effect. **Examples** @@ -1085,7 +1085,7 @@ not subject to variable substitution (like the single-quoted string). A nowdoc string literal is a constant expression. -The optional *b-prefix* has no effect. +*Deprecated* The optional *b-prefix* has no effect. **Examples** diff --git a/spec/10-expressions.md b/spec/10-expressions.md index e90b47ec..fecd40a0 100644 --- a/spec/10-expressions.md +++ b/spec/10-expressions.md @@ -2192,8 +2192,8 @@ A cast can result in a loss of information. A *cast-type* of `array` results in a [conversion to type array](08-conversions.md#converting-to-array-type). -A *cast-type* of `binary` is reserved for future use in dealing with -so-called *binary strings*. For now, it is fully equivalent to `string` cast. +*Deprecated* A *cast-type* of `binary` was reserved for future use in dealing with +so-called *binary strings*. It is fully equivalent to `string` cast. A *cast-type* of `bool` or `boolean` results in a [conversion to type `bool`](08-conversions.md#converting-to-boolean-type). diff --git a/tests/expressions/unary_operators/cast.phpt b/tests/expressions/unary_operators/cast.phpt index d87341e5..dc0d75ad 100644 Binary files a/tests/expressions/unary_operators/cast.phpt and b/tests/expressions/unary_operators/cast.phpt differ