php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68777 \a escape not supported for double-quoted strings and heredocs
Submitted: 2015-01-09 10:27 UTC Modified: -
Votes:2
Avg. Score:3.0 ± 2.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: ajf at ajf dot me Assigned:
Status: Open Package: Strings related
PHP Version: Irrelevant OS: *
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ajf at ajf dot me
New email:
PHP Version: OS:

 

 [2015-01-09 10:27 UTC] ajf at ajf dot me
Description:
------------
Despite the support for the completely useless \v (vertical tab), \a, which produces the familiar terminal beep or flash that we all know and love, is conspicuously absent from PHP.

Test script:
---------------
<?php
echo "\a";

Expected result:
----------------
<terminal beeps/flashes/some other "alert" if supported>

Actual result:
--------------
\a

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-01-09 11:50 UTC] anon at anon dot anon
Adding that would break backwards compatibility, so they will probably not do it without overwhelming reason to, but you can always use "\7" instead.
 [2015-01-09 18:16 UTC] ajf at ajf dot me
It would, but we have previously added \e, \v, \f, the first one in 5.4. I think it's an acceptable break for a minor or major.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Sep 19 06:01:25 2020 UTC