Custom Query (267 matches)
Results (46 - 48 of 267)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #280 | fixed | Do not require a config.php for xcache-admin | moo | pierres |
| description |
Some variables like $enable_eval are accessed even though they are only defined in config.php.example. Adding a isset() check before accessing such variables would make the config file optional and wont rise any PHP warnings. This would make it a little easier to directly use the xcache admin distributed with the package. |
|||
| #216 | invalid | Drupal 7 HEAD segfaults xcache | moo | chx1975@… |
| description |
Ubuntu Hardy: 0x00007f6d3680b060 in strlen () from /lib/libc.so.6 (gdb) bt #0 0x00007f6d3680b060 in strlen () from /lib/libc.so.6 #1 0x00007f6d30fc8102 in lex_scan () from /usr/lib/apache2/modules/libphp5.so #2 0x00007f6d30f8a2d6 in zif_token_get_all () from /usr/lib/apache2/modules/libphp5.so #3 0x00007f6d31015f72 in ?? () from /usr/lib/apache2/modules/libphp5.so #4 0x00007f6d31006ea3 in execute () from /usr/lib/apache2/modules/libphp5.so #5 0x00007f6d31015a04 in ?? () from /usr/lib/apache2/modules/libphp5.so #6 0x00007f6d31006ea3 in execute () from /usr/lib/apache2/modules/libphp5.so #7 0x00007f6d31015a04 in ?? () from /usr/lib/apache2/modules/libphp5.so #8 0x00007f6d31006ea3 in execute () from /usr/lib/apache2/modules/libphp5.so #9 0x00007f6d31015a04 in ?? () from /usr/lib/apache2/modules/libphp5.so #10 0x00007f6d31006ea3 in execute () from /usr/lib/apache2/modules/libphp5.so #11 0x00007f6d31015a04 in ?? () from /usr/lib/apache2/modules/libphp5.so #12 0x00007f6d31006ea3 in execute () from /usr/lib/apache2/modules/libphp5.so #13 0x00007f6d31015a04 in ?? () from /usr/lib/apache2/modules/libphp5.so #14 0x00007f6d31006ea3 in execute () from /usr/lib/apache2/modules/libphp5.so #15 0x00007f6d30fdc775 in zend_call_function () from /usr/lib/apache2/modules/libphp5.so #16 0x00007f6d30fdd7c6 in call_user_function_ex () from /usr/lib/apache2/modules/libphp5.so #17 0x00007f6d30f2d627 in zif_call_user_func_array () from /usr/lib/apache2/modules/libphp5.so #18 0x00007f6d31015f72 in ?? () from /usr/lib/apache2/modules/libphp5.so #19 0x00007f6d31006ea3 in execute () from /usr/lib/apache2/modules/libphp5.so #20 0x00007f6d31015a04 in ?? () from /usr/lib/apache2/modules/libphp5.so #21 0x00007f6d31006ea3 in execute () from /usr/lib/apache2/modules/libphp5.so #22 0x00007f6d31015a04 in ?? () from /usr/lib/apache2/modules/libphp5.so #23 0x00007f6d31006ea3 in execute () from /usr/lib/apache2/modules/libphp5.so #24 0x00007f6d31015a04 in ?? () from /usr/lib/apache2/modules/libphp5.so #25 0x00007f6d31006ea3 in execute () from /usr/lib/apache2/modules/libphp5.so #26 0x00007f6d31015a04 in ?? () from /usr/lib/apache2/modules/libphp5.so #27 0x00007f6d31006ea3 in execute () from /usr/lib/apache2/modules/libphp5.so #28 0x00007f6d31015a04 in ?? () from /usr/lib/apache2/modules/libphp5.so #29 0x00007f6d31006ea3 in execute () from /usr/lib/apache2/modules/libphp5.so #30 0x00007f6d30fe7743 in zend_execute_scripts () from /usr/lib/apache2/modules/libphp5.so #31 0x00007f6d30fa39ca in php_execute_script () from /usr/lib/apache2/modules/libphp5.so #32 0x00007f6d31067cc2 in ?? () from /usr/lib/apache2/modules/libphp5.so #33 0x0000000000437d6a in ap_run_handler () #34 0x000000000043b18c in ap_invoke_handler () #35 0x000000000044786e in ap_process_request () #36 0x0000000000444c68 in ?? () ---Type <return> to continue, or q <return> to quit--- #37 0x000000000043eec2 in ap_run_process_connection () #38 0x000000000044b665 in ?? () #39 0x000000000044b893 in ?? () #40 0x000000000044c469 in ap_mpm_run () #41 0x0000000000425a44 in main () |
|||
| #223 | fixed | E_DEPRECATED error at parsing - Custom error handler cant access previously declared classes | moo | patphobos |
| description |
<?php
error_reporting(E_ALL);
set_error_handler('error');
function error($errno, $errstr, $errfile, $errline, $errcontext)
{
echo "PHP ERROR - error n°" . $errno . ' : ' . $errstr . "\n";
if (!class_exists('test42'))
echo " - hit a bug, test42";
die();
}
class test42 { }
require_once 'page_with_an_error.php';
?>
page_with_an_error.php: <?php
function test(&$val) { }
$val = 'this is a test';
// Deprecated :
test(&$val);
?>
the custom error handler is catching the E_DEPRECATED error, but when cached, the error handler cant use any of previously existing objects (like test42 in this example). Another testcase, that made my php5.3 to segfault : <?php
error_reporting(E_ALL);
set_error_handler('error');
function error($errno, $errstr, $errfile, $errline, $errcontext)
{
if (!defined('DISPLAY_ERROR'))
define('DISPLAY_ERROR', true);
if (DISPLAY_ERROR)
echo "PHP ERROR - error n°" . $errno . ' : ' . $errstr . "\n";
}
// 1st error E_DEPRECATED inside page_with_an_error.php
include 'page_with_an_error.php';
// 2nd error
asort();
?>
'page_with_an_error.php' is the same file with the deprecated call by reference error. |
|||

