Bug #68777 [NEW]: \a escape not supported for double-quoted strings and heredocs
From: ajf at ajf dot me
Operating system: *
PHP version: Irrelevant
Package: Strings related
Bug Type: Bug
Bug description:\a escape not supported for double-quoted strings and heredocs
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 bug report at https://bugs.php.net/bug.php?id=68777&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68777&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68777&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68777&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68777&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68777&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68777&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68777&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68777&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68777&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68777&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68777&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68777&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68777&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68777&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68777&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68777&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68777&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68777&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68777&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68777&r=mysqlcfg
Thread (5 messages)
- ajf at ajf dot me