2021-04-28 16:49:39 +02:00
|
|
|
Having characters before ``++<?php++`` can cause "Cannot modify header information" errors and similar problems with Ajax requests.
|
|
|
|
|
2021-04-28 18:08:03 +02:00
|
|
|
|
2021-04-28 16:49:39 +02:00
|
|
|
== Noncompliant Code Example
|
|
|
|
|
|
|
|
----
|
|
|
|
test<?php //Noncompliant
|
|
|
|
// ...
|
|
|
|
----
|
|
|
|
and
|
|
|
|
|
|
|
|
----
|
|
|
|
// Noncompliant; newline before opening tag
|
|
|
|
<?php
|
|
|
|
// ...
|
|
|
|
----
|
|
|
|
|
2021-04-28 18:08:03 +02:00
|
|
|
|
2021-04-28 16:49:39 +02:00
|
|
|
== Compliant Solution
|
|
|
|
|
|
|
|
----
|
|
|
|
<?php
|
|
|
|
// ...
|
|
|
|
----
|
2021-04-28 18:08:03 +02:00
|
|
|
|
|
|
|
|
2021-06-02 20:44:38 +02:00
|
|
|
|
|
|
|
ifdef::rspecator-view[]
|
|
|
|
== Comments And Links
|
|
|
|
(visible only on this page)
|
|
|
|
|
|
|
|
include::comments-and-links.adoc[]
|
|
|
|
endif::rspecator-view[]
|