Bug #68777 [Com]: \a escape not supported for double-quoted strings and heredocs

From: Date: Fri, 09 Jan 2015 18:16:14 +0000
Subject: Bug #68777 [Com]: \a escape not supported for double-quoted strings and heredocs
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189850@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68777&edit=1

 ID:                 68777
 Comment by:         ajf at ajf dot me
 Reported by:        ajf at ajf dot me
 Summary:            \a escape not supported for double-quoted strings
                     and heredocs
 Status:             Open
 Type:               Bug
 Package:            Strings related
 Operating System:   *
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------
[2015-01-09 11:50:40] 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 10:27:51] 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


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=68777&edit=1


Thread (5 messages)

« previous php.bugs (#189850) next »