|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-07-24 08:02 UTC] crocodile2u at yandex dot ru
Description:
------------
Get a segfault when using is_file() in a web-server environment (Apache/2.2.8 (Ubuntu) PHP/5.3.0-dev). Seems to be web-server related as CLI version works as expected.
Reproduce code:
---------------
<?php
var_dump(is_file("x"));
Expected result:
----------------
bool(false)
Actual result:
--------------
segmentation fault
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 06:00:01 2025 UTC |
I've just installed the latest snapshot of PHP-5.3 and the problem persists. The dump: #0 0x00000000 in ?? () #1 0xb71feef8 in phar_is_file (ht=1, return_value=0x83db0b8, return_value_ptr=0x0, this_ptr=0x0, return_value_used=0, tsrm_ls=0x83c5a70) at /home/vbolshov/src/php/php5.3-200807280630/ext/phar/func_interceptors.c:956 #2 0xb73f3828 in zend_do_fcall_common_helper_SPEC (execute_data=0x84a0a70, tsrm_ls=0x83c5a70) at /home/vbolshov/src/php/php5.3-200807280630/Zend/zend_vm_execute.h:313 #3 0xb73e00b5 in execute (op_array=0x83dac2c, tsrm_ls=0x83c5a70) at /home/vbolshov/src/php/php5.3-200807280630/Zend/zend_vm_execute.h:104 #4 0xb73bad2f in zend_execute_scripts (type=8, tsrm_ls=0x83c5a70, retval=0x0, file_count=3) at /home/vbolshov/src/php/php5.3-200807280630/Zend/zend.c:1199 #5 0xb73617d5 in php_execute_script (primary_file=0xb44c41f0, tsrm_ls=0x83c5a70) at /home/vbolshov/src/php/php5.3-200807280630/main/main.c:2088 #6 0xb744fa48 in php_handler (r=0x83cac20) at /home/vbolshov/src/php/php5.3-200807280630/sapi/apache2handler/sapi_apache2.c:630 #7 0x08079639 in ap_run_handler () #8 0x0807ca47 in ap_invoke_handler () #9 0x08089d60 in ap_process_request () #10 0x0808706b in ?? () #11 0x083cac20 in ?? () #12 0x00000004 in ?? () #13 0x083cac20 in ?? () #14 0x00000000 in ?? () -------------------- Source code for the script was: <?php is_file("x");