View Issue Details

IDProjectCategoryView StatusLast Update
0001496XdebugRemote Debuggingpublic2017-11-23 18:30
ReporterildarAssigned Toderick 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionno change required 
PlatformOSarchlinuxOS Version
Product Version 
Target VersionFixed in Version 
Summary0001496: Server Error 500 related to throw new \Exception
DescriptionThe script does not work on PHP Version 7.2.0RC6
and git xdebug

<code>
class XCLowOpensslCryptor
{
    public function decryptString($in, $key, $fmt = null)
    {//{{{
        throw new \Exception(__METHOD__ . ' - Not an openssl cipher');
    }//}}}
}
    
try {
    $low_cryptor = new XCLowOpensslCryptor();
    $res = $low_cryptor->decryptString(1, 2);
} catch (Exception $e) {
}

echo 'Test Passed';
die();

</code>

The fix is
-zend_extension=/opt/phpfarm/inst/php-7.2.0RC6/lib/php/extensions/xdebug2xrc6.so
+;zend_extension=/opt/phpfarm/inst/php-7.2.0RC6/lib/php/extensions/xdebug2xrc6.so

in
/opt/phpfarm/inst/php-7.2.0RC6/lib/php.ini
Steps To Reproducecompiled on
aim-server[~/tmp/xdebug]$ git log -1
commit e0652e9fb0e945677d01396616688826c2037733 (HEAD -> master, origin/master, origin/HEAD)
Merge: e4f9c54e 31f33c5c
Author: Derick Rethans <github@derickrethans.nl>
Date: Wed Nov 22 23:59:27 2017 +0000

    Merged pull request 0000383
aim-server[~/tmp/xdebug]$ git branch
* master



via

/opt/phpfarm/inst/php-7.2.0RC6/bin/phpize
./configure --enable-xdebug --with-php-config=/opt/phpfarm/inst/php-7.2.0RC6/bin/php-config
make
cpi modules/xdebug.so /opt/phpfarm/inst/php-7.2.0RC6/lib/php/extensions/xdebug2x.so
sudo -E vim /opt/phpfarm/inst/php-7.2.0RC6/lib/php.ini
zend_extension=/opt/phpfarm/inst/php-7.2.0RC6/lib/php/extensions/xdebug2x.so
Additional InformationIf I remove the line
        throw new \Exception(__METHOD__ . ' - Not an openssl cipher');
the 500 error will be disappeared.


/var/log/httpd/error_log shows
[Thu Nov 23 10:16:30.475332 2017] [fastcgi:error] [pid 16035:tid 139965534172928] (104)Connection reset by peer: [client 192.168.69.3:53800] FastCGI: comm with server "/srv/http/bin/php-fastcgi5329" aborted: read failed
[Thu Nov 23 10:16:30.475481 2017] [fastcgi:error] [pid 16035:tid 139965534172928] [client 192.168.69.3:53800] FastCGI: incomplete headers (0 bytes) received from server "/srv/http/bin/php-fastcgi5329"
TagsNo tags attached.
Operating SystemLinux aim-server.crtdev.local 4.13.12-1-ARCH #1 SMP PREEMPT Wed Nov 8 11:54:06 CET 2017 x86_64 GNU/Linux
PHP Version7.2-dev

Activities

ildar

2017-11-23 06:31

reporter  

phpinfo.txt (49,114 bytes)
phpinfo()
PHP Version => 7.2.0RC6

System => Linux aim-server.crtdev.local 4.13.12-1-ARCH #1 SMP PREEMPT Wed Nov 8 11:54:06 CET 2017 x86_64
Build Date => Nov 23 2017 10:02:43
Configure Command =>  './configure'  '--prefix=/opt/phpfarm/inst/php-7.2.0RC6' '--exec-prefix=/opt/phpfarm/inst/php-7.2.0RC6' '--disable-short-tags' '--without-pear' '--enable-bcmath' '--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-mbstring' '--enable-pcntl' '--enable-soap' '--enable-sockets' '--enable-sqlite-utf8' '--enable-wddx' '--enable-zip' '--with-zlib' '--with-gettext' '--with-mysqli=mysqlnd' '--with-mysql=mysqlnd' '--with-pdo-mysql' '--with-openssl=/usr/' '--with-curl' '--enable-cli' '--enable-debug' '--enable-readline' '--enable-posix' '--with-readline' '--with-posix' '--with-apache2' '--with-gd' '--with-jpeg-dir' '--with-mcrypt' '--without-pdo-sqlite' '--without-sqlite'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /opt/phpfarm/inst/php-7.2.0RC6/lib
Loaded Configuration File => /opt/phpfarm/inst/php-7.2.0RC6/lib/php.ini
Scan this dir for additional .ini files => (none)
Additional .ini files parsed => (none)
PHP API => 20170718
PHP Extension => 20170718
Zend Extension => 320170718
Zend Extension Build => API320170718,NTS,debug
PHP Extension Build => API20170718,NTS,debug
Debug Build => yes
Thread Safety => disabled
Zend Signal Handling => enabled
Zend Memory Manager => enabled
Zend Multibyte Support => provided by mbstring
IPv6 Support => enabled
DTrace Support => disabled

Registered PHP Streams => https, ftps, compress.zlib, php, file, glob, data, http, ftp, phar, zip
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, tls, tlsv1.0, tlsv1.1, tlsv1.2
Registered Stream Filters => zlib.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk

This program makes use of the Zend Scripting Language Engine:
Zend Engine v3.2.0-dev, Copyright (c) 1998-2017 Zend Technologies
    with Xdebug v2.6.0-dev, Copyright (c) 2002-2017, by Derick Rethans


 _______________________________________________________________________


Configuration

bcmath

BCMath support => enabled

Directive => Local Value => Master Value
bcmath.scale => 0 => 0

calendar

Calendar support => enabled

Core

PHP Version => 7.2.0RC6

Directive => Local Value => Master Value
allow_url_fopen => On => On
allow_url_include => Off => Off
arg_separator.input => & => &
arg_separator.output => & => &
auto_append_file => no value => no value
auto_globals_jit => On => On
auto_prepend_file => no value => no value
browscap => no value => no value
default_charset => UTF-8 => UTF-8
default_mimetype => text/html => text/html
disable_classes => no value => no value
disable_functions => no value => no value
display_errors => STDOUT => STDOUT
display_startup_errors => On => On
doc_root => no value => no value
docref_ext => no value => no value
docref_root => no value => no value
enable_dl => Off => Off
enable_post_data_reading => On => On
error_append_string => no value => no value
error_log => no value => no value
error_prepend_string => no value => no value
error_reporting => 32767 => 32767
expose_php => On => On
extension_dir => /opt/phpfarm/inst/php-7.2.0RC6/lib/php/extensions/debug-non-zts-20170718 => /opt/phpfarm/inst/php-7.2.0RC6/lib/php/extensions/debug-non-zts-20170718
file_uploads => On => On
hard_timeout => 2 => 2
highlight.comment => <font style="color: #FF8000">#FF8000</font> => <font style="color: #FF8000">#FF8000</font>
highlight.default => <font style="color: #0000BB">#0000BB</font> => <font style="color: #0000BB">#0000BB</font>
highlight.html => <font style="color: #000000">#000000</font> => <font style="color: #000000">#000000</font>
highlight.keyword => <font style="color: #007700">#007700</font> => <font style="color: #007700">#007700</font>
highlight.string => <font style="color: #DD0000">#DD0000</font> => <font style="color: #DD0000">#DD0000</font>
html_errors => Off => Off
ignore_repeated_errors => Off => Off
ignore_repeated_source => Off => Off
ignore_user_abort => Off => Off
implicit_flush => On => On
include_path => .:/opt/phpfarm/inst/php-7.2.0RC6/pear/php/ => .:/opt/phpfarm/inst/php-7.2.0RC6/pear/php/
input_encoding => no value => no value
internal_encoding => no value => no value
log_errors => On => On
log_errors_max_len => 1024 => 1024
mail.add_x_header => On => On
mail.force_extra_parameters => no value => no value
mail.log => no value => no value
max_execution_time => 0 => 0
max_file_uploads => 20 => 20
max_input_nesting_level => 64 => 64
max_input_time => -1 => -1
max_input_vars => 1000 => 1000
memory_limit => 1024M => 1024M
open_basedir => no value => no value
output_buffering => 0 => 0
output_encoding => no value => no value
output_handler => no value => no value
post_max_size => 8M => 8M
precision => 14 => 14
realpath_cache_size => 4096K => 4096K
realpath_cache_ttl => 120 => 120
register_argc_argv => On => On
report_memleaks => On => On
report_zend_debug => Off => Off
request_order => GP => GP
sendmail_from => no value => no value
sendmail_path => /usr/bin/sendmail -t -i  => /usr/bin/sendmail -t -i 
serialize_precision => -1 => -1
short_open_tag => Off => Off
SMTP => localhost => localhost
smtp_port => 25 => 25
sys_temp_dir => no value => no value
track_errors => Off => Off
unserialize_callback_func => no value => no value
upload_max_filesize => 20M => 20M
upload_tmp_dir => no value => no value
user_dir => no value => no value
user_ini.cache_ttl => 300 => 300
user_ini.filename => .user.ini => .user.ini
variables_order => GPCS => GPCS
xmlrpc_error_number => 0 => 0
xmlrpc_errors => Off => Off
zend.assertions => 1 => 1
zend.detect_unicode => On => On
zend.enable_gc => On => On
zend.multibyte => Off => Off
zend.script_encoding => no value => no value
zend.signal_check => Off => Off

ctype

ctype functions => enabled

curl

cURL support => enabled
cURL Information => 7.56.1
Age => 3
Features
AsynchDNS => Yes
CharConv => No
Debug => No
GSS-Negotiate => No
IDN => No
IPv6 => Yes
krb4 => No
Largefile => Yes
libz => Yes
NTLM => Yes
NTLMWB => Yes
SPNEGO => Yes
SSL => Yes
SSPI => No
TLS-SRP => Yes
HTTP2 => Yes
GSSAPI => Yes
KERBEROS5 => Yes
UNIX_SOCKETS => Yes
PSL => Yes
Protocols => dict, file, ftp, ftps, gopher, http, https, imap, imaps, pop3, pop3s, rtsp, scp, sftp, smb, smbs, smtp, smtps, telnet, tftp
Host => x86_64-pc-linux-gnu
SSL Version => OpenSSL/1.1.0g
ZLib Version => 1.2.11
libSSH Version => libssh2/1.8.0

date

date/time support => enabled
timelib version => 2017.05beta9
"Olson" Timezone Database Version => 2017.3
Timezone Database => internal
Default timezone => Europe/Moscow

Directive => Local Value => Master Value
date.default_latitude => 31.7667 => 31.7667
date.default_longitude => 35.2333 => 35.2333
date.sunrise_zenith => 90.583333 => 90.583333
date.sunset_zenith => 90.583333 => 90.583333
date.timezone => Europe/Moscow => Europe/Moscow

dom

DOM/XML => enabled
DOM/XML API Version => 20031129
libxml Version => 2.9.5
HTML Support => enabled
XPath Support => enabled
XPointer Support => enabled
Schema Support => enabled
RelaxNG Support => enabled

exif

EXIF Support => enabled
EXIF Version => 7.2.0RC6
Supported EXIF Version => 0220
Supported filetypes => JPEG, TIFF
Multibyte decoding support using mbstring => enabled
Extended EXIF tag formats => Canon, Casio, Fujifilm, Nikon, Olympus, Samsung, Panasonic, DJI, Sony, Pentax, Minolta, Sigma, Foveon, Kyocera, Ricoh, AGFA, Epson

Directive => Local Value => Master Value
exif.decode_jis_intel => JIS => JIS
exif.decode_jis_motorola => JIS => JIS
exif.decode_unicode_intel => UCS-2LE => UCS-2LE
exif.decode_unicode_motorola => UCS-2BE => UCS-2BE
exif.encode_jis => no value => no value
exif.encode_unicode => ISO-8859-15 => ISO-8859-15

fileinfo

fileinfo support => enabled
version => 1.0.5
libmagic => 531

filter

Input Validation and Filtering => enabled
Revision => $Id: cdc5e15bb616f10210b94ecd8789e66c927a375f $

Directive => Local Value => Master Value
filter.default => unsafe_raw => unsafe_raw
filter.default_flags => no value => no value

ftp

FTP support => enabled
FTPS support => enabled

gd

GD Support => enabled
GD Version => bundled (2.1.0 compatible)
GIF Read Support => enabled
GIF Create Support => enabled
JPEG Support => enabled
libJPEG Version => 8
PNG Support => enabled
libPNG Version => 1.6.34
WBMP Support => enabled
XBM Support => enabled

Directive => Local Value => Master Value
gd.jpeg_ignore_warning => 1 => 1

gettext

GetText Support => enabled

hash

hash support => enabled
Hashing Engines => md2 md4 md5 sha1 sha224 sha256 sha384 sha512/224 sha512/256 sha512 sha3-224 sha3-256 sha3-384 sha3-512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 gost gost-crypto adler32 crc32 crc32b fnv132 fnv1a32 fnv164 fnv1a64 joaat haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5 

iconv

iconv support => enabled
iconv implementation => glibc
iconv library version => 2.26

Directive => Local Value => Master Value
iconv.input_encoding => no value => no value
iconv.internal_encoding => no value => no value
iconv.output_encoding => no value => no value

json

json support => enabled
json version => 1.6.0

libxml

libXML support => active
libXML Compiled Version => 2.9.5
libXML Loaded Version => 20907
libXML streams => enabled

mbstring

Multibyte Support => enabled
Multibyte string engine => libmbfl
HTTP input encoding translation => disabled
libmbfl version => 1.3.2
oniguruma version => 6.3.0

mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.

Multibyte (japanese) regex support => enabled
Multibyte regex (oniguruma) backtrack check => On
Multibyte regex (oniguruma) version => 6.3.0

Directive => Local Value => Master Value
mbstring.detect_order => no value => no value
mbstring.encoding_translation => Off => Off
mbstring.func_overload => 0 => 0
mbstring.http_input => no value => no value
mbstring.http_output => no value => no value
mbstring.http_output_conv_mimetypes => ^(text/|application/xhtml\+xml) => ^(text/|application/xhtml\+xml)
mbstring.internal_encoding => no value => no value
mbstring.language => neutral => neutral
mbstring.strict_detection => Off => Off
mbstring.substitute_character => no value => no value

mysqli

MysqlI Support => enabled
Client API library version => mysqlnd 5.0.12-dev - 20150407 - $Id: b396954eeb2d1d9ed7902b8bae237b287f21ad9e $
Active Persistent Links => 0
Inactive Persistent Links => 0
Active Links => 0

Directive => Local Value => Master Value
mysqli.allow_local_infile => On => On
mysqli.allow_persistent => On => On
mysqli.default_host => no value => no value
mysqli.default_port => 3306 => 3306
mysqli.default_pw => no value => no value
mysqli.default_socket => /run/mysqld/mysqld.sock => /run/mysqld/mysqld.sock
mysqli.default_user => no value => no value
mysqli.max_links => Unlimited => Unlimited
mysqli.max_persistent => Unlimited => Unlimited
mysqli.reconnect => Off => Off
mysqli.rollback_on_cached_plink => Off => Off

mysqlnd

mysqlnd => enabled
Version => mysqlnd 5.0.12-dev - 20150407 - $Id: b396954eeb2d1d9ed7902b8bae237b287f21ad9e $
Compression => supported
core SSL => supported
extended SSL => supported
Command buffer size => 4096
Read buffer size => 32768
Read timeout => 86400
Collecting statistics => Yes
Collecting memory statistics => Yes
Tracing => n/a
Loaded plugins => mysqlnd,example,debug_trace,auth_plugin_mysql_native_password,auth_plugin_mysql_clear_password,auth_plugin_sha256_password
API Extensions => pdo_mysql,mysqli

mysqlnd statistics =>  
bytes_sent => 0
bytes_received => 0
packets_sent => 0
packets_received => 0
protocol_overhead_in => 0
protocol_overhead_out => 0
bytes_received_ok_packet => 0
bytes_received_eof_packet => 0
bytes_received_rset_header_packet => 0
bytes_received_rset_field_meta_packet => 0
bytes_received_rset_row_packet => 0
bytes_received_prepare_response_packet => 0
bytes_received_change_user_packet => 0
packets_sent_command => 0
packets_received_ok => 0
packets_received_eof => 0
packets_received_rset_header => 0
packets_received_rset_field_meta => 0
packets_received_rset_row => 0
packets_received_prepare_response => 0
packets_received_change_user => 0
result_set_queries => 0
non_result_set_queries => 0
no_index_used => 0
bad_index_used => 0
slow_queries => 0
buffered_sets => 0
unbuffered_sets => 0
ps_buffered_sets => 0
ps_unbuffered_sets => 0
flushed_normal_sets => 0
flushed_ps_sets => 0
ps_prepared_never_executed => 0
ps_prepared_once_executed => 0
rows_fetched_from_server_normal => 0
rows_fetched_from_server_ps => 0
rows_buffered_from_client_normal => 0
rows_buffered_from_client_ps => 0
rows_fetched_from_client_normal_buffered => 0
rows_fetched_from_client_normal_unbuffered => 0
rows_fetched_from_client_ps_buffered => 0
rows_fetched_from_client_ps_unbuffered => 0
rows_fetched_from_client_ps_cursor => 0
rows_affected_normal => 0
rows_affected_ps => 0
rows_skipped_normal => 0
rows_skipped_ps => 0
copy_on_write_saved => 0
copy_on_write_performed => 0
command_buffer_too_small => 0
connect_success => 0
connect_failure => 0
connection_reused => 0
reconnect => 0
pconnect_success => 0
active_connections => 0
active_persistent_connections => 0
explicit_close => 0
implicit_close => 0
disconnect_close => 0
in_middle_of_command_close => 0
explicit_free_result => 0
implicit_free_result => 0
explicit_stmt_close => 0
implicit_stmt_close => 0
mem_emalloc_count => 0
mem_emalloc_amount => 0
mem_ecalloc_count => 0
mem_ecalloc_amount => 0
mem_erealloc_count => 0
mem_erealloc_amount => 0
mem_efree_count => 0
mem_efree_amount => 0
mem_malloc_count => 0
mem_malloc_amount => 0
mem_calloc_count => 0
mem_calloc_amount => 0
mem_realloc_count => 0
mem_realloc_amount => 0
mem_free_count => 0
mem_free_amount => 0
mem_estrndup_count => 0
mem_strndup_count => 0
mem_estrdup_count => 0
mem_strdup_count => 0
mem_edupl_count => 0
mem_dupl_count => 0
proto_text_fetched_null => 0
proto_text_fetched_bit => 0
proto_text_fetched_tinyint => 0
proto_text_fetched_short => 0
proto_text_fetched_int24 => 0
proto_text_fetched_int => 0
proto_text_fetched_bigint => 0
proto_text_fetched_decimal => 0
proto_text_fetched_float => 0
proto_text_fetched_double => 0
proto_text_fetched_date => 0
proto_text_fetched_year => 0
proto_text_fetched_time => 0
proto_text_fetched_datetime => 0
proto_text_fetched_timestamp => 0
proto_text_fetched_string => 0
proto_text_fetched_blob => 0
proto_text_fetched_enum => 0
proto_text_fetched_set => 0
proto_text_fetched_geometry => 0
proto_text_fetched_other => 0
proto_binary_fetched_null => 0
proto_binary_fetched_bit => 0
proto_binary_fetched_tinyint => 0
proto_binary_fetched_short => 0
proto_binary_fetched_int24 => 0
proto_binary_fetched_int => 0
proto_binary_fetched_bigint => 0
proto_binary_fetched_decimal => 0
proto_binary_fetched_float => 0
proto_binary_fetched_double => 0
proto_binary_fetched_date => 0
proto_binary_fetched_year => 0
proto_binary_fetched_time => 0
proto_binary_fetched_datetime => 0
proto_binary_fetched_timestamp => 0
proto_binary_fetched_string => 0
proto_binary_fetched_json => 0
proto_binary_fetched_blob => 0
proto_binary_fetched_enum => 0
proto_binary_fetched_set => 0
proto_binary_fetched_geometry => 0
proto_binary_fetched_other => 0
init_command_executed_count => 0
init_command_failed_count => 0
com_quit => 0
com_init_db => 0
com_query => 0
com_field_list => 0
com_create_db => 0
com_drop_db => 0
com_refresh => 0
com_shutdown => 0
com_statistics => 0
com_process_info => 0
com_connect => 0
com_process_kill => 0
com_debug => 0
com_ping => 0
com_time => 0
com_delayed_insert => 0
com_change_user => 0
com_binlog_dump => 0
com_table_dump => 0
com_connect_out => 0
com_register_slave => 0
com_stmt_prepare => 0
com_stmt_execute => 0
com_stmt_send_long_data => 0
com_stmt_close => 0
com_stmt_reset => 0
com_stmt_set_option => 0
com_stmt_fetch => 0
com_deamon => 0
bytes_received_real_data_normal => 0
bytes_received_real_data_ps => 0

example statistics =>  
stat1 => 0
stat2 => 0

openssl

OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 1.1.0g  2 Nov 2017
OpenSSL Header Version => OpenSSL 1.1.0f  25 May 2017
Openssl default config => /etc/ssl/openssl.cnf

Directive => Local Value => Master Value
openssl.cafile => /etc/ssl/certs/cacert.pem => /etc/ssl/certs/cacert.pem
openssl.capath => no value => no value

pcntl

pcntl support => enabled

pcre

PCRE (Perl Compatible Regular Expressions) Support => enabled
PCRE Library Version => 8.41 2017-07-05
PCRE JIT Support => enabled

Directive => Local Value => Master Value
pcre.backtrack_limit => 1000000 => 1000000
pcre.jit => 1 => 1
pcre.recursion_limit => 100000 => 100000

PDO

PDO support => enabled
PDO drivers => mysql

pdo_mysql

PDO Driver for MySQL => enabled
Client API version => mysqlnd 5.0.12-dev - 20150407 - $Id: b396954eeb2d1d9ed7902b8bae237b287f21ad9e $

Directive => Local Value => Master Value
pdo_mysql.debug => no value => no value
pdo_mysql.default_socket => /tmp/mysql.sock => /tmp/mysql.sock

Phar

Phar: PHP Archive support => enabled
Phar EXT version => 2.0.2
Phar API version => 1.1.1
SVN revision => $Id: 65ebce0f0856fc5a90a62d32dd0bb5c00627706f $
Phar-based phar archives => enabled
Tar-based phar archives => enabled
ZIP-based phar archives => enabled
gzip compression => enabled
bzip2 compression => disabled (install pecl/bz2)
OpenSSL support => enabled


Phar based on pear/PHP_Archive, original concept by Davey Shafik.
Phar fully realized by Gregory Beaver and Marcus Boerger.
Portions of tar implementation Copyright (c) 2003-2009 Tim Kientzle.
Directive => Local Value => Master Value
phar.cache_list => no value => no value
phar.readonly => On => On
phar.require_hash => On => On

posix

Revision => $Id: bb23a5bc2983506c20a1ca7b530527177192d0d3 $

readline

Readline Support => enabled
Readline library => 7.0

Directive => Local Value => Master Value
cli.pager => no value => no value
cli.prompt => \b \>  => \b \> 

Reflection

Reflection => enabled
Version => $Id: 6cf0392a73b8c11a067a885da01dcdb18461c4f4 $

session

Session Support => enabled
Registered save handlers => files user 
Registered serializer handlers => php_serialize php php_binary wddx 

Directive => Local Value => Master Value
session.auto_start => Off => Off
session.cache_expire => 180 => 180
session.cache_limiter => nocache => nocache
session.cookie_domain => no value => no value
session.cookie_httponly => no value => no value
session.cookie_lifetime => 0 => 0
session.cookie_path => / => /
session.cookie_secure => 0 => 0
session.gc_divisor => 1000 => 1000
session.gc_maxlifetime => 1440 => 1440
session.gc_probability => 1 => 1
session.lazy_write => On => On
session.name => PHPSESSID => PHPSESSID
session.referer_check => no value => no value
session.save_handler => files => files
session.save_path => no value => no value
session.serialize_handler => php => php
session.sid_bits_per_character => 5 => 5
session.sid_length => 26 => 26
session.upload_progress.cleanup => On => On
session.upload_progress.enabled => On => On
session.upload_progress.freq => 1% => 1%
session.upload_progress.min_freq => 1 => 1
session.upload_progress.name => PHP_SESSION_UPLOAD_PROGRESS => PHP_SESSION_UPLOAD_PROGRESS
session.upload_progress.prefix => upload_progress_ => upload_progress_
session.use_cookies => 1 => 1
session.use_only_cookies => 1 => 1
session.use_strict_mode => 0 => 0
session.use_trans_sid => 0 => 0

SimpleXML

Simplexml support => enabled
Revision => $Id: 0ec2c86f4a6299cc833d763b611003ac4e18fd45 $
Schema support => enabled

soap

Soap Client => enabled
Soap Server => enabled

Directive => Local Value => Master Value
soap.wsdl_cache => 1 => 1
soap.wsdl_cache_dir => /tmp => /tmp
soap.wsdl_cache_enabled => 1 => 1
soap.wsdl_cache_limit => 5 => 5
soap.wsdl_cache_ttl => 86400 => 86400

sockets

Sockets Support => enabled

SPL

SPL support => enabled
Interfaces => OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
Classes => AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, CallbackFilterIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveCallbackFilterIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException

sqlite3

SQLite3 support => enabled
SQLite3 module version => 7.2.0RC6
SQLite Library => 3.20.1

Directive => Local Value => Master Value
sqlite3.extension_dir => no value => no value

standard

Dynamic Library Support => enabled
Path to sendmail => /usr/bin/sendmail -t -i 

Directive => Local Value => Master Value
assert.active => 1 => 1
assert.bail => 0 => 0
assert.callback => no value => no value
assert.exception => 0 => 0
assert.quiet_eval => 0 => 0
assert.warning => 1 => 1
auto_detect_line_endings => 0 => 0
default_socket_timeout => 60 => 60
from => no value => no value
session.trans_sid_hosts => no value => no value
session.trans_sid_tags => a=href,area=href,frame=src,form= => a=href,area=href,frame=src,form=
url_rewriter.hosts => no value => no value
url_rewriter.tags => form= => form=
user_agent => no value => no value

tokenizer

Tokenizer Support => enabled

wddx

WDDX Support => enabled
WDDX Session Serializer => enabled

xdebug

xdebug support => enabled
Version => 2.6.0-dev
IDE Key => netbeans-xdebugaim

Supported protocols => Revision
DBGp - Common DeBuGger Protocol => $Revision: 1.145 $

Directive => Local Value => Master Value
xdebug.auto_trace => Off => Off
xdebug.cli_color => 0 => 0
xdebug.collect_assignments => On => On
xdebug.collect_includes => On => On
xdebug.collect_params => 1 => 1
xdebug.collect_return => On => On
xdebug.collect_vars => Off => Off
xdebug.coverage_enable => On => On
xdebug.default_enable => On => On
xdebug.dump.COOKIE => no value => no value
xdebug.dump.ENV => no value => no value
xdebug.dump.FILES => no value => no value
xdebug.dump.GET => no value => no value
xdebug.dump.POST => no value => no value
xdebug.dump.REQUEST => * => *
xdebug.dump.SERVER => REQUEST_METHOD,REQUEST_URI,HTTP_USER_AGENT => REQUEST_METHOD,REQUEST_URI,HTTP_USER_AGENT
xdebug.dump.SESSION => no value => no value
xdebug.dump_globals => On => On
xdebug.dump_once => On => On
xdebug.dump_undefined => On => On
xdebug.extended_info => On => On
xdebug.file_link_format => no value => no value
xdebug.filename_format => no value => no value
xdebug.force_display_errors => Off => Off
xdebug.force_error_reporting => 0 => 0
xdebug.halt_level => 0 => 0
xdebug.idekey => netbeans-xdebugaim => netbeans-xdebugaim
xdebug.max_nesting_level => 256 => 256
xdebug.max_stack_frames => -1 => -1
xdebug.overload_var_dump => 2 => 2
xdebug.profiler_aggregate => Off => Off
xdebug.profiler_append => Off => Off
xdebug.profiler_enable => Off => Off
xdebug.profiler_enable_trigger => On => On
xdebug.profiler_enable_trigger_value => no value => no value
xdebug.profiler_output_dir => /home/aim/tmp/trace => /home/aim/tmp/trace
xdebug.profiler_output_name => cachegrind.out.%p => cachegrind.out.%p
xdebug.remote_addr_header => no value => no value
xdebug.remote_autostart => Off => Off
xdebug.remote_connect_back => Off => Off
xdebug.remote_cookie_expire_time => 3600 => 3600
xdebug.remote_enable => On => On
xdebug.remote_handler => dbgp => dbgp
xdebug.remote_host => xcart-aim-arch.crtdev.local => xcart-aim-arch.crtdev.local
xdebug.remote_log => no value => no value
xdebug.remote_mode => req => req
xdebug.remote_port => 9000 => 9000
xdebug.remote_timeout => 200 => 200
xdebug.scream => Off => Off
xdebug.show_error_trace => Off => Off
xdebug.show_exception_trace => Off => Off
xdebug.show_local_vars => On => On
xdebug.show_mem_delta => Off => Off
xdebug.trace_enable_trigger => Off => Off
xdebug.trace_enable_trigger_value => no value => no value
xdebug.trace_format => 0 => 0
xdebug.trace_options => 0 => 0
xdebug.trace_output_dir => /home/aim/tmp/trace => /home/aim/tmp/trace
xdebug.trace_output_name => trace.%R.%p => trace.%R.%p
xdebug.var_display_max_children => 128 => 128
xdebug.var_display_max_data => 512 => 512
xdebug.var_display_max_depth => 3 => 3

xml

XML Support => active
XML Namespace Support => active
libxml2 Version => 2.9.5

xmlreader

XMLReader => enabled

xmlwriter

XMLWriter => enabled

zip

Zip => enabled
Zip version => 1.15.1
Libzip version => 1.1.2

zlib

ZLib Support => enabled
Stream Wrapper => compress.zlib://
Stream Filter => zlib.inflate, zlib.deflate
Compiled Version => 1.2.11
Linked Version => 1.2.11

Directive => Local Value => Master Value
zlib.output_compression => Off => Off
zlib.output_compression_level => -1 => -1
zlib.output_handler => no value => no value

Additional Modules

Module Name

Environment

Variable => Value
USER => aim
LOGNAME => aim
HOME => /home/aim
PATH => /usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/aim/bin:/opt/phpfarm/inst/bin
MAIL => /var/spool/mail/aim
SHELL => /usr/bin/zsh
SSH_CLIENT => 192.168.69.3 44312 22
SSH_CONNECTION => 192.168.69.3 44312 192.168.69.2 22
SSH_TTY => /dev/pts/0
TERM => xterm
DISPLAY => localhost:10.0
XDG_SESSION_ID => c2
XDG_RUNTIME_DIR => /run/user/1000
DBUS_SESSION_BUS_ADDRESS => unix:path=/run/user/1000/bus
SSH_AUTH_SOCK => /tmp/ssh-8rxPbJL4It/agent.597
SHLVL => 1
PWD => /home/aim/tmp
OLDPWD => /home/aim/www
ANT_HOME => /usr/share/apache-ant
LANG => ru_RU.UTF-8
EDITOR => /usr/bin/vim
LSCOLORS => hxfxdxdxGxegedHxHxDxDb
PAGER => /usr/bin/less
VISUAL => /usr/bin/vim
LESS => -iXMq
CVSROOT => :ext:aim@cvs.crtdev.local:/usr/local/cvsroot
GREP_COLOR => 1;37;41
PCREGREP_COLOUR => 1;31
PCREGREP_OPTIONS => --color=auto
__MAKE_CONF => /home/aim/etc/make.conf
d => dev:pwd
CUSTOMNAME => Product offers mod
m => XMultiCurrency
wn => xcart_4_6_x
wnx => xcart_4_6_x
w1n => xcart_4_1_12
w2n => xcart_4_2_3
w3n => xcart_4_3_2
w32n => xcart_4_3_2
w4n => xcart_4_4_5
w43n => xcart_4_4_3
db => aim_xcart_4_6_x
db1 => aim_xcart_4_1_12
db2 => aim_xcart_4_6_x_orig
db3 => aim_xcart_4_3_2
db32 => aim_xcart_4_3_2
db4 => aim_xcart_4_4_5
db43 => aim_xcart_4_4_3
x => /home/aim/arch_server/
w => /home/aim/www/xcart_4_6_x
wx => /home/aim/xcart/public_html/xcart_4_6_x
w1 => /home/aim/public_html/xcart_4_1_12
w2 => /home/aim/public_html/xcart_4_2_3
w3 => /home/aim/public_html/xcart_4_3_2
w32 => /home/aim/public_html/xcart_4_3_2
w4 => /home/aim/public_html/xcart_4_4_5
w43 => /home/aim/public_html/xcart_4_4_3
c => /home/aim/www/xcart_4_6_x/classes
s => /home/aim/www/xcart_4_6_x/skin/common_files
sl => /home/aim/www/xcart_4_6_x/skin/light_responsive
sa => /home/aim/www/xcart_4_6_x/skin/common_files/admin/main
sp => /home/aim/www/xcart_4_6_x/skin/common_files/provider/main
sc => /home/aim/www/xcart_4_6_x/skin/common_files/customer/main
sx => /home/aim/xcart/public_html/xcart_4_6_x/skin/common_files
sm => /home/aim/www/xcart_4_6_x/skin/common_files/main
ss => /home/aim/www/xcart_4_6_x/skin/common_files/single
cm => /home/aim/www/xcart_4_6_x/modules/XMultiCurrency
smm => /home/aim/www/xcart_4_6_x/skin/common_files/modules/XMultiCurrency
ca => /home/aim/www/xcart_4_6_x/admin
cp => /home/aim/www/xcart_4_6_x/provider
cc => /home/aim/www/xcart_4_6_x/customer
cx => /home/aim/www/xcart_4_6_x/partner
ci => /home/aim/www/xcart_4_6_x/include
f => /home/aim/www/xcart_4_6_x/include/func
ts => /home/aim/www/xcart_4_6_x/tests/selenium_tests
slx => /home/aim/xcart/public_html/xcart_4_6_x/skin/light_responsive
sax => /home/aim/xcart/public_html/xcart_4_6_x/skin/common_files/admin/main
spx => /home/aim/xcart/public_html/xcart_4_6_x/skin/common_files/provider/main
scx => /home/aim/xcart/public_html/xcart_4_6_x/skin/common_files/customer/main
sxx => /home/aim/xcart/public_html/xcart_4_6_x/skin/common_files/partner/main
smx => /home/aim/xcart/public_html/xcart_4_6_x/skin/common_files/main
ssx => /home/aim/xcart/public_html/xcart_4_6_x/skin/common_files/single
cmx => /home/aim/xcart/public_html/xcart_4_6_x/modules/XMultiCurrency
smmx => /home/aim/xcart/public_html/xcart_4_6_x/skin/common_files/modules/XMultiCurrency
cax => /home/aim/xcart/public_html/xcart_4_6_x/admin
cpx => /home/aim/xcart/public_html/xcart_4_6_x/provider
ccx => /home/aim/xcart/public_html/xcart_4_6_x/customer
cxx => /home/aim/xcart/public_html/xcart_4_6_x/partner
cix => /home/aim/xcart/public_html/xcart_4_6_x/include
fx => /home/aim/xcart/public_html/xcart_4_6_x/include/func
tsx => /home/aim/xcart/public_html/xcart_4_6_x/tests/selenium_tests
cst => /home/aim/public_html/customize/xcart/xcart_4_6_x
cstn => /home/aim/public_html/customize/xcart/not_my
cstm => /home/aim/public_html/customize/xcart/Modules
s1 => /home/aim/public_html/xcart_4_1_12/skin1
sa1 => /home/aim/public_html/xcart_4_1_12/skin1/admin/main
sp1 => /home/aim/public_html/xcart_4_1_12/skin1/provider/main
sc1 => /home/aim/public_html/xcart_4_1_12/skin1/customer/main
sx1 => /home/aim/public_html/xcart_4_1_12/skin1/partner/main
sm1 => /home/aim/public_html/xcart_4_1_12/skin1/main
ss1 => /home/aim/public_html/xcart_4_1_12/skin1/single
cm1 => /home/aim/public_html/xcart_4_1_12/modules/XMultiCurrency
smm1 => /home/aim/public_html/xcart_4_1_12/skin1/modules/XMultiCurrency
ca1 => /home/aim/public_html/xcart_4_1_12/admin
cp1 => /home/aim/public_html/xcart_4_1_12/provider
cc1 => /home/aim/public_html/xcart_4_1_12/customer
cx1 => /home/aim/public_html/xcart_4_1_12/partner
ci1 => /home/aim/public_html/xcart_4_1_12/include
f1 => /home/aim/public_html/xcart_4_1_12/include/func
ts1 => /home/aim/public_html/xcart_4_1_12/tests/selenium_tests
s2 => /home/aim/public_html/xcart_4_2_3/skin1
sa2 => /home/aim/public_html/xcart_4_2_3/skin1/admin/main
sp2 => /home/aim/public_html/xcart_4_2_3/skin1/provider/main
sc2 => /home/aim/public_html/xcart_4_2_3/skin1/customer/main
sx2 => /home/aim/public_html/xcart_4_2_3/skin1/partner/main
sm2 => /home/aim/public_html/xcart_4_2_3/skin1/main
ss2 => /home/aim/public_html/xcart_4_2_3/skin1/single
cm2 => /home/aim/public_html/xcart_4_2_3/modules/XMultiCurrency
smm2 => /home/aim/public_html/xcart_4_2_3/skin1/modules/XMultiCurrency
ca2 => /home/aim/public_html/xcart_4_2_3/admin
cp2 => /home/aim/public_html/xcart_4_2_3/provider
cc2 => /home/aim/public_html/xcart_4_2_3/customer
cx2 => /home/aim/public_html/xcart_4_2_3/partner
ci2 => /home/aim/public_html/xcart_4_2_3/include
f2 => /home/aim/public_html/xcart_4_2_3/include/func
ts2 => /home/aim/public_html/xcart_4_2_3/tests/selenium_tests
s3 => /home/aim/public_html/xcart_4_3_2/skin1
sa3 => /home/aim/public_html/xcart_4_3_2/skin1/admin/main
sp3 => /home/aim/public_html/xcart_4_3_2/skin1/provider/main
sc3 => /home/aim/public_html/xcart_4_3_2/skin1/customer/main
sx3 => /home/aim/public_html/xcart_4_3_2/skin1/partner/main
sm3 => /home/aim/public_html/xcart_4_3_2/skin1/main
ss3 => /home/aim/public_html/xcart_4_3_2/skin1/single
cm3 => /home/aim/public_html/xcart_4_3_2/modules/XMultiCurrency
smm3 => /home/aim/public_html/xcart_4_3_2/skin1/modules/XMultiCurrency
ca3 => /home/aim/public_html/xcart_4_3_2/admin
cp3 => /home/aim/public_html/xcart_4_3_2/provider
cc3 => /home/aim/public_html/xcart_4_3_2/customer
cx3 => /home/aim/public_html/xcart_4_3_2/partner
ci3 => /home/aim/public_html/xcart_4_3_2/include
f3 => /home/aim/public_html/xcart_4_3_2/include/func
ts3 => /home/aim/public_html/xcart_4_3_2/tests/selenium_tests
s32 => /home/aim/public_html/xcart_4_3_2/skin1
sa32 => /home/aim/public_html/xcart_4_3_2/skin1/admin/main
sp32 => /home/aim/public_html/xcart_4_3_2/skin1/provider/main
sc32 => /home/aim/public_html/xcart_4_3_2/skin1/customer/main
sx32 => /home/aim/public_html/xcart_4_3_2/skin1/partner/main
sm32 => /home/aim/public_html/xcart_4_3_2/skin1/main
ss32 => /home/aim/public_html/xcart_4_3_2/skin1/single
cm32 => /home/aim/public_html/xcart_4_3_2/modules/XMultiCurrency
smm32 => /home/aim/public_html/xcart_4_3_2/skin1/modules/XMultiCurrency
ca32 => /home/aim/public_html/xcart_4_3_2/admin
cp32 => /home/aim/public_html/xcart_4_3_2/provider
cc32 => /home/aim/public_html/xcart_4_3_2/customer
cx32 => /home/aim/public_html/xcart_4_3_2/partner
ci32 => /home/aim/public_html/xcart_4_3_2/include
f32 => /home/aim/public_html/xcart_4_3_2/include/func
ts32 => /home/aim/public_html/xcart_4_3_2/tests/selenium_tests
s4 => /home/aim/public_html/xcart_4_4_5/skin/common_files
sl4 => /home/aim/public_html/xcart_4_4_5/skin/light_responsive
sa4 => /home/aim/public_html/xcart_4_4_5/skin/common_files/admin/main
sp4 => /home/aim/public_html/xcart_4_4_5/skin/common_files/provider/main
sc4 => /home/aim/public_html/xcart_4_4_5/skin/common_files/customer/main
sx4 => /home/aim/public_html/xcart_4_4_5/skin/common_files/partner/main
sm4 => /home/aim/public_html/xcart_4_4_5/skin/common_files/main
ss4 => /home/aim/public_html/xcart_4_4_5/skin/common_files/single
cm4 => /home/aim/public_html/xcart_4_4_5/modules/XMultiCurrency
smm4 => /home/aim/public_html/xcart_4_4_5/skin/common_files/modules/XMultiCurrency
ca4 => /home/aim/public_html/xcart_4_4_5/admin
cp4 => /home/aim/public_html/xcart_4_4_5/provider
cc4 => /home/aim/public_html/xcart_4_4_5/customer
cx4 => /home/aim/public_html/xcart_4_4_5/partner
ci4 => /home/aim/public_html/xcart_4_4_5/include
f4 => /home/aim/public_html/xcart_4_4_5/include/func
ts4 => /home/aim/public_html/xcart_4_4_5/tests/selenium_tests
s43 => /home/aim/public_html/xcart_4_4_3/skin/common_files
sl43 => /home/aim/public_html/xcart_4_4_5/skin/light_responsive
sa43 => /home/aim/public_html/xcart_4_4_3/skin/common_files/admin/main
sp43 => /home/aim/public_html/xcart_4_4_3/skin/common_files/provider/main
sc43 => /home/aim/public_html/xcart_4_4_3/skin/common_files/customer/main
sx43 => /home/aim/public_html/xcart_4_4_3/skin/common_files/partner/main
sm43 => /home/aim/public_html/xcart_4_4_3/skin/common_files/main
ss43 => /home/aim/public_html/xcart_4_4_3/skin/common_files/single
cm43 => /home/aim/public_html/xcart_4_4_3/modules/XMultiCurrency
smm43 => /home/aim/public_html/xcart_4_4_3/skin/common_files/modules/XMultiCurrency
ca43 => /home/aim/public_html/xcart_4_4_3/admin
cp43 => /home/aim/public_html/xcart_4_4_3/provider
cc43 => /home/aim/public_html/xcart_4_4_3/customer
cx43 => /home/aim/public_html/xcart_4_4_3/partner
ci43 => /home/aim/public_html/xcart_4_4_3/include
f43 => /home/aim/public_html/xcart_4_4_3/include/func
ts43 => /home/aim/public_html/xcart_4_4_3/tests/selenium_tests
tl => /home/aim/tool/
tlp => /home/aim/www/tool/pattern
tls => /home/aim/www/tool/script
tx => /home/aim/arch_server/tmp
upg => /home/aim/tmp/upgrade/new/upgrade_add/4.7.7-4.7.8/gold/upgrade/4.7.7-4.7.8
o => /home/aim/diff/Old
n => /home/aim/diff/New
PBSHIPPING_KEY => sTPCnYM5y013xOLqaSIVxtACPVYUiRNO
PBSHIPPING_SECRET => GGKWaxY6tWB5fFrs
PBSHIPPING_DEVID => 48773269
PBSHIPPING_MERCHANT => aim+pb@x-cart.com
CLASSPATH => :/home/aim/bin:/opt/phpfarm/inst/bin:/opt/phpfarm/inst/current-bin
_ => /opt/phpfarm/inst/php-7.2.0RC6/bin/php

PHP Variables

Variable => Value
$_SERVER['USER'] => aim
$_SERVER['LOGNAME'] => aim
$_SERVER['HOME'] => /home/aim
$_SERVER['PATH'] => /usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/aim/bin:/opt/phpfarm/inst/bin
$_SERVER['MAIL'] => /var/spool/mail/aim
$_SERVER['SHELL'] => /usr/bin/zsh
$_SERVER['SSH_CLIENT'] => 192.168.69.3 44312 22
$_SERVER['SSH_CONNECTION'] => 192.168.69.3 44312 192.168.69.2 22
$_SERVER['SSH_TTY'] => /dev/pts/0
$_SERVER['TERM'] => xterm
$_SERVER['DISPLAY'] => localhost:10.0
$_SERVER['XDG_SESSION_ID'] => c2
$_SERVER['XDG_RUNTIME_DIR'] => /run/user/1000
$_SERVER['DBUS_SESSION_BUS_ADDRESS'] => unix:path=/run/user/1000/bus
$_SERVER['SSH_AUTH_SOCK'] => /tmp/ssh-8rxPbJL4It/agent.597
$_SERVER['SHLVL'] => 1
$_SERVER['PWD'] => /home/aim/tmp
$_SERVER['OLDPWD'] => /home/aim/www
$_SERVER['ANT_HOME'] => /usr/share/apache-ant
$_SERVER['LANG'] => ru_RU.UTF-8
$_SERVER['EDITOR'] => /usr/bin/vim
$_SERVER['LSCOLORS'] => hxfxdxdxGxegedHxHxDxDb
$_SERVER['PAGER'] => /usr/bin/less
$_SERVER['VISUAL'] => /usr/bin/vim
$_SERVER['LESS'] => -iXMq
$_SERVER['CVSROOT'] => :ext:aim@cvs.crtdev.local:/usr/local/cvsroot
$_SERVER['GREP_COLOR'] => 1;37;41
$_SERVER['PCREGREP_COLOUR'] => 1;31
$_SERVER['PCREGREP_OPTIONS'] => --color=auto
$_SERVER['__MAKE_CONF'] => /home/aim/etc/make.conf
$_SERVER['d'] => dev:pwd
$_SERVER['CUSTOMNAME'] => Product offers mod
$_SERVER['m'] => XMultiCurrency
$_SERVER['wn'] => xcart_4_6_x
$_SERVER['wnx'] => xcart_4_6_x
$_SERVER['w1n'] => xcart_4_1_12
$_SERVER['w2n'] => xcart_4_2_3
$_SERVER['w3n'] => xcart_4_3_2
$_SERVER['w32n'] => xcart_4_3_2
$_SERVER['w4n'] => xcart_4_4_5
$_SERVER['w43n'] => xcart_4_4_3
$_SERVER['db'] => aim_xcart_4_6_x
$_SERVER['db1'] => aim_xcart_4_1_12
$_SERVER['db2'] => aim_xcart_4_6_x_orig
$_SERVER['db3'] => aim_xcart_4_3_2
$_SERVER['db32'] => aim_xcart_4_3_2
$_SERVER['db4'] => aim_xcart_4_4_5
$_SERVER['db43'] => aim_xcart_4_4_3
$_SERVER['x'] => /home/aim/arch_server/
$_SERVER['w'] => /home/aim/www/xcart_4_6_x
$_SERVER['wx'] => /home/aim/xcart/public_html/xcart_4_6_x
$_SERVER['w1'] => /home/aim/public_html/xcart_4_1_12
$_SERVER['w2'] => /home/aim/public_html/xcart_4_2_3
$_SERVER['w3'] => /home/aim/public_html/xcart_4_3_2
$_SERVER['w32'] => /home/aim/public_html/xcart_4_3_2
$_SERVER['w4'] => /home/aim/public_html/xcart_4_4_5
$_SERVER['w43'] => /home/aim/public_html/xcart_4_4_3
$_SERVER['c'] => /home/aim/www/xcart_4_6_x/classes
$_SERVER['s'] => /home/aim/www/xcart_4_6_x/skin/common_files
$_SERVER['sl'] => /home/aim/www/xcart_4_6_x/skin/light_responsive
$_SERVER['sa'] => /home/aim/www/xcart_4_6_x/skin/common_files/admin/main
$_SERVER['sp'] => /home/aim/www/xcart_4_6_x/skin/common_files/provider/main
$_SERVER['sc'] => /home/aim/www/xcart_4_6_x/skin/common_files/customer/main
$_SERVER['sx'] => /home/aim/xcart/public_html/xcart_4_6_x/skin/common_files
$_SERVER['sm'] => /home/aim/www/xcart_4_6_x/skin/common_files/main
$_SERVER['ss'] => /home/aim/www/xcart_4_6_x/skin/common_files/single
$_SERVER['cm'] => /home/aim/www/xcart_4_6_x/modules/XMultiCurrency
$_SERVER['smm'] => /home/aim/www/xcart_4_6_x/skin/common_files/modules/XMultiCurrency
$_SERVER['ca'] => /home/aim/www/xcart_4_6_x/admin
$_SERVER['cp'] => /home/aim/www/xcart_4_6_x/provider
$_SERVER['cc'] => /home/aim/www/xcart_4_6_x/customer
$_SERVER['cx'] => /home/aim/www/xcart_4_6_x/partner
$_SERVER['ci'] => /home/aim/www/xcart_4_6_x/include
$_SERVER['f'] => /home/aim/www/xcart_4_6_x/include/func
$_SERVER['ts'] => /home/aim/www/xcart_4_6_x/tests/selenium_tests
$_SERVER['slx'] => /home/aim/xcart/public_html/xcart_4_6_x/skin/light_responsive
$_SERVER['sax'] => /home/aim/xcart/public_html/xcart_4_6_x/skin/common_files/admin/main
$_SERVER['spx'] => /home/aim/xcart/public_html/xcart_4_6_x/skin/common_files/provider/main
$_SERVER['scx'] => /home/aim/xcart/public_html/xcart_4_6_x/skin/common_files/customer/main
$_SERVER['sxx'] => /home/aim/xcart/public_html/xcart_4_6_x/skin/common_files/partner/main
$_SERVER['smx'] => /home/aim/xcart/public_html/xcart_4_6_x/skin/common_files/main
$_SERVER['ssx'] => /home/aim/xcart/public_html/xcart_4_6_x/skin/common_files/single
$_SERVER['cmx'] => /home/aim/xcart/public_html/xcart_4_6_x/modules/XMultiCurrency
$_SERVER['smmx'] => /home/aim/xcart/public_html/xcart_4_6_x/skin/common_files/modules/XMultiCurrency
$_SERVER['cax'] => /home/aim/xcart/public_html/xcart_4_6_x/admin
$_SERVER['cpx'] => /home/aim/xcart/public_html/xcart_4_6_x/provider
$_SERVER['ccx'] => /home/aim/xcart/public_html/xcart_4_6_x/customer
$_SERVER['cxx'] => /home/aim/xcart/public_html/xcart_4_6_x/partner
$_SERVER['cix'] => /home/aim/xcart/public_html/xcart_4_6_x/include
$_SERVER['fx'] => /home/aim/xcart/public_html/xcart_4_6_x/include/func
$_SERVER['tsx'] => /home/aim/xcart/public_html/xcart_4_6_x/tests/selenium_tests
$_SERVER['cst'] => /home/aim/public_html/customize/xcart/xcart_4_6_x
$_SERVER['cstn'] => /home/aim/public_html/customize/xcart/not_my
$_SERVER['cstm'] => /home/aim/public_html/customize/xcart/Modules
$_SERVER['s1'] => /home/aim/public_html/xcart_4_1_12/skin1
$_SERVER['sa1'] => /home/aim/public_html/xcart_4_1_12/skin1/admin/main
$_SERVER['sp1'] => /home/aim/public_html/xcart_4_1_12/skin1/provider/main
$_SERVER['sc1'] => /home/aim/public_html/xcart_4_1_12/skin1/customer/main
$_SERVER['sx1'] => /home/aim/public_html/xcart_4_1_12/skin1/partner/main
$_SERVER['sm1'] => /home/aim/public_html/xcart_4_1_12/skin1/main
$_SERVER['ss1'] => /home/aim/public_html/xcart_4_1_12/skin1/single
$_SERVER['cm1'] => /home/aim/public_html/xcart_4_1_12/modules/XMultiCurrency
$_SERVER['smm1'] => /home/aim/public_html/xcart_4_1_12/skin1/modules/XMultiCurrency
$_SERVER['ca1'] => /home/aim/public_html/xcart_4_1_12/admin
$_SERVER['cp1'] => /home/aim/public_html/xcart_4_1_12/provider
$_SERVER['cc1'] => /home/aim/public_html/xcart_4_1_12/customer
$_SERVER['cx1'] => /home/aim/public_html/xcart_4_1_12/partner
$_SERVER['ci1'] => /home/aim/public_html/xcart_4_1_12/include
$_SERVER['f1'] => /home/aim/public_html/xcart_4_1_12/include/func
$_SERVER['ts1'] => /home/aim/public_html/xcart_4_1_12/tests/selenium_tests
$_SERVER['s2'] => /home/aim/public_html/xcart_4_2_3/skin1
$_SERVER['sa2'] => /home/aim/public_html/xcart_4_2_3/skin1/admin/main
$_SERVER['sp2'] => /home/aim/public_html/xcart_4_2_3/skin1/provider/main
$_SERVER['sc2'] => /home/aim/public_html/xcart_4_2_3/skin1/customer/main
$_SERVER['sx2'] => /home/aim/public_html/xcart_4_2_3/skin1/partner/main
$_SERVER['sm2'] => /home/aim/public_html/xcart_4_2_3/skin1/main
$_SERVER['ss2'] => /home/aim/public_html/xcart_4_2_3/skin1/single
$_SERVER['cm2'] => /home/aim/public_html/xcart_4_2_3/modules/XMultiCurrency
$_SERVER['smm2'] => /home/aim/public_html/xcart_4_2_3/skin1/modules/XMultiCurrency
$_SERVER['ca2'] => /home/aim/public_html/xcart_4_2_3/admin
$_SERVER['cp2'] => /home/aim/public_html/xcart_4_2_3/provider
$_SERVER['cc2'] => /home/aim/public_html/xcart_4_2_3/customer
$_SERVER['cx2'] => /home/aim/public_html/xcart_4_2_3/partner
$_SERVER['ci2'] => /home/aim/public_html/xcart_4_2_3/include
$_SERVER['f2'] => /home/aim/public_html/xcart_4_2_3/include/func
$_SERVER['ts2'] => /home/aim/public_html/xcart_4_2_3/tests/selenium_tests
$_SERVER['s3'] => /home/aim/public_html/xcart_4_3_2/skin1
$_SERVER['sa3'] => /home/aim/public_html/xcart_4_3_2/skin1/admin/main
$_SERVER['sp3'] => /home/aim/public_html/xcart_4_3_2/skin1/provider/main
$_SERVER['sc3'] => /home/aim/public_html/xcart_4_3_2/skin1/customer/main
$_SERVER['sx3'] => /home/aim/public_html/xcart_4_3_2/skin1/partner/main
$_SERVER['sm3'] => /home/aim/public_html/xcart_4_3_2/skin1/main
$_SERVER['ss3'] => /home/aim/public_html/xcart_4_3_2/skin1/single
$_SERVER['cm3'] => /home/aim/public_html/xcart_4_3_2/modules/XMultiCurrency
$_SERVER['smm3'] => /home/aim/public_html/xcart_4_3_2/skin1/modules/XMultiCurrency
$_SERVER['ca3'] => /home/aim/public_html/xcart_4_3_2/admin
$_SERVER['cp3'] => /home/aim/public_html/xcart_4_3_2/provider
$_SERVER['cc3'] => /home/aim/public_html/xcart_4_3_2/customer
$_SERVER['cx3'] => /home/aim/public_html/xcart_4_3_2/partner
$_SERVER['ci3'] => /home/aim/public_html/xcart_4_3_2/include
$_SERVER['f3'] => /home/aim/public_html/xcart_4_3_2/include/func
$_SERVER['ts3'] => /home/aim/public_html/xcart_4_3_2/tests/selenium_tests
$_SERVER['s32'] => /home/aim/public_html/xcart_4_3_2/skin1
$_SERVER['sa32'] => /home/aim/public_html/xcart_4_3_2/skin1/admin/main
$_SERVER['sp32'] => /home/aim/public_html/xcart_4_3_2/skin1/provider/main
$_SERVER['sc32'] => /home/aim/public_html/xcart_4_3_2/skin1/customer/main
$_SERVER['sx32'] => /home/aim/public_html/xcart_4_3_2/skin1/partner/main
$_SERVER['sm32'] => /home/aim/public_html/xcart_4_3_2/skin1/main
$_SERVER['ss32'] => /home/aim/public_html/xcart_4_3_2/skin1/single
$_SERVER['cm32'] => /home/aim/public_html/xcart_4_3_2/modules/XMultiCurrency
$_SERVER['smm32'] => /home/aim/public_html/xcart_4_3_2/skin1/modules/XMultiCurrency
$_SERVER['ca32'] => /home/aim/public_html/xcart_4_3_2/admin
$_SERVER['cp32'] => /home/aim/public_html/xcart_4_3_2/provider
$_SERVER['cc32'] => /home/aim/public_html/xcart_4_3_2/customer
$_SERVER['cx32'] => /home/aim/public_html/xcart_4_3_2/partner
$_SERVER['ci32'] => /home/aim/public_html/xcart_4_3_2/include
$_SERVER['f32'] => /home/aim/public_html/xcart_4_3_2/include/func
$_SERVER['ts32'] => /home/aim/public_html/xcart_4_3_2/tests/selenium_tests
$_SERVER['s4'] => /home/aim/public_html/xcart_4_4_5/skin/common_files
$_SERVER['sl4'] => /home/aim/public_html/xcart_4_4_5/skin/light_responsive
$_SERVER['sa4'] => /home/aim/public_html/xcart_4_4_5/skin/common_files/admin/main
$_SERVER['sp4'] => /home/aim/public_html/xcart_4_4_5/skin/common_files/provider/main
$_SERVER['sc4'] => /home/aim/public_html/xcart_4_4_5/skin/common_files/customer/main
$_SERVER['sx4'] => /home/aim/public_html/xcart_4_4_5/skin/common_files/partner/main
$_SERVER['sm4'] => /home/aim/public_html/xcart_4_4_5/skin/common_files/main
$_SERVER['ss4'] => /home/aim/public_html/xcart_4_4_5/skin/common_files/single
$_SERVER['cm4'] => /home/aim/public_html/xcart_4_4_5/modules/XMultiCurrency
$_SERVER['smm4'] => /home/aim/public_html/xcart_4_4_5/skin/common_files/modules/XMultiCurrency
$_SERVER['ca4'] => /home/aim/public_html/xcart_4_4_5/admin
$_SERVER['cp4'] => /home/aim/public_html/xcart_4_4_5/provider
$_SERVER['cc4'] => /home/aim/public_html/xcart_4_4_5/customer
$_SERVER['cx4'] => /home/aim/public_html/xcart_4_4_5/partner
$_SERVER['ci4'] => /home/aim/public_html/xcart_4_4_5/include
$_SERVER['f4'] => /home/aim/public_html/xcart_4_4_5/include/func
$_SERVER['ts4'] => /home/aim/public_html/xcart_4_4_5/tests/selenium_tests
$_SERVER['s43'] => /home/aim/public_html/xcart_4_4_3/skin/common_files
$_SERVER['sl43'] => /home/aim/public_html/xcart_4_4_5/skin/light_responsive
$_SERVER['sa43'] => /home/aim/public_html/xcart_4_4_3/skin/common_files/admin/main
$_SERVER['sp43'] => /home/aim/public_html/xcart_4_4_3/skin/common_files/provider/main
$_SERVER['sc43'] => /home/aim/public_html/xcart_4_4_3/skin/common_files/customer/main
$_SERVER['sx43'] => /home/aim/public_html/xcart_4_4_3/skin/common_files/partner/main
$_SERVER['sm43'] => /home/aim/public_html/xcart_4_4_3/skin/common_files/main
$_SERVER['ss43'] => /home/aim/public_html/xcart_4_4_3/skin/common_files/single
$_SERVER['cm43'] => /home/aim/public_html/xcart_4_4_3/modules/XMultiCurrency
$_SERVER['smm43'] => /home/aim/public_html/xcart_4_4_3/skin/common_files/modules/XMultiCurrency
$_SERVER['ca43'] => /home/aim/public_html/xcart_4_4_3/admin
$_SERVER['cp43'] => /home/aim/public_html/xcart_4_4_3/provider
$_SERVER['cc43'] => /home/aim/public_html/xcart_4_4_3/customer
$_SERVER['cx43'] => /home/aim/public_html/xcart_4_4_3/partner
$_SERVER['ci43'] => /home/aim/public_html/xcart_4_4_3/include
$_SERVER['f43'] => /home/aim/public_html/xcart_4_4_3/include/func
$_SERVER['ts43'] => /home/aim/public_html/xcart_4_4_3/tests/selenium_tests
$_SERVER['tl'] => /home/aim/tool/
$_SERVER['tlp'] => /home/aim/www/tool/pattern
$_SERVER['tls'] => /home/aim/www/tool/script
$_SERVER['tx'] => /home/aim/arch_server/tmp
$_SERVER['upg'] => /home/aim/tmp/upgrade/new/upgrade_add/4.7.7-4.7.8/gold/upgrade/4.7.7-4.7.8
$_SERVER['o'] => /home/aim/diff/Old
$_SERVER['n'] => /home/aim/diff/New
$_SERVER['PBSHIPPING_KEY'] => sTPCnYM5y013xOLqaSIVxtACPVYUiRNO
$_SERVER['PBSHIPPING_SECRET'] => GGKWaxY6tWB5fFrs
$_SERVER['PBSHIPPING_DEVID'] => 48773269
$_SERVER['PBSHIPPING_MERCHANT'] => aim+pb@x-cart.com
$_SERVER['CLASSPATH'] => :/home/aim/bin:/opt/phpfarm/inst/bin:/opt/phpfarm/inst/current-bin
$_SERVER['_'] => /opt/phpfarm/inst/php-7.2.0RC6/bin/php
$_SERVER['PHP_SELF'] => 
$_SERVER['SCRIPT_NAME'] => 
$_SERVER['SCRIPT_FILENAME'] => 
$_SERVER['PATH_TRANSLATED'] => 
$_SERVER['DOCUMENT_ROOT'] => 
$_SERVER['REQUEST_TIME_FLOAT'] => 1511418080.409
$_SERVER['REQUEST_TIME'] => 1511418080
$_SERVER['argv'] => Array
(
)

$_SERVER['argc'] => 0

PHP License
This program is free software; you can redistribute it and/or modify
it under the terms of the PHP License as published by the PHP Group
and included in the distribution in the file:  LICENSE

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any
questions about PHP licensing, please contact license@php.net.
phpinfo.txt (49,114 bytes)

ildar

2017-11-23 06:33

reporter   ~0004481

The fix is
-zend_extension=/opt/phpfarm/inst/php-7.2.0RC6/lib/php/extensions/xdebug2x.so
+;zend_extension=/opt/phpfarm/inst/php-7.2.0RC6/lib/php/extensions/xdebug2x.so

derick

2017-11-23 10:27

administrator   ~0004482

I'm not having success reproducing this.

Can you reproduce this on the command line?
Does this happen always? Or does a debugging session need to be active?

ildar

2017-11-23 11:28

reporter   ~0004483

It happens always.

aim-server[~/public_html]$ /opt/phpfarm/inst/php-7.2.0RC6/bin/php p.php
zsh: segmentation fault (core dumped) /opt/phpfarm/inst/php-7.2.0RC6/bin/php p.php
aim-server[~/public_html]$ cat p.php
<?php

class XCLowOpensslCryptor
{
    public function decryptString($in, $key, $fmt = null)
    {//{{{
        throw new \Exception(__METHOD__ . ' - Not an openssl cipher');
    }//}}}
}

try {
    $low_cryptor = new XCLowOpensslCryptor();
    $res = $low_cryptor->decryptString(1, 2);
} catch (Exception $e) {
}

echo 'Test Passed';
die();
aim-server[~/public_html]$

ildar

2017-11-23 11:29

reporter   ~0004484

It works without exception

aim-server[~/public_html]$ /opt/phpfarm/inst/php-7.2.0RC6/bin/php p.php
Test Passed% aim-server[~/public_html]$ cat p.php
<?php

class XCLowOpensslCryptor
{
    public function decryptString($in, $key, $fmt = null)
    {//{{{
    }//}}}
}

try {
    $low_cryptor = new XCLowOpensslCryptor();
    $res = $low_cryptor->decryptString(1, 2);
} catch (Exception $e) {
}

echo 'Test Passed';
die();

ildar

2017-11-23 11:45

reporter   ~0004485

Last edited: 2017-11-23 11:48

View 2 revisions

I have used
git bisect to find the first bad commit.
https://git-scm.com/book/en/v2/Git-Tools-Debugging-with-Git

It shows

aim-server[~/tmp/xdebug]$ git bisect bad
669a81c9ba59905b2177c4dde77899027a7a8953 is the first bad commit
commit 669a81c9ba59905b2177c4dde77899027a7a8953
Author: Derick Rethans <github@derickrethans.nl>
Date: Sat Nov 18 17:14:00 2017 +0000

    Implemented issue 0001323: Add setting to configure the formatting of filenames

:100644 100644 d278ac14c635c5b4d5c7acfd70edf2d0aed8ac96 da488fa6ae1e975fc768d375ed886261f8a126f1 M php_xdebug.h
:040000 040000 51444c54743c6d7d0f4d145a95e6a43cca1ebdc9 f1dccd4319f34bcc73cc9088d9b71c9e8b82d6f1 M tests
:100644 100644 11eb255edaddedad3f63b8a17f96b7475527f13e 27ee9fec95b1b935349775c490c701e7b3ae1380 M usefulstuff.c
:100644 100644 04b05896ecd090a74c1b4f729157817ca8e05444 0777d9313964dc6de3a12ca32c406f2484e22f39 M usefulstuff.h
:100644 100644 3041c7d9dbe30dbc446a7e2589f952f191b1a276 d87fb01e03cd883709863f9d74ec8e2c0aad7644 M xdebug.c
:100644 100644 3593414a4efb0dca30fbde67d6bbc905a3cdbe6d 771786a53cef53e7c2b77bba077ebda574aa15cc M xdebug_stack.c




So it works on the commit
aim-server[~/tmp/xdebug]$ git checkout 669a81c9ba59905b2177c4dde77899027a7a8953^1


but it doesn't work
on this commit

aim-server[~/tmp/xdebug]$ git checkout 669a81c9ba59905b2177c4dde77899027a7a8953

derick

2017-11-23 11:47

administrator   ~0004486

OK, as you're running this with PHP having debug enabled, could you run this with gdb:

gdb --args /opt/phpfarm/inst/php-7.2.0RC6/bin/php p.php

end then on the GDB prompt:

run

and when it crashes:

bt full

and add all the output as a file to this ticket.

ildar

2017-11-23 11:55

reporter  

gdb.txt (11,100 bytes)
aim-server[~/tmp/xdebug/del]$ gdb --args /opt/phpfarm/inst/php-7.2.0RC6/bin/php ~/www/p.php
GNU gdb (GDB) 8.0.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /opt/phpfarm/inst/php-7.2.0RC6/bin/php...done.
(gdb) run
Starting program: /opt/phpfarm/inst/php-7.2.0RC6/bin/php /home/aim/www/p.php
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff030fe43 in dump_hash (l=0x7ffff0533bc0 <xdebug_globals+448>, name=0x7ffff0327668 "_SERVER", name_len=7, html=0, str=0x7fffffff8400)
    at /home/aim/tmp/xdebug/xdebug_superglobals.c:120
120			s = zend_string_init(elem->ptr, strlen(elem->ptr), 0);
(gdb) bt full
#0  0x00007ffff030fe43 in dump_hash (l=0x7ffff0533bc0 <xdebug_globals+448>, name=0x7ffff0327668 "_SERVER", name_len=7, html=0, str=0x7fffffff8400)
    at /home/aim/tmp/xdebug/xdebug_superglobals.c:120
        s = 0x0
        z = 0x7ffff0863200
        num = 0
        key = 0x0
        val = 0x0
        ht = 0x7ffff08622a0
        elem = 0x10101
#1  0x00007ffff0310070 in xdebug_get_printable_superglobals (html=0) at /home/aim/tmp/xdebug/xdebug_superglobals.c:142
        str = {l = 14, a = 1038, d = 0x555556c5d960 "\nDump $_SERVER"}
#2  0x00007ffff030bbe6 in xdebug_append_printable_stack (str=0x7fffffff8520, html=0) at /home/aim/tmp/xdebug/xdebug_stack.c:467
        tmp = 0x100000000 <error: Cannot access memory at address 0x100000000>
        le = 0x0
        i = 0x555556bb7f00
        printed_frames = 2
        formats = 0x7ffff0533700 <text_formats>
#3  0x00007ffff02eda8b in xdebug_throw_exception_hook (exception=0x7ffff081e190) at /home/aim/tmp/xdebug/xdebug.c:1479
        code = 0x7ffff088a048
        message = 0x7ffff088a028
        file = 0x7ffff088a058
        line = 0x7ffff088a068
        xdebug_message_trace = 0x555556b11eb0
        previous_exception = 0x7ffff088a088
        default_ce = 0x555556b12960
        exception_ce = 0x555556b12960
        extra_brk_info = 0x7fffffff8560
        code_str = 0x0
        exception_trace = 0x555556b11eb0 "\001(oUUU"
        tmp_str = {l = 301, a = 1025, 
          d = 0x555556bb83e0 "\nException: XCLowOpensslCryptor::decryptString - Not an openssl cipher in /home/aim/public_html/p.php on line 7\n\nCall Stack:\n    0.0001     449768   1. {main}() /home/aim/public_html/p.php:0\n    0.000"...}
#4  0x0000555555e10843 in zend_throw_exception_internal (exception=0x7ffff081e190) at /opt/phpfarm/src/php-7.2.0RC6/Zend/zend_exceptions.c:167
No locals.
#5  0x0000555555e15256 in zend_throw_exception_object (exception=0x7ffff081e190) at /opt/phpfarm/src/php-7.2.0RC6/Zend/zend_exceptions.c:1042
        exception_ce = 0x555556b12960
#6  0x0000555555e6b885 in ZEND_THROW_SPEC_VAR_HANDLER () at /opt/phpfarm/src/php-7.2.0RC6/Zend/zend_vm_execute.h:16140
        value = 0x7ffff081e190
        free_op1 = 0x7ffff081e190
#7  0x0000555555e4bbde in ZEND_USER_OPCODE_SPEC_HANDLER () at /opt/phpfarm/src/php-7.2.0RC6/Zend/zend_vm_execute.h:1832
        ret = 2
#8  0x0000555555ece926 in execute_ex (ex=0x7ffff081e110) at /opt/phpfarm/src/php-7.2.0RC6/Zend/zend_vm_execute.h:59815
        orig_opline = 0x7ffff08951c0
        orig_execute_data = 0x7ffff081e030
#9  0x00007ffff02eec65 in xdebug_execute_ex (execute_data=0x7ffff081e110) at /home/aim/tmp/xdebug/xdebug.c:1803
        op_array = 0x7ffff080d210
        edata = 0x7ffff081e030
        dummy = 0x2f030767e
        fse = 0x555556bb7f00
        xfse = 0x555556bb7f00
        magic_cookie = 0x0
        do_return = 0
        function_nr = 2
        le = 0x555556bb8120
---Type <return> to continue, or q <return> to quit---
        code_coverage_func_info = {class = 0x7ffff081e190 "", function = 0x4000000002 <error: Cannot access memory at address 0x4000000002>, type = 1433348224, internal = 21845}
        code_coverage_function_name = 0x0
        code_coverage_file_name = 0x0
        code_coverage_init = 0
#10 0x0000555555e4909e in ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER () at /opt/phpfarm/src/php-7.2.0RC6/Zend/zend_vm_execute.h:1013
        call = 0x7ffff081e110
        fbc = 0x7ffff080d210
        object = 0x7ffff088a110
        ret = 0x7ffff081e0f0
        __PRETTY_FUNCTION__ = "ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER"
#11 0x0000555555e4bbde in ZEND_USER_OPCODE_SPEC_HANDLER () at /opt/phpfarm/src/php-7.2.0RC6/Zend/zend_vm_execute.h:1832
        ret = 2
#12 0x0000555555ece926 in execute_ex (ex=0x7ffff081e030) at /opt/phpfarm/src/php-7.2.0RC6/Zend/zend_vm_execute.h:59815
        orig_opline = 0x0
        orig_execute_data = 0x0
#13 0x00007ffff02eec65 in xdebug_execute_ex (execute_data=0x7ffff081e030) at /home/aim/tmp/xdebug/xdebug.c:1803
        op_array = 0x7ffff0888300
        edata = 0x0
        dummy = 0x0
        fse = 0x555556c0f400
        xfse = 0x555556c0f400
        magic_cookie = 0x0
        do_return = 0
        function_nr = 0
        le = 0x555556bb7cf0
        code_coverage_func_info = {class = 0x7fffffff8850 "\220\210\377\377\377\177", function = 0x555555e45937 <i_init_code_execute_data+226> "H\213E\360H\213\220\250", type = -259489024, 
          internal = 32767}
        code_coverage_function_name = 0x0
        code_coverage_file_name = 0x0
        code_coverage_init = 0
#14 0x0000555555ed3b9d in zend_execute (op_array=0x7ffff0888300, return_value=0x0) at /opt/phpfarm/src/php-7.2.0RC6/Zend/zend_vm_execute.h:63763
        execute_data = 0x7ffff081e030
#15 0x0000555555de3934 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /opt/phpfarm/src/php-7.2.0RC6/Zend/zend.c:1496
        files = {{gp_offset = 40, fp_offset = 48, overflow_arg_area = 0x7fffffff89b0, reg_save_area = 0x7fffffff88f0}}
        i = 1
        file_handle = 0x7fffffffaec0
        op_array = 0x7ffff0888300
#16 0x0000555555d477eb in php_execute_script (primary_file=0x7fffffffaec0) at /opt/phpfarm/src/php-7.2.0RC6/main/main.c:2592
        realfile = "/home/aim/public_html/p.php", '\000' <repeats 101 times>, "\260\215\253VUU\000\000\006\024\000\000UU\000\000\200\215\253VUU\000\000\006\024\000\000UU\000\000\260\215\253VUU\000\000\006\024\000\000UU\000\000\060\215\253VUU\000\000\006\024\000\000\000\000\000\000`\206\253VUU\000\000"...
        __orig_bailout = 0x7fffffffaf30
        __bailout = {{__jmpbuf = {0, -4711769578487752663, 93824993929344, 140737488339520, 0, 0, -4711769579731363799, -1456568270816880599}, __mask_was_saved = 0, __saved_mask = {
              __val = {140737228320712, 140737228320680, 140737228320720, 140737488329648, 93825000953979, 5348033147502592, 0, 93825010137704, 17179871079, 40, 140737228308544, 
                140737228316672, 34099691584, 140737228312640, 140737228308544, 140737228312672}}}}
        prepend_file_p = 0x0
        append_file_p = 0x0
        prepend_file = {handle = {fd = 0, fp = 0x0, stream = {handle = 0x0, isatty = 0, mmap = {len = 0, pos = 0, map = 0x0, buf = 0x0, old_handle = 0x0, old_closer = 0x0}, reader = 0x0, 
              fsizer = 0x0, closer = 0x0}}, filename = 0x0, opened_path = 0x0, type = ZEND_HANDLE_FILENAME, free_filename = 0 '\000'}
        append_file = {handle = {fd = 0, fp = 0x0, stream = {handle = 0x0, isatty = 0, mmap = {len = 0, pos = 0, map = 0x0, buf = 0x0, old_handle = 0x0, old_closer = 0x0}, reader = 0x0, 
              fsizer = 0x0, closer = 0x0}}, filename = 0x0, opened_path = 0x0, type = ZEND_HANDLE_FILENAME, free_filename = 0 '\000'}
        old_cwd = 0x7fffffff89b0 ""
        use_heap = 0 '\000'
        retval = 0
#17 0x0000555555ed6838 in do_cli (argc=2, argv=0x555556a94d90) at /opt/phpfarm/src/php-7.2.0RC6/sapi/cli/php_cli.c:1011
---Type <return> to continue, or q <return> to quit---
        __orig_bailout = 0x7fffffffc090
        __bailout = {{__jmpbuf = {0, -4711769577260918743, 93824993929344, 140737488339520, 0, 0, -4711769578489849815, -1456568486941108183}, __mask_was_saved = 0, __saved_mask = {
              __val = {140737488337280, 77309411346, 0, 12884901891, 0, 0, 0, 0, 140737266670324, 0, 0, 0, 0, 0, 288, 93825010116440}}}}
        c = -1
        file_handle = {handle = {fd = -259481584, fp = 0x7ffff088a010, stream = {handle = 0x7ffff088a010, isatty = 0, mmap = {len = 330, pos = 0, map = 0x7ffff7f84000, 
                buf = 0x7ffff7f84000 <error: Cannot access memory at address 0x7ffff7f84000>, old_handle = 0x555556ab0510, old_closer = 0x555555e0cb5d <zend_stream_stdio_closer>}, 
              reader = 0x555555e0cb2e <zend_stream_stdio_reader>, fsizer = 0x555555e0cb8f <zend_stream_stdio_fsizer>, closer = 0x555555e0ccca <zend_stream_mmap_closer>}}, 
          filename = 0x555556a94de0 "/home/aim/www/p.php", opened_path = 0x0, type = ZEND_HANDLE_MAPPED, free_filename = 0 '\000'}
        behavior = 1
        reflection_what = 0x0
        request_started = 1
        exit_status = 0
        php_optarg = 0x0
        orig_optarg = 0x0
        php_optind = 2
        orig_optind = 1
        exec_direct = 0x0
        exec_run = 0x0
        exec_begin = 0x0
        exec_end = 0x0
        arg_free = 0x555556a94de0 "/home/aim/www/p.php"
        arg_excp = 0x555556a94d98
        script_file = 0x555556a94de0 "/home/aim/www/p.php"
        translated_path = 0x555556bb7a00 "/home/aim/public_html/p.php"
        interactive = 0
        lineno = 1
        param_error = 0x0
        hide_argv = 0
#18 0x0000555555ed79f6 in main (argc=2, argv=0x555556a94d90) at /opt/phpfarm/src/php-7.2.0RC6/sapi/cli/php_cli.c:1404
        __orig_bailout = 0x0
        __bailout = {{__jmpbuf = {0, -4711769577304958935, 93824993929344, 140737488339520, 0, 0, -4711769577263015895, -1456568486008924119}, __mask_was_saved = 0, __saved_mask = {
              __val = {140737266664161, 140733193388069, 35, 4545, 4543, 0, 102306120974646, 1, 9, 1, 93825002250349, 5085241278585, 0, 93825002250272, 93824993929344, 140737488339520}}}}
        c = -1
        exit_status = 0
        module_started = 1
        sapi_started = 1
        php_optarg = 0x0
        php_optind = 1
        use_extended_info = 0
        ini_path_override = 0x0
        ini_entries = 0x555556a95020 "html_errors=0\nregister_argc_argv=1\nimplicit_flush=1\noutput_buffering=0\nmax_execution_time=0\nmax_input_time=-1\n"
        ini_entries_len = 110
        ini_ignore = 0
        sapi_module = 0x555556a544c0 <cli_sapi_module>
(gdb) quit
A debugging session is active.

	Inferior 1 [process 15223] will be killed.

Quit anyway? (y or n) y
aim-server[~/tmp/xdebug/del]$ 

gdb.txt (11,100 bytes)

ildar

2017-11-23 11:55

reporter   ~0004487

I have uploaded gdb.txt

derick

2017-11-23 13:00

administrator   ~0004488

Can you run the following in the Xdebug source directory:

phpize && ./configure && make clean && make -j 5 all

(and then copy the generated xdebug.so to the right place, or use "make install")

I am thinking it might not have picked up a change in a .h file.

ildar

2017-11-23 13:14

reporter   ~0004489

I have tried

1)
/opt/phpfarm/inst/php-7.2.0RC6/bin/phpize
./configure --enable-xdebug --with-php-config=/opt/phpfarm/inst/php-7.2.0RC6/bin/php-config
make clean
make -j 5 all

As result it works!

2)
/opt/phpfarm/inst/php-7.2.0RC6/bin/phpize
./configure --enable-xdebug --with-php-config=/opt/phpfarm/inst/php-7.2.0RC6/bin/php-config
make clean
make

It works in this way too.

It seems
'make clean' must be launched every time.

Sorry for the false bug request.

Thank you.

ildar

2017-11-23 13:16

reporter   ~0004490

I have changed my instruction to build

/opt/phpfarm/inst/php-7.2.0RC6/bin/phpize
./configure --enable-xdebug --with-php-config=/opt/phpfarm/inst/php-7.2.0RC6/bin/php-config
make clean;make
cpi modules/xdebug.so /opt/phpfarm/inst/php-7.2.0RC6/lib/php/extensions/xdebug2x.so
sudo -E vim /opt/phpfarm/inst/php-7.2.0RC6/lib/php.ini
zend_extension=/opt/phpfarm/inst/php-7.2.0RC6/lib/php/extensions/xdebug2x.so

ildar

2017-11-23 13:20

reporter   ~0004491

May be
make clean should be added here
https://xdebug.org/docs/install ?

ildar

2017-11-23 13:21

reporter   ~0004492

and here
https://github.com/derickr/xdebug

derick

2017-11-23 18:30

administrator   ~0004493

Thanks for the great report. And good to know it wasn't actually a bug after all.

The "make clean" is only really needed when you have already compiled Xdebug in the same directory before *and* I have changed a header file. There is a "./rebuild.sh" script in Xdebug's source checkout to do all the steps for you.

I've updated the documentation at https://github.com/xdebug/xdebug#xdebug

Issue History

Date Modified Username Field Change
2017-11-23 06:31 ildar New Issue
2017-11-23 06:31 ildar File Added: phpinfo.txt
2017-11-23 06:33 ildar Note Added: 0004481
2017-11-23 10:27 derick Note Added: 0004482
2017-11-23 10:27 derick Assigned To => derick
2017-11-23 10:27 derick Status new => feedback
2017-11-23 11:28 ildar Note Added: 0004483
2017-11-23 11:28 ildar Status feedback => assigned
2017-11-23 11:29 ildar Note Added: 0004484
2017-11-23 11:45 ildar Note Added: 0004485
2017-11-23 11:47 derick Note Added: 0004486
2017-11-23 11:47 derick Status assigned => feedback
2017-11-23 11:48 ildar Note Edited: 0004485 View Revisions
2017-11-23 11:55 ildar File Added: gdb.txt
2017-11-23 11:55 ildar Note Added: 0004487
2017-11-23 11:55 ildar Status feedback => assigned
2017-11-23 13:00 derick Note Added: 0004488
2017-11-23 13:00 derick Status assigned => feedback
2017-11-23 13:14 ildar Note Added: 0004489
2017-11-23 13:14 ildar Status feedback => assigned
2017-11-23 13:16 ildar Note Added: 0004490
2017-11-23 13:20 ildar Note Added: 0004491
2017-11-23 13:21 ildar Note Added: 0004492
2017-11-23 18:30 derick Note Added: 0004493
2017-11-23 18:30 derick Status assigned => resolved
2017-11-23 18:30 derick Resolution open => no change required