PHP Test Failed

From: Date: Sat, 06 Mar 2004 22:23:47 +0000
Subject: PHP Test Failed
Groups: php.qa 
Request: Send a blank email to php-qa+get-16016@lists.php.net to get a copy of this message


===================================================================== FAILED TEST SUMMARY --------------------------------------------------------------------- Testing $argc and $argv handling (GET) [tests/basic/011.phpt] Bug #22592 (cascading assignments to strings with curly braces broken) [tests/lang/bug22592.phpt] Bug #24773 (unset() of integers treated as arrays causes a crash) [tests/lang/bug24773.phpt] Bug #24783 ($key not binary safe in "foreach($arr as $key => $val)") [tests/lang/bug24783.phpt] Bug #25547 (error_handler and array index with function call) [tests/lang/bug25547.phpt] Check for mktime with out-of-range parameters [ext/standard/tests/time/003.phpt] mktime() [ext/standard/tests/time/mktime.phpt] ===================================================================== ===================================================================== TEST RESULT SUMMARY --------------------------------------------------------------------- Exts skipped : 73 Exts tested : 15 --------------------------------------------------------------------- Number of tests : 578 Tests skipped : 251 (43.4%) Tests warned : 0 ( 0.0%) Tests failed : 7 ( 1.2%) Tests passed : 320 (55.4%) --------------------------------------------------------------------- Time taken : 46 seconds ===================================================================== ================================================================================ /usr/local/src/php-4.3.5RC3/tests/basic/011.phpt ================================================================================ ---- EXPECTED OUTPUT 0: ab 1: cd 2: ef 3: 123 4: test ---- ACTUAL OUTPUT PHP Notice: Undefined index: argc in /usr/local/src/php-4.3.5RC3/tests/basic/011.php on line 4 PHP Notice: Undefined index: argv in /usr/local/src/php-4.3.5RC3/tests/basic/011.php on line 5 Content-type: text/html X-Powered-By: PHP/4.3.5RC3 ---- FAILED ================================================================================ 001- 0: ab 001+ PHP Notice: Undefined index: argc in /usr/local/src/php-4.3.5RC3/tests/basic/011.php on line 4 002- 1: cd 002+ PHP Notice: Undefined index: argv in /usr/local/src/php-4.3.5RC3/tests/basic/011.php on line 5 003- 2: ef 003+ Content-type: text/html 004- 3: 123 004+ X-Powered-By: PHP/4.3.5RC3 005- 4: test ================================================================================ ================================================================================ /usr/local/src/php-4.3.5RC3/tests/lang/bug22592.phpt ================================================================================ ---- EXPECTED OUTPUT string(5) "* *-*" string(7) "* *-* *" string(7) "*4*-* *" string(7) "*4*s* *" string(8) "*4*s* *0" string(8) "*-*-* *0" string(8) "*-*s*s*0" string(8) "4-4s4s*0" string(9) "4-4s4s505" string(9) "454s4s505" string(1) "-" string(6) "string" int(4) int(5) string(1) "5" [Illegal string offset: -1] ---- ACTUAL OUTPUT string(5) "* *-*" string(7) "* *-* *" string(7) "*4*-* *" string(7) "*4*s* *" string(8) "*4*s* *0" string(8) "**-* *0" string(8) "***s*0" string(8) "4s*0" string(9) "4s05" string(9) "4s05" NULL NULL NULL NULL NULL [Illegal string offset: -1] ---- FAILED ================================================================================ 006- string(8) "*-*-* *0" 006+ string(8) "**-* *0" 007- string(8) "*-*s*s*0" 007+ string(8) "***s*0" 008- string(8) "4-4s4s*0" 008+ string(8) "4s*0" 009- string(9) "4-4s4s505" 009+ string(9) "4s05" 010- string(9) "454s4s505" 010+ string(9) "4s05" 011- string(1) "-" 011+ NULL 012- string(6) "string" 012+ NULL 013- int(4) 013+ NULL 014- int(5) 014+ NULL 015- string(1) "5" 015+ NULL ================================================================================ ================================================================================ /usr/local/src/php-4.3.5RC3/tests/lang/bug24773.phpt ================================================================================ ---- EXPECTED OUTPUT Fatal error: Cannot unset string offsets in %s on line %d ---- ACTUAL OUTPUT Segmentation fault (core dumped) ---- FAILED ================================================================================ 001- Fatal error: Cannot unset string offsets in %s on line %d 001+ Segmentation fault (core dumped) ================================================================================ ================================================================================ /usr/local/src/php-4.3.5RC3/tests/lang/bug24783.phpt ================================================================================ ---- EXPECTED OUTPUT 7: foo%00bar => foo%00bar ---- ACTUAL OUTPUT 3: foo => foo%00bar ---- FAILED ================================================================================ 001- 7: foo%00bar => foo%00bar 001+ 3: foo => foo%00bar ================================================================================ ================================================================================ /usr/local/src/php-4.3.5RC3/tests/lang/bug25547.phpt ================================================================================ ---- EXPECTED OUTPUT handler(Undefined index: foo) Array ( [foo] => 1 ) Done ---- ACTUAL OUTPUT handler(Undefined index: foo) Array ( [(o] => 1 ) Done ---- FAILED ================================================================================ 004- [foo] => 1 004+ [(o] => 1 ================================================================================ ================================================================================ /usr/local/src/php-4.3.5RC3/ext/standard/tests/time/003.phpt ================================================================================ ---- EXPECTED OUTPUT 2000-02-29 2000-02-28 2000-02-29 2001-02-28 2001-03-01 1999-11-30 2000-05-29 12:00:00 2000-05-29 13:00:00 2000-05-29 12:00:00 2000-01-31 12:00:00 2000-01-31 12:00:00 2000-01-31 11:00:00 2000-04-29 12:00:00 2000-04-29 13:00:00 2000-04-29 12:00:00 ---- ACTUAL OUTPUT 2000-02-29 2000-02-28 2000-02-29 2001-02-28 2001-03-01 1999-11-30 2000-05-29 12:00:00 2000-05-29 07:00:00 2000-05-29 12:00:00 2000-01-31 12:00:00 2000-01-31 06:00:00 2000-01-31 11:00:00 2000-04-29 12:00:00 2000-04-29 07:00:00 2000-04-29 12:00:00 ---- FAILED ================================================================================ 008- 2000-05-29 13:00:00 008+ 2000-05-29 07:00:00 011- 2000-01-31 12:00:00 011+ 2000-01-31 06:00:00 014- 2000-04-29 13:00:00 014+ 2000-04-29 07:00:00 ================================================================================ ================================================================================ /usr/local/src/php-4.3.5RC3/ext/standard/tests/time/mktime.phpt ================================================================================ ---- EXPECTED OUTPUT int(1009843200) int(1009843200) int(1009843200) int(1009843200) int(1025481600) int(1025481600) int(1025481600) int(1025481600) int(1009839600) int(1009839600) int(1009839600) int(1009836000) int(1025474400) int(1025474400) int(1025478000) int(1025474400) ---- ACTUAL OUTPUT int(1009843200) int(1009843200) int(1009843200) int(-3662) int(1025481600) int(1025481600) int(1025481600) int(-3662) int(1009839600) int(1009839600) int(1009839600) int(1009857600) int(1025474400) int(1025474400) int(1025456400) int(1025474400) ---- FAILED ================================================================================ 004- int(1009843200) 004+ int(-3662) 008- int(1025481600) 008+ int(-3662) 012- int(1009836000) 012+ int(1009857600) 015- int(1025478000) 015+ int(1025456400) ================================================================================ ================================================================================ BUILD ENVIRONMENT ================================================================================ OS: FreeBSD - FreeBSD devel.example.com 4.9-RELEASE FreeBSD 4.9-RELEASE #0: Mon Oct i386 Automake: automake (GNU automake) 1.5 Written by Tom Tromey <tromey@cygnus.com>. Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Autoconf: autoconf (GNU Autoconf) 2.53 Written by David J. MacKenzie and Akim Demaille. Copyright 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Libtool: ltmain.sh (GNU libtool) 1.4.3 (1.922.2.110 2002/10/23 01:39:54) Compiler: Using builtin specs. gcc version 2.95.4 20020320 [FreeBSD] Bison: bison (GNU Bison) 1.75 Written by Robert Corbett and Richard Stallman. Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Libraries: /usr/local/src/php-4.3.5RC3/sapi/cli/php: libcrypt.so.2 => /usr/lib/libcrypt.so.2 (0x281a2000) libfreetype.so.9 => /usr/local/lib/libfreetype.so.9 (0x281bb000) libpng.so.5 => /usr/local/lib/libpng.so.5 (0x28220000) libz.so.2 => /usr/lib/libz.so.2 (0x28243000) libjpeg.so.9 => /usr/local/lib/libjpeg.so.9 (0x28250000) libm.so.2 => /usr/lib/libm.so.2 (0x2826e000) libc.so.4 => /usr/lib/libc.so.4 (0x28289000) ================================================================================ PHPINFO ================================================================================ phpinfo() PHP Version => 4.3.5RC3 System => FreeBSD devel.example.com 4.9-RELEASE FreeBSD 4.9-RELEASE #0: Mon Oct i386 Build Date => Mar 6 2004 17:02:42 Configure Command => './configure' '--with-mysql' '--with-jpeg-dir=/usr/local/jpeg-6b' '--with-png-dir=/usr/local' '--with-freetype-dir=/usr/local' '--with-ttf' '--with-gd' '--enable-gd-native-ttf' '--enable-sockets' '--with-zlib' '--with-exif' '--enable-sysvsem' '--enable-sysvshm' Server API => Command Line Interface Virtual Directory Support => disabled Configuration File (php.ini) Path => /usr/local/Zend/etc/php.ini PHP API => 20020918 PHP Extension => 20020429 Zend Extension => 20021010 Debug Build => no Thread Safety => disabled Registered PHP Streams => php, http, ftp, compress.zlib This program makes use of the Zend Scripting Language Engine: Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with Zend Extension Manager v1.0.0, Copyright (c) 2003, by Zend Technologies with Zend Optimizer v2.1.0, Copyright (c) 1998-2003, by Zend Technologies _______________________________________________________________________ Configuration PHP Core Directive => Local Value => Master Value allow_call_time_pass_reference => Off => Off allow_url_fopen => On => On always_populate_raw_post_data => Off => Off arg_separator.input => & => & arg_separator.output => & => & asp_tags => Off => Off auto_append_file => no value => no value auto_prepend_file => no value => no value browscap => no value => no value default_charset => no value => no value default_mimetype => text/html => text/html define_syslog_variables => Off => Off disable_classes => no value => no value disable_functions => no value => no value display_errors => Off => Off display_startup_errors => Off => Off doc_root => no value => no value docref_ext => no value => no value docref_root => no value => no value enable_dl => On => On error_append_string => no value => no value error_log => no value => no value error_prepend_string => no value => no value error_reporting => 2047 => 2047 expose_php => On => On extension_dir => ./ => ./ file_uploads => On => On gpc_order => GPC => GPC highlight.bg => #FFFFFF => #FFFFFF highlight.comment => #FF8000 => #FF8000 highlight.default => #0000BB => #0000BB highlight.html => #000000 => #000000 highlight.keyword => #007700 => #007700 highlight.string => #DD0000 => #DD0000 html_errors => Off => On ignore_repeated_errors => Off => Off ignore_repeated_source => Off => Off ignore_user_abort => Off => Off implicit_flush => On => Off include_path => .:/usr/local/lib/php => .:/usr/local/lib/php log_errors => On => On log_errors_max_len => 1024 => 1024 magic_quotes_gpc => Off => Off magic_quotes_runtime => Off => Off magic_quotes_sybase => Off => Off max_execution_time => 0 => 30 max_input_time => 60 => 60 open_basedir => no value => no value output_buffering => 0 => 4096 output_handler => no value => no value post_max_size => 8M => 8M precision => 14 => 14 register_argc_argv => On => Off register_globals => Off => Off report_memleaks => On => On safe_mode => Off => Off safe_mode_exec_dir => no value => no value safe_mode_gid => Off => Off safe_mode_include_dir => no value => no value sendmail_from => me@localhost.com => me@localhost.com sendmail_path => /usr/sbin/sendmail -t -i => /usr/sbin/sendmail -t -i serialize_precision => 100 => 100 short_open_tag => On => On SMTP => localhost => localhost smtp_port => 25 => 25 sql.safe_mode => Off => Off track_errors => Off => Off unserialize_callback_func => no value => no value upload_max_filesize => 16M => 16M upload_tmp_dir => no value => no value user_dir => no value => no value variables_order => GPCS => GPCS xmlrpc_error_number => 0 => 0 xmlrpc_errors => Off => Off y2k_compliance => On => On Zend Optimizer Optimization Pass 1 => enabled Optimization Pass 2 => enabled Optimization Pass 3 => enabled Optimization Pass 9 => disabled Optimization Pass 10 => disabled Zend Loader => enabled License Path => ctype ctype functions => enabled gd GD Support => enabled GD Version => bundled (2.0.17 compatible) FreeType Support => enabled FreeType Linkage => with freetype GIF Read Support => enabled JPG Support => enabled PNG Support => enabled WBMP Support => enabled XBM Support => enabled mysql MySQL Support => enabled Active Persistent Links => 0 Active Links => 0 Client API version => 3.23.49 MYSQL_MODULE_TYPE => builtin MYSQL_SOCKET => /tmp/mysql.sock MYSQL_INCLUDE => MYSQL_LIBS => Directive => Local Value => Master Value mysql.allow_persistent => On => On mysql.connect_timeout => 60 => 60 mysql.default_host => no value => no value mysql.default_password => no value => no value mysql.default_port => no value => no value mysql.default_socket => no value => no value mysql.default_user => no value => no value mysql.max_links => Unlimited => Unlimited mysql.max_persistent => Unlimited => Unlimited mysql.trace_mode => Off => Off overload User-Space Object Overloading Support => enabled pcre PCRE (Perl Compatible Regular Expressions) Support => enabled PCRE Library Version => 4.5 01-December-2003 posix Revision => $Revision: 1.51.2.2 $ session Session Support => enabled Registered save handlers => files user Directive => Local Value => Master Value session.auto_start => Off => Off session.bug_compat_42 => Off => Off session.bug_compat_warn => On => On session.cache_expire => 180 => 180 session.cache_limiter => nocache => nocache session.cookie_domain => no value => no value session.cookie_lifetime => 0 => 0 session.cookie_path => / => / session.cookie_secure => Off => Off session.entropy_file => no value => no value session.entropy_length => 0 => 0 session.gc_divisor => 1000 => 1000 session.gc_maxlifetime => 1440 => 1440 session.gc_probability => 1 => 1 session.name => PHPSESSID => PHPSESSID session.referer_check => no value => no value session.save_handler => files => files session.save_path => /tmp => /tmp session.serialize_handler => php => php session.use_cookies => On => On session.use_only_cookies => Off => Off session.use_trans_sid => Off => Off sockets Sockets Support => enabled standard Regex Library => Bundled library enabled Dynamic Library Support => enabled Path to sendmail => /usr/sbin/sendmail -t -i Directive => Local Value => Master Value assert.active => 1 => 1 assert.bail => 0 => 0 assert.callback => no value => no value assert.quiet_eval => 0 => 0 assert.warning => 1 => 1 auto_detect_line_endings => 0 => 0 default_socket_timeout => 60 => 60 safe_mode_allowed_env_vars => PHP_ => PHP_ safe_mode_protected_env_vars => LD_LIBRARY_PATH => LD_LIBRARY_PATH url_rewriter.tags => a=href,area=href,frame=src,input=src,form=fakeentry => a=href,area=href,frame=src,input=src,form=fakeentry user_agent => no value => no value tokenizer Tokenizer Support => enabled xml XML Support => active XML Namespace Support => active EXPAT Version => 1.95.6 zlib ZLib Support => enabled Compiled Version => 1.1.4 Linked Version => 1.1.4 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 sysvsem sysvshm Environment Variable => Value CONTENT_TYPE => USER => root MACHTYPE => i386 MAIL => /var/mail/root VENDOR => intel SHLVL => 1 QUERY_STRING => HOME => /root TEST_PHP_SRCDIR => /usr/local/src/php-4.3.5RC3 PAGER => more CONTENT_LENGTH => SCRIPT_FILENAME => PATH_TRANSLATED => GROUP => wheel LOGNAME => root TEST_PHP_EXECUTABLE => /usr/local/src/php-4.3.5RC3/sapi/cli/php BLOCKSIZE => K TERM => vt100 PATH => /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin REMOTEHOST => 192.168.2.100 SHELL => /bin/csh HOST => devel.example.com REDIRECT_STATUS => REQUEST_METHOD => OSTYPE => FreeBSD PWD => /usr/local/src/php-4.3.5RC3 FTP_PASSIVE_MODE => YES CC => gcc HOSTTYPE => FreeBSD EDITOR => vi PHP Variables Variable => Value _SERVER["CONTENT_TYPE"] => _SERVER["USER"] => root _SERVER["MACHTYPE"] => i386 _SERVER["MAIL"] => /var/mail/root _SERVER["VENDOR"] => intel _SERVER["SHLVL"] => 1 _SERVER["QUERY_STRING"] => _SERVER["HOME"] => /root _SERVER["TEST_PHP_SRCDIR"] => /usr/local/src/php-4.3.5RC3 _SERVER["PAGER"] => more _SERVER["CONTENT_LENGTH"] => _SERVER["SCRIPT_FILENAME"] => _SERVER["PATH_TRANSLATED"] => _SERVER["GROUP"] => wheel _SERVER["LOGNAME"] => root _SERVER["TEST_PHP_EXECUTABLE"] => /usr/local/src/php-4.3.5RC3/sapi/cli/php _SERVER["BLOCKSIZE"] => K _SERVER["TERM"] => vt100 _SERVER["PATH"] => /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin _SERVER["REMOTEHOST"] => 192.168.2.100 _SERVER["SHELL"] => /bin/csh _SERVER["HOST"] => devel.example.com _SERVER["REDIRECT_STATUS"] => _SERVER["REQUEST_METHOD"] => _SERVER["OSTYPE"] => FreeBSD _SERVER["PWD"] => /usr/local/src/php-4.3.5RC3 _SERVER["FTP_PASSIVE_MODE"] => YES _SERVER["CC"] => gcc _SERVER["HOSTTYPE"] => FreeBSD _SERVER["EDITOR"] => vi _SERVER["PHP_SELF"] => _SERVER["SCRIPT_NAME"] => _SERVER["DOCUMENT_ROOT"] => _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.
« previous php.qa (#16016) next »