mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4: non living code related typo fixes Conflicts: Zend/zend_compile.c
This commit is contained in:
commit
c793a65690
48 changed files with 50 additions and 50 deletions
|
@ -1,5 +1,5 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Overridding Conflicting Methods should not result in a notice/warning about collisions
|
Overriding Conflicting Methods should not result in a notice/warning about collisions
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
|
|
|
@ -2381,7 +2381,7 @@ ZEND_API void zend_fetch_debug_backtrace(zval *return_value, int skip_last, int
|
||||||
MAKE_STD_ZVAL(arg_array);
|
MAKE_STD_ZVAL(arg_array);
|
||||||
array_init(arg_array);
|
array_init(arg_array);
|
||||||
|
|
||||||
/* include_filename always points to the last filename of the last last called-fuction.
|
/* include_filename always points to the last filename of the last last called-function.
|
||||||
if we have called include in the frame above - this is the file we have included.
|
if we have called include in the frame above - this is the file we have included.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1734,7 +1734,7 @@ void zend_do_begin_function_declaration(znode *function_token, znode *function_n
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
/* Push a seperator to the switch stack */
|
/* Push a separator to the switch stack */
|
||||||
zend_switch_entry switch_entry;
|
zend_switch_entry switch_entry;
|
||||||
|
|
||||||
switch_entry.cond.op_type = IS_UNUSED;
|
switch_entry.cond.op_type = IS_UNUSED;
|
||||||
|
@ -1828,7 +1828,7 @@ void zend_do_end_function_declaration(const znode *function_token TSRMLS_DC) /*
|
||||||
CG(active_op_array) = function_token->u.op_array;
|
CG(active_op_array) = function_token->u.op_array;
|
||||||
|
|
||||||
|
|
||||||
/* Pop the switch and foreach seperators */
|
/* Pop the switch and foreach separators */
|
||||||
zend_stack_del_top(&CG(switch_cond_stack));
|
zend_stack_del_top(&CG(switch_cond_stack));
|
||||||
zend_stack_del_top(&CG(foreach_copy_stack));
|
zend_stack_del_top(&CG(foreach_copy_stack));
|
||||||
}
|
}
|
||||||
|
@ -2671,7 +2671,7 @@ static int generate_free_foreach_copy(const zend_op *foreach_copy TSRMLS_DC) /*
|
||||||
{
|
{
|
||||||
zend_op *opline;
|
zend_op *opline;
|
||||||
|
|
||||||
/* If we reach the seperator then stop applying the stack */
|
/* If we reach the separator then stop applying the stack */
|
||||||
if (foreach_copy->result_type == IS_UNUSED && foreach_copy->op1_type == IS_UNUSED) {
|
if (foreach_copy->result_type == IS_UNUSED && foreach_copy->op1_type == IS_UNUSED) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1054,7 +1054,7 @@ ZEND_API int zend_lookup_class_ex(const char *name, int name_length, const zend_
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The compiler is not-reentrant. Make sure we __autoload() only during run-time
|
/* The compiler is not-reentrant. Make sure we __autoload() only during run-time
|
||||||
* (doesn't impact fuctionality of __autoload()
|
* (doesn't impact functionality of __autoload()
|
||||||
*/
|
*/
|
||||||
if (!use_autoload || zend_is_compiling(TSRMLS_C)) {
|
if (!use_autoload || zend_is_compiling(TSRMLS_C)) {
|
||||||
if (!key) {
|
if (!key) {
|
||||||
|
|
|
@ -302,7 +302,7 @@ struct _zend_php_scanner_globals {
|
||||||
unsigned char *script_filtered;
|
unsigned char *script_filtered;
|
||||||
size_t script_filtered_size;
|
size_t script_filtered_size;
|
||||||
|
|
||||||
/* input/ouput filters */
|
/* input/output filters */
|
||||||
zend_encoding_filter input_filter;
|
zend_encoding_filter input_filter;
|
||||||
zend_encoding_filter output_filter;
|
zend_encoding_filter output_filter;
|
||||||
const zend_encoding *script_encoding;
|
const zend_encoding *script_encoding;
|
||||||
|
|
|
@ -45,7 +45,7 @@ typedef struct _zend_lex_state {
|
||||||
unsigned char *script_filtered;
|
unsigned char *script_filtered;
|
||||||
size_t script_filtered_size;
|
size_t script_filtered_size;
|
||||||
|
|
||||||
/* input/ouput filters */
|
/* input/output filters */
|
||||||
zend_encoding_filter input_filter;
|
zend_encoding_filter input_filter;
|
||||||
zend_encoding_filter output_filter;
|
zend_encoding_filter output_filter;
|
||||||
const zend_encoding *script_encoding;
|
const zend_encoding *script_encoding;
|
||||||
|
|
|
@ -1582,7 +1582,7 @@ cat <<X
|
||||||
| see the file debug.log for error messages. |
|
| see the file debug.log for error messages. |
|
||||||
| |
|
| |
|
||||||
| If you are unable to fix this, send the file debug.log to the |
|
| If you are unable to fix this, send the file debug.log to the |
|
||||||
| php-install@lists.php.net mailing list and include appropiate |
|
| php-install@lists.php.net mailing list and include appropriate |
|
||||||
| information about your setup. |
|
| information about your setup. |
|
||||||
X
|
X
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1396,7 +1396,7 @@ PHPAPI void php_date_set_tzdb(timelib_tzdb *tzdb)
|
||||||
}
|
}
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
/* {{{ php_parse_date: Backwards compability function */
|
/* {{{ php_parse_date: Backwards compatibility function */
|
||||||
PHPAPI signed long php_parse_date(char *string, signed long *now)
|
PHPAPI signed long php_parse_date(char *string, signed long *now)
|
||||||
{
|
{
|
||||||
timelib_time *parsed_time;
|
timelib_time *parsed_time;
|
||||||
|
|
|
@ -182,7 +182,7 @@ ZEND_END_MODULE_GLOBALS(date)
|
||||||
#define DATEG(v) (date_globals.v)
|
#define DATEG(v) (date_globals.v)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Backwards compability wrapper */
|
/* Backwards compatibility wrapper */
|
||||||
PHPAPI signed long php_parse_date(char *string, signed long *now);
|
PHPAPI signed long php_parse_date(char *string, signed long *now);
|
||||||
PHPAPI void php_mktime(INTERNAL_FUNCTION_PARAMETERS, int gmt);
|
PHPAPI void php_mktime(INTERNAL_FUNCTION_PARAMETERS, int gmt);
|
||||||
PHPAPI int php_idate(char format, time_t ts, int localtime TSRMLS_DC);
|
PHPAPI int php_idate(char format, time_t ts, int localtime TSRMLS_DC);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Bug #44648 (Attribute names not checked for wellformedness)
|
Bug #44648 (Attribute names not checked for well formedness)
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php require_once('skipif.inc'); ?>
|
<?php require_once('skipif.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
|
|
|
@ -11969,7 +11969,7 @@
|
||||||
#>65 string ZSYS (Pre-System 7 system file)
|
#>65 string ZSYS (Pre-System 7 system file)
|
||||||
#>65 string acf3 (Aldus FreeHand)
|
#>65 string acf3 (Aldus FreeHand)
|
||||||
#>65 string cdev (control panel)
|
#>65 string cdev (control panel)
|
||||||
#>65 string dfil (Desk Acessory suitcase)
|
#>65 string dfil (Desk Accessory suitcase)
|
||||||
#>65 string libr (library)
|
#>65 string libr (library)
|
||||||
#>65 string nX^d (WriteNow word processor)
|
#>65 string nX^d (WriteNow word processor)
|
||||||
#>65 string nX^w (WriteNow dictionary)
|
#>65 string nX^w (WriteNow dictionary)
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
#ifdef PHP_WIN32
|
#ifdef PHP_WIN32
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#elif defined(NETWARE)
|
#elif defined(NETWARE)
|
||||||
#ifdef USE_WINSOCK /* Modified to use Winsock (NOVSOCK2.H), atleast for now */
|
#ifdef USE_WINSOCK /* Modified to use Winsock (NOVSOCK2.H), at least for now */
|
||||||
#include <novsock2.h>
|
#include <novsock2.h>
|
||||||
#else
|
#else
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|
|
@ -878,7 +878,7 @@ History
|
||||||
2004/10/18: [impl] (thanks Imai Yasumasa)
|
2004/10/18: [impl] (thanks Imai Yasumasa)
|
||||||
enclose #include <sys/types.h> by #ifndef __BORLANDC__.
|
enclose #include <sys/types.h> by #ifndef __BORLANDC__.
|
||||||
2004/10/18: [bug] (thanks Imai Yasumasa)
|
2004/10/18: [bug] (thanks Imai Yasumasa)
|
||||||
memory acess violation in select_opt_exact_info().
|
memory access violation in select_opt_exact_info().
|
||||||
2004/09/25: [dist] fix doc/API and doc/API.ja.
|
2004/09/25: [dist] fix doc/API and doc/API.ja.
|
||||||
2004/09/25: [bug] fix OP_SEMI_END_BUF process in match_at() for
|
2004/09/25: [bug] fix OP_SEMI_END_BUF process in match_at() for
|
||||||
the case USE_NEWLINE_AT_END_OF_STRING_HAS_EMPTY_LINE
|
the case USE_NEWLINE_AT_END_OF_STRING_HAS_EMPTY_LINE
|
||||||
|
|
|
@ -4,7 +4,7 @@ mb_http_output()
|
||||||
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
|
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
//TODO: Add more encoding. Wrong paramter type test.
|
//TODO: Add more encoding. Wrong parameter type test.
|
||||||
//$debug = true;
|
//$debug = true;
|
||||||
ini_set('include_path', dirname(__FILE__));
|
ini_set('include_path', dirname(__FILE__));
|
||||||
include_once('common.inc');
|
include_once('common.inc');
|
||||||
|
|
|
@ -1922,7 +1922,7 @@ PHP_FUNCTION(mysql_result)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
johannes TODO:
|
johannes TODO:
|
||||||
Do 2 zend_parse_paramters calls instead of type "z" and switch below
|
Do 2 zend_parse_parameters calls instead of type "z" and switch below
|
||||||
Q: String or long first?
|
Q: String or long first?
|
||||||
*/
|
*/
|
||||||
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl|z", &result, &row, &field) == FAILURE) {
|
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl|z", &result, &row, &field) == FAILURE) {
|
||||||
|
|
|
@ -166,7 +166,7 @@ mysqlnd.collect_memory_statistics=1
|
||||||
mysqli_get_client_stats_assert_gt('bytes_sent', $info, $expected, $test_counter);
|
mysqli_get_client_stats_assert_gt('bytes_sent', $info, $expected, $test_counter);
|
||||||
mysqli_get_client_stats_assert_gt('bytes_received', $info, $expected, $test_counter);
|
mysqli_get_client_stats_assert_gt('bytes_received', $info, $expected, $test_counter);
|
||||||
|
|
||||||
// real_data_* get incremeneted after mysqli_*fetch*()
|
// real_data_* get incremented after mysqli_*fetch*()
|
||||||
mysqli_get_client_stats_assert_eq('bytes_received_real_data_normal', $info, "0", $test_counter);
|
mysqli_get_client_stats_assert_eq('bytes_received_real_data_normal', $info, "0", $test_counter);
|
||||||
mysqli_get_client_stats_assert_eq('bytes_received_real_data_ps', $info, "0", $test_counter);
|
mysqli_get_client_stats_assert_eq('bytes_received_real_data_ps', $info, "0", $test_counter);
|
||||||
|
|
||||||
|
|
|
@ -805,7 +805,7 @@ MYSQLND_METHOD(mysqlnd_net, consume_uneaten_data)(MYSQLND_NET * const net, enum
|
||||||
/*
|
/*
|
||||||
Switch to non-blocking mode and try to consume something from
|
Switch to non-blocking mode and try to consume something from
|
||||||
the line, if possible, then continue. This saves us from looking for
|
the line, if possible, then continue. This saves us from looking for
|
||||||
the actuall place where out-of-order packets have been sent.
|
the actual place where out-of-order packets have been sent.
|
||||||
If someone is completely sure that everything is fine, he can switch it
|
If someone is completely sure that everything is fine, he can switch it
|
||||||
off.
|
off.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -82,7 +82,7 @@ else
|
||||||
# false -> "" as string, which pgsql doesn't like
|
# false -> "" as string, which pgsql doesn't like
|
||||||
if (!$res->execute(array(false))) {
|
if (!$res->execute(array(false))) {
|
||||||
$err = $res->errorInfo();
|
$err = $res->errorInfo();
|
||||||
// Strip additional lines ouputted by recent PgSQL versions
|
// Strip additional lines outputted by recent PgSQL versions
|
||||||
$err[2] = trim(current(explode("\n", $err[2])));
|
$err[2] = trim(current(explode("\n", $err[2])));
|
||||||
print_r($err);
|
print_r($err);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -13,7 +13,7 @@ PHP Testfest Berlin 2009-05-10
|
||||||
}
|
}
|
||||||
// needed because of #ifdef HAVE_CTERMID in posix.c
|
// needed because of #ifdef HAVE_CTERMID in posix.c
|
||||||
if (!function_exists('posix_ctermid')) {
|
if (!function_exists('posix_ctermid')) {
|
||||||
die('SKIP - Fuction posix_ctermid() not available');
|
die('SKIP - Function posix_ctermid() not available');
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
--FILE--
|
--FILE--
|
||||||
|
|
|
@ -5259,7 +5259,7 @@ ZEND_METHOD(reflection_extension, getVersion)
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
/* {{{ proto public ReflectionFunction[] ReflectionExtension::getFunctions()
|
/* {{{ proto public ReflectionFunction[] ReflectionExtension::getFunctions()
|
||||||
Returns an array of this extension's fuctions */
|
Returns an array of this extension's functions */
|
||||||
ZEND_METHOD(reflection_extension, getFunctions)
|
ZEND_METHOD(reflection_extension, getFunctions)
|
||||||
{
|
{
|
||||||
reflection_object *intern;
|
reflection_object *intern;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
rewriter uses arg_seperator.output for modifying URLs
|
rewriter uses arg_separator.output for modifying URLs
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php include('skipif.inc'); ?>
|
<?php include('skipif.inc'); ?>
|
||||||
--INI--
|
--INI--
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* @since PHP 5.1.2
|
* @since PHP 5.1.2
|
||||||
*
|
*
|
||||||
* This container allows to store objects uniquly without the need to compare
|
* This container allows to store objects uniquly without the need to compare
|
||||||
* them one by one. This is only possible internally. The code represenation
|
* them one by one. This is only possible internally. The code representation
|
||||||
* here therefore has a complexity of O(n) while the actual implementation has
|
* here therefore has a complexity of O(n) while the actual implementation has
|
||||||
* complexity O(1).
|
* complexity O(1).
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -260,7 +260,7 @@ class Exception
|
||||||
/** The exception message */
|
/** The exception message */
|
||||||
protected $message;
|
protected $message;
|
||||||
|
|
||||||
/** The string represenations as generated during construction */
|
/** The string representations as generated during construction */
|
||||||
private $string;
|
private $string;
|
||||||
|
|
||||||
/** The code passed to the constructor */
|
/** The code passed to the constructor */
|
||||||
|
@ -336,7 +336,7 @@ class Exception
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @return string represenation of exception
|
/** @return string representation of exception
|
||||||
*/
|
*/
|
||||||
public function __toString()
|
public function __toString()
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
SPL: priorityQueue paramter test on insert method
|
SPL: priorityQueue parameter test on insert method
|
||||||
--CREDITS--
|
--CREDITS--
|
||||||
Sean Burlington www.practicalweb.co.uk
|
Sean Burlington www.practicalweb.co.uk
|
||||||
TestFest London May 2009
|
TestFest London May 2009
|
||||||
|
|
|
@ -12731,7 +12731,7 @@ struct VdbeFunc {
|
||||||
*/
|
*/
|
||||||
struct sqlite3_context {
|
struct sqlite3_context {
|
||||||
FuncDef *pFunc; /* Pointer to function information. MUST BE FIRST */
|
FuncDef *pFunc; /* Pointer to function information. MUST BE FIRST */
|
||||||
VdbeFunc *pVdbeFunc; /* Auxilary data, if created. */
|
VdbeFunc *pVdbeFunc; /* Auxiliary data, if created. */
|
||||||
Mem s; /* The return value is stored here */
|
Mem s; /* The return value is stored here */
|
||||||
Mem *pMem; /* Memory cell used to store aggregate context */
|
Mem *pMem; /* Memory cell used to store aggregate context */
|
||||||
int isError; /* Error code returned by the function. */
|
int isError; /* Error code returned by the function. */
|
||||||
|
@ -44929,7 +44929,7 @@ SQLITE_PRIVATE int sqlite3WalOpen(
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Change the size to which the WAL file is trucated on each reset.
|
** Change the size to which the WAL file is truncated on each reset.
|
||||||
*/
|
*/
|
||||||
SQLITE_PRIVATE void sqlite3WalLimit(Wal *pWal, i64 iLimit){
|
SQLITE_PRIVATE void sqlite3WalLimit(Wal *pWal, i64 iLimit){
|
||||||
if( pWal ) pWal->mxWalSize = iLimit;
|
if( pWal ) pWal->mxWalSize = iLimit;
|
||||||
|
@ -59355,7 +59355,7 @@ static int vdbeCommit(sqlite3 *db, Vdbe *p){
|
||||||
|
|
||||||
/* The complex case - There is a multi-file write-transaction active.
|
/* The complex case - There is a multi-file write-transaction active.
|
||||||
** This requires a master journal file to ensure the transaction is
|
** This requires a master journal file to ensure the transaction is
|
||||||
** committed atomicly.
|
** committed atomically.
|
||||||
*/
|
*/
|
||||||
#ifndef SQLITE_OMIT_DISKIO
|
#ifndef SQLITE_OMIT_DISKIO
|
||||||
else{
|
else{
|
||||||
|
@ -61383,7 +61383,7 @@ SQLITE_API void *sqlite3_aggregate_context(sqlite3_context *p, int nByte){
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Return the auxilary data pointer, if any, for the iArg'th argument to
|
** Return the auxiliary data pointer, if any, for the iArg'th argument to
|
||||||
** the user-function defined by pCtx.
|
** the user-function defined by pCtx.
|
||||||
*/
|
*/
|
||||||
SQLITE_API void *sqlite3_get_auxdata(sqlite3_context *pCtx, int iArg){
|
SQLITE_API void *sqlite3_get_auxdata(sqlite3_context *pCtx, int iArg){
|
||||||
|
@ -61398,7 +61398,7 @@ SQLITE_API void *sqlite3_get_auxdata(sqlite3_context *pCtx, int iArg){
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Set the auxilary data pointer and delete function, for the iArg'th
|
** Set the auxiliary data pointer and delete function, for the iArg'th
|
||||||
** argument to the user-function defined by pCtx. Any previous value is
|
** argument to the user-function defined by pCtx. Any previous value is
|
||||||
** deleted by calling the delete function specified when it was set.
|
** deleted by calling the delete function specified when it was set.
|
||||||
*/
|
*/
|
||||||
|
@ -63408,7 +63408,7 @@ SQLITE_PRIVATE int sqlite3VdbeExec(
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* On any opcode with the "out2-prerelase" tag, free any
|
/* On any opcode with the "out2-prerelease" tag, free any
|
||||||
** external allocations out of mem[p2] and set mem[p2] to be
|
** external allocations out of mem[p2] and set mem[p2] to be
|
||||||
** an undefined integer. Opcodes will either fill in the integer
|
** an undefined integer. Opcodes will either fill in the integer
|
||||||
** value or convert mem[p2] to a different type.
|
** value or convert mem[p2] to a different type.
|
||||||
|
|
|
@ -514,7 +514,7 @@ static long php_unpack(char *data, int size, int issigned, int *map)
|
||||||
|
|
||||||
/* unpack() is based on Perl's unpack(), but is modified a bit from there.
|
/* unpack() is based on Perl's unpack(), but is modified a bit from there.
|
||||||
* Rather than depending on error-prone ordered lists or syntactically
|
* Rather than depending on error-prone ordered lists or syntactically
|
||||||
* unpleasant pass-by-reference, we return an object with named paramters
|
* unpleasant pass-by-reference, we return an object with named parameters
|
||||||
* (like *_fetch_object()). Syntax is "f[repeat]name/...", where "f" is the
|
* (like *_fetch_object()). Syntax is "f[repeat]name/...", where "f" is the
|
||||||
* formatter char (like pack()), "[repeat]" is the optional repeater argument,
|
* formatter char (like pack()), "[repeat]" is the optional repeater argument,
|
||||||
* and "name" is the name of the variable to use.
|
* and "name" is the name of the variable to use.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Test array_count_values() function : Test all normal paramter variations
|
Test array_count_values() function : Test all normal parameter variations
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
/* Prototype : proto array array_count_values(array input)
|
/* Prototype : proto array array_count_values(array input)
|
||||||
|
@ -9,7 +9,7 @@ Test array_count_values() function : Test all normal paramter variations
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Test behaviour with paramter variations
|
* Test behaviour with parameter variations
|
||||||
*/
|
*/
|
||||||
|
|
||||||
echo "*** Testing array_count_values() : parameter variations ***\n";
|
echo "*** Testing array_count_values() : parameter variations ***\n";
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
chmod() basic fuctionality
|
chmod() basic functionality
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php
|
<?php
|
||||||
if (substr(PHP_OS, 0, 3) != 'WIN') {
|
if (substr(PHP_OS, 0, 3) != 'WIN') {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
chmod() basic fuctionality
|
chmod() basic functionality
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php
|
<?php
|
||||||
if (substr(PHP_OS, 0, 3) == 'WIN') {
|
if (substr(PHP_OS, 0, 3) == 'WIN') {
|
||||||
|
|
Binary file not shown.
|
@ -120,7 +120,7 @@ var_dump($count);
|
||||||
echo "\n-- Testing objects --\n";
|
echo "\n-- Testing objects --\n";
|
||||||
/* we get "Catchable fatal error: saying Object of class could not be converted
|
/* we get "Catchable fatal error: saying Object of class could not be converted
|
||||||
to string" by default, when an object is passed instead of string:
|
to string" by default, when an object is passed instead of string:
|
||||||
The error can be avoided by chosing the __toString magix method as follows: */
|
The error can be avoided by choosing the __toString magix method as follows: */
|
||||||
|
|
||||||
class subject
|
class subject
|
||||||
{
|
{
|
||||||
|
|
|
@ -33,7 +33,7 @@ var_dump($count);
|
||||||
echo "\n-- Testing objects --\n";
|
echo "\n-- Testing objects --\n";
|
||||||
/* we get "Catchable fatal error: saying Object of class could not be converted
|
/* we get "Catchable fatal error: saying Object of class could not be converted
|
||||||
to string" by default, when an object is passed instead of string:
|
to string" by default, when an object is passed instead of string:
|
||||||
The error can be avoided by chosing the __toString magix method as follows: */
|
The error can be avoided by choosing the __toString magix method as follows: */
|
||||||
|
|
||||||
class subject
|
class subject
|
||||||
{
|
{
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1443,7 +1443,7 @@ static PHP_FUNCTION(tidy_get_config)
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
/* {{{ proto int tidy_get_status()
|
/* {{{ proto int tidy_get_status()
|
||||||
Get status of specfied document. */
|
Get status of specified document. */
|
||||||
static PHP_FUNCTION(tidy_get_status)
|
static PHP_FUNCTION(tidy_get_status)
|
||||||
{
|
{
|
||||||
TIDY_FETCH_OBJECT;
|
TIDY_FETCH_OBJECT;
|
||||||
|
|
|
@ -279,7 +279,7 @@ XMLRPC_VALUE xml_element_to_SOAP_REQUEST_worker(XMLRPC_REQUEST request,
|
||||||
else if (!strcmp(attr_iter->key, TOKEN_MUSTUNDERSTAND)) {
|
else if (!strcmp(attr_iter->key, TOKEN_MUSTUNDERSTAND)) {
|
||||||
b_must_understand = strchr(attr_iter->val, '1') ? 1 : 0;
|
b_must_understand = strchr(attr_iter->val, '1') ? 1 : 0;
|
||||||
}
|
}
|
||||||
/* actor, used in conjuction with must understand. */
|
/* actor, used in conjunction with must understand. */
|
||||||
else if (!strcmp(attr_iter->key, TOKEN_ACTOR)) {
|
else if (!strcmp(attr_iter->key, TOKEN_ACTOR)) {
|
||||||
actor = attr_iter->val;
|
actor = attr_iter->val;
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,7 +59,7 @@ if test "$PHP_APXS" != "no"; then
|
||||||
# Test that we're trying to configure with apache 1.x
|
# Test that we're trying to configure with apache 1.x
|
||||||
PHP_AP_EXTRACT_VERSION($APXS_HTTPD)
|
PHP_AP_EXTRACT_VERSION($APXS_HTTPD)
|
||||||
if test "$APACHE_VERSION" -ge 2000000; then
|
if test "$APACHE_VERSION" -ge 2000000; then
|
||||||
AC_MSG_ERROR([You have enabled Apache 1.3 support while your server is Apache 2. Please use the appropiate switch --with-apxs2])
|
AC_MSG_ERROR([You have enabled Apache 1.3 support while your server is Apache 2. Please use the appropriate switch --with-apxs2])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for flag in $APXS_CFLAGS; do
|
for flag in $APXS_CFLAGS; do
|
||||||
|
|
|
@ -62,7 +62,7 @@ if test "$PHP_APXS2FILTER" != "no"; then
|
||||||
# Test that we're trying to configure with apache 2.x
|
# Test that we're trying to configure with apache 2.x
|
||||||
PHP_AP_EXTRACT_VERSION($APXS_HTTPD)
|
PHP_AP_EXTRACT_VERSION($APXS_HTTPD)
|
||||||
if test "$APACHE_VERSION" -le 2000000; then
|
if test "$APACHE_VERSION" -le 2000000; then
|
||||||
AC_MSG_ERROR([You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropiate switch --with-apxs (without the 2)])
|
AC_MSG_ERROR([You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropriate switch --with-apxs (without the 2)])
|
||||||
elif test "$APACHE_VERSION" -lt 2000040; then
|
elif test "$APACHE_VERSION" -lt 2000040; then
|
||||||
AC_MSG_ERROR([Please note that Apache version >= 2.0.40 is required])
|
AC_MSG_ERROR([Please note that Apache version >= 2.0.40 is required])
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -61,7 +61,7 @@ if test "$PHP_APXS2" != "no"; then
|
||||||
# Test that we're trying to configure with apache 2.x
|
# Test that we're trying to configure with apache 2.x
|
||||||
PHP_AP_EXTRACT_VERSION($APXS_HTTPD)
|
PHP_AP_EXTRACT_VERSION($APXS_HTTPD)
|
||||||
if test "$APACHE_VERSION" -le 2000000; then
|
if test "$APACHE_VERSION" -le 2000000; then
|
||||||
AC_MSG_ERROR([You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropiate switch --with-apxs (without the 2)])
|
AC_MSG_ERROR([You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropriate switch --with-apxs (without the 2)])
|
||||||
elif test "$APACHE_VERSION" -lt 2000044; then
|
elif test "$APACHE_VERSION" -lt 2000044; then
|
||||||
AC_MSG_ERROR([Please note that Apache version >= 2.0.44 is required])
|
AC_MSG_ERROR([Please note that Apache version >= 2.0.44 is required])
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -60,7 +60,7 @@ if test "$PHP_APACHE_HOOKS" != "no"; then
|
||||||
# Test that we're trying to configure with apache 1.x
|
# Test that we're trying to configure with apache 1.x
|
||||||
PHP_AP_EXTRACT_VERSION($APXS_HTTPD)
|
PHP_AP_EXTRACT_VERSION($APXS_HTTPD)
|
||||||
if test "$APACHE_VERSION" -ge 2000000; then
|
if test "$APACHE_VERSION" -ge 2000000; then
|
||||||
AC_MSG_ERROR([You have enabled Apache 1.3 support while your server is Apache 2. Please use the appropiate switch --with-apxs2])
|
AC_MSG_ERROR([You have enabled Apache 1.3 support while your server is Apache 2. Please use the appropriate switch --with-apxs2])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for flag in $APXS_CFLAGS; do
|
for flag in $APXS_CFLAGS; do
|
||||||
|
|
|
@ -401,7 +401,7 @@ pm.max_spare_servers = 3
|
||||||
; - %{megabytes}M
|
; - %{megabytes}M
|
||||||
; - %{mega}M
|
; - %{mega}M
|
||||||
; %n: pool name
|
; %n: pool name
|
||||||
; %o: ouput header
|
; %o: output header
|
||||||
; it must be associated with embraces to specify the name of the header:
|
; it must be associated with embraces to specify the name of the header:
|
||||||
; - %{Content-Type}o
|
; - %{Content-Type}o
|
||||||
; - %{X-Powered-By}o
|
; - %{X-Powered-By}o
|
||||||
|
|
Binary file not shown.
|
@ -104,7 +104,7 @@ abstract class gtTestCase {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add contructor argument initialisation to test case
|
* Add constructor argument initialisation to test case
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function constructorArgInit() {
|
public function constructorArgInit() {
|
||||||
|
|
|
@ -6,7 +6,7 @@ class C { public static $p = 'original'; }
|
||||||
class D extends C { }
|
class D extends C { }
|
||||||
class E extends D { }
|
class E extends D { }
|
||||||
|
|
||||||
echo "\nInherited static properties refer to the same value accross classes:\n";
|
echo "\nInherited static properties refer to the same value across classes:\n";
|
||||||
var_dump(C::$p, D::$p, E::$p);
|
var_dump(C::$p, D::$p, E::$p);
|
||||||
|
|
||||||
echo "\nChanging one changes all the others:\n";
|
echo "\nChanging one changes all the others:\n";
|
||||||
|
@ -20,7 +20,7 @@ var_dump(C::$p, D::$p, E::$p);
|
||||||
?>
|
?>
|
||||||
==Done==
|
==Done==
|
||||||
--EXPECTF--
|
--EXPECTF--
|
||||||
Inherited static properties refer to the same value accross classes:
|
Inherited static properties refer to the same value across classes:
|
||||||
%unicode|string%(8) "original"
|
%unicode|string%(8) "original"
|
||||||
%unicode|string%(8) "original"
|
%unicode|string%(8) "original"
|
||||||
%unicode|string%(8) "original"
|
%unicode|string%(8) "original"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue