php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47089 Shebang is printed under Windows
Submitted: 2009-01-13 12:44 UTC Modified: 2009-01-19 09:16 UTC
From: vrana@php.net Assigned: pajoye (profile)
Status: Closed Package: CGI/CLI related
PHP Version: 5.3.0alpha4-dev OS: win32 only
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: vrana@php.net
New email:
PHP Version: OS:

 

 [2009-01-13 12:44 UTC] vrana@php.net
Description:
------------
The shebang line (e.g. #!/usr/bin/php) is printed in PHP 5.3.0alpha4-dev by php.exe while it was not printed in earlier versions (e.g. PHP 5.2.8).

This is a backwards incompatible change which brings platform difference.

Reproduce code:
---------------
#!/usr/bin/php
<?php
echo PHP_VERSION;
?>


Expected result:
----------------
5.3.0alpha4-dev

Actual result:
--------------
#!/usr/bin/php
5.3.0alpha4-dev

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-01-13 18:18 UTC] iliaa@php.net
What SAPI are you using?
 [2009-01-14 09:19 UTC] vrana@php.net
php.exe in Windows distribution is CLI. <?php echo PHP_SAPI; ?> prints "cli".
 [2009-01-14 19:31 UTC] iliaa@php.net
Pierre,

Is there a problem with mmap() on windows where it ignores the start 
offset?
 [2009-01-14 20:04 UTC] pajoye@php.net
I have to check (assigned to me +)
 [2009-01-19 00:01 UTC] pajoye@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

Works with all 5.3.0 snaps, VC9&VC6 TS and NTS:

C:\Users\..\php53snap>php \php-sdk\php53\vc9\x86\PHP_5_3\shebang.php
5.3.0alpha4-dev

Can you try again using a recent snapshot please?


 [2009-01-19 09:16 UTC] vrana@php.net
Works as expected, thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 21:01:36 2024 UTC