php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65225 PHP_BINARY incorrectly set
Submitted: 2013-07-09 13:02 UTC Modified: -
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: patrickallaert@php.net Assigned:
Status: Closed Package: PHP options/info functions
PHP Version: 5.4.17 OS:
Private report: No CVE-ID:
 [2013-07-09 13:02 UTC] patrickallaert@php.net
Description:
------------
PHP_BINARY is initialized thanks to php_binary_init() without checking that 
candidate is a regular file.

I'm going to send a pull request that fixes it.

Test script:
---------------
$ sudo mkdir /usr/local/bin/php
$ php -r 'echo PHP_BINARY, "\n";';


Expected result:
----------------
/usr/lib64/php5.4/bin/php


Actual result:
--------------
/usr/local/bin/php

Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-08-18 21:21 UTC] stas@php.net
Automatic comment on behalf of stas
Revision: http://git.php.net/?p=php-src.git;a=commit;h=0154db1c5fcfd0c4030a0aefb2861dc8386b4a1c
Log: new for fix #65225
 [2013-08-18 21:21 UTC] stas@php.net
-Status: Open +Status: Closed
 [2013-08-18 21:21 UTC] stas@php.net
Automatic comment on behalf of pa@ez.no
Revision: http://git.php.net/?p=php-src.git;a=commit;h=98d29d20a1e5d2d8bc1699fbc61efde95f5ce87f
Log: Fixed #65225: PHP_BINARY incorrectly set
 [2013-08-18 21:21 UTC] stas@php.net
Automatic comment on behalf of pa@ez.no
Revision: http://git.php.net/?p=php-src.git;a=commit;h=b980e4fedc945dd0a45d73349716f6ab18a97635
Log: Fixed #65225: PHP_BINARY incorrectly set
 [2013-11-17 09:30 UTC] laruence@php.net
Automatic comment on behalf of pa@ez.no
Revision: http://git.php.net/?p=php-src.git;a=commit;h=b980e4fedc945dd0a45d73349716f6ab18a97635
Log: Fixed #65225: PHP_BINARY incorrectly set
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Thu Apr 24 02:02:10 2014 UTC