mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
typo fixes
This commit is contained in:
parent
d17e8ac32f
commit
1b06e0be96
101 changed files with 160 additions and 160 deletions
|
@ -6,7 +6,7 @@ fields and using different execution methods (call threading, switch threading
|
||||||
and direct threading). As a result ZE2 got more than 20% speedup on raw PHP
|
and direct threading). As a result ZE2 got more than 20% speedup on raw PHP
|
||||||
code execution (with specialized executor and direct threading execution
|
code execution (with specialized executor and direct threading execution
|
||||||
method). As in most PHP applications raw execution speed isn't the limiting
|
method). As in most PHP applications raw execution speed isn't the limiting
|
||||||
factor but system calls and database callls are, your mileage with this patch
|
factor but system calls and database calls are, your mileage with this patch
|
||||||
will vary.
|
will vary.
|
||||||
|
|
||||||
Most parts of the old zend_execute.c go into zend_vm_def.h. Here you can
|
Most parts of the old zend_execute.c go into zend_vm_def.h. Here you can
|
||||||
|
|
|
@ -3,7 +3,7 @@ Closure 044: Scope/bounding combination invariants; non static closures
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
/* A non-static closure has a bound instance if it has a scope
|
/* A non-static closure has a bound instance if it has a scope
|
||||||
* and does't have an instance if it has no scope */
|
* and doesn't have an instance if it has no scope */
|
||||||
|
|
||||||
$nonstaticUnscoped = function () { var_dump(isset(A::$priv)); var_dump(isset($this)); };
|
$nonstaticUnscoped = function () { var_dump(isset(A::$priv)); var_dump(isset($this)); };
|
||||||
|
|
||||||
|
|
|
@ -4108,7 +4108,7 @@ static void zend_traits_init_trait_structures(zend_class_entry *ce TSRMLS_DC) /*
|
||||||
/** With the other traits, we are more permissive.
|
/** With the other traits, we are more permissive.
|
||||||
We do not give errors for those. This allows to be more
|
We do not give errors for those. This allows to be more
|
||||||
defensive in such definitions.
|
defensive in such definitions.
|
||||||
However, we want to make sure that the insteadof declartion
|
However, we want to make sure that the insteadof declaration
|
||||||
is consistent in itself.
|
is consistent in itself.
|
||||||
*/
|
*/
|
||||||
j = 0;
|
j = 0;
|
||||||
|
|
|
@ -1408,7 +1408,7 @@ for ($i = 1; $i < $argc; $i++) {
|
||||||
// Disabling code for old-style executor
|
// Disabling code for old-style executor
|
||||||
define("ZEND_VM_OLD_EXECUTOR", 1);
|
define("ZEND_VM_OLD_EXECUTOR", 1);
|
||||||
} else if ($argv[$i] == "--with-lines") {
|
} else if ($argv[$i] == "--with-lines") {
|
||||||
// Enabling debuging using original zend_vm_def.h
|
// Enabling debugging using original zend_vm_def.h
|
||||||
define("ZEND_VM_LINES", 1);
|
define("ZEND_VM_LINES", 1);
|
||||||
} else if ($argv[$i] == "--help") {
|
} else if ($argv[$i] == "--help") {
|
||||||
usage();
|
usage();
|
||||||
|
|
2
build/libtool.m4
vendored
2
build/libtool.m4
vendored
|
@ -1230,7 +1230,7 @@ if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
|
||||||
test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
|
test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
|
||||||
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
|
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
|
||||||
|
|
||||||
# We can hardcode non-existant directories.
|
# We can hardcode non-existent directories.
|
||||||
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
|
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
|
||||||
# If the only mechanism to avoid hardcoding is shlibpath_var, we
|
# If the only mechanism to avoid hardcoding is shlibpath_var, we
|
||||||
# have to relink, otherwise we might link with an installed library
|
# have to relink, otherwise we might link with an installed library
|
||||||
|
|
2
config.guess
vendored
2
config.guess
vendored
|
@ -1080,7 +1080,7 @@ EOF
|
||||||
# uname -m prints for DJGPP always 'pc', but it prints nothing about
|
# uname -m prints for DJGPP always 'pc', but it prints nothing about
|
||||||
# the processor, so we play safe by assuming i586.
|
# the processor, so we play safe by assuming i586.
|
||||||
# Note: whatever this is, it MUST be the same as what config.sub
|
# Note: whatever this is, it MUST be the same as what config.sub
|
||||||
# prints for the "djgpp" host, or else GDB configury will decide that
|
# prints for the "djgpp" host, or else GDB configure will decide that
|
||||||
# this is a cross-build.
|
# this is a cross-build.
|
||||||
echo i586-pc-msdosdjgpp
|
echo i586-pc-msdosdjgpp
|
||||||
exit ;;
|
exit ;;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Bug #55397 (comparsion of incomplete DateTime causes SIGSEGV)
|
Bug #55397 (comparison of incomplete DateTime causes SIGSEGV)
|
||||||
--INI--
|
--INI--
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
|
|
|
@ -888,7 +888,7 @@ static void php_dba_open(INTERNAL_FUNCTION_PARAMETERS, int persistent)
|
||||||
RETURN_FALSE;
|
RETURN_FALSE;
|
||||||
}
|
}
|
||||||
if (hptr->flags & (DBA_NO_APPEND|DBA_CAST_AS_FD)) {
|
if (hptr->flags & (DBA_NO_APPEND|DBA_CAST_AS_FD)) {
|
||||||
/* Needed becasue some systems do not allow to write to the original
|
/* Needed because some systems do not allow to write to the original
|
||||||
* file contents with O_APPEND being set.
|
* file contents with O_APPEND being set.
|
||||||
*/
|
*/
|
||||||
if (SUCCESS != php_stream_cast(info->fp, PHP_STREAM_AS_FD, (void*)&info->fd, 1)) {
|
if (SUCCESS != php_stream_cast(info->fp, PHP_STREAM_AS_FD, (void*)&info->fd, 1)) {
|
||||||
|
|
|
@ -12,7 +12,7 @@ DBA GDBM handler test
|
||||||
$lock_flag = ''; // lock in library
|
$lock_flag = ''; // lock in library
|
||||||
require_once dirname(__FILE__) .'/dba_handler.inc';
|
require_once dirname(__FILE__) .'/dba_handler.inc';
|
||||||
|
|
||||||
// Read during write is system dependant. Important is that there is no deadlock
|
// Read during write is system dependent. Important is that there is no deadlock
|
||||||
?>
|
?>
|
||||||
===DONE===
|
===DONE===
|
||||||
--EXPECTF--
|
--EXPECTF--
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
DomDocument::schemaValidate() - non-existant schema file
|
DomDocument::schemaValidate() - non-existent schema file
|
||||||
--CREDITS--
|
--CREDITS--
|
||||||
Daniel Convissor <danielc@php.net>
|
Daniel Convissor <danielc@php.net>
|
||||||
# TestFest 2009 NYPHP
|
# TestFest 2009 NYPHP
|
||||||
|
@ -12,14 +12,14 @@ $doc = new DOMDocument;
|
||||||
|
|
||||||
$doc->load(dirname(__FILE__)."/book.xml");
|
$doc->load(dirname(__FILE__)."/book.xml");
|
||||||
|
|
||||||
$result = $doc->schemaValidate(dirname(__FILE__)."/non-existant-file");
|
$result = $doc->schemaValidate(dirname(__FILE__)."/non-existent-file");
|
||||||
var_dump($result);
|
var_dump($result);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
--EXPECTF--
|
--EXPECTF--
|
||||||
Warning: DOMDocument::schemaValidate(): I/O warning : failed to load external entity "%snon-existant-file" in %s.php on line %d
|
Warning: DOMDocument::schemaValidate(): I/O warning : failed to load external entity "%snon-existent-file" in %s.php on line %d
|
||||||
|
|
||||||
Warning: DOMDocument::schemaValidate(): Failed to locate the main schema resource at '%s/non-existant-file'. in %s.php on line %d
|
Warning: DOMDocument::schemaValidate(): Failed to locate the main schema resource at '%s/non-existent-file'. in %s.php on line %d
|
||||||
|
|
||||||
Warning: DOMDocument::schemaValidate(): Invalid Schema in %s.php on line %d
|
Warning: DOMDocument::schemaValidate(): Invalid Schema in %s.php on line %d
|
||||||
bool(false)
|
bool(false)
|
||||||
|
|
|
@ -674,7 +674,7 @@ PHP_FUNCTION(enchant_broker_dict_exists)
|
||||||
described/referred to by 'tag'. The ordering is a comma delimited
|
described/referred to by 'tag'. The ordering is a comma delimited
|
||||||
list of provider names. As a special exception, the "*" tag can
|
list of provider names. As a special exception, the "*" tag can
|
||||||
be used as a language tag to declare a default ordering for any
|
be used as a language tag to declare a default ordering for any
|
||||||
language that does not explictly declare an ordering. */
|
language that does not explicitly declare an ordering. */
|
||||||
|
|
||||||
PHP_FUNCTION(enchant_broker_set_ordering)
|
PHP_FUNCTION(enchant_broker_set_ordering)
|
||||||
{
|
{
|
||||||
|
|
|
@ -2595,7 +2595,7 @@ static int exif_process_string_raw(char **result, char *value, size_t byte_count
|
||||||
|
|
||||||
/* {{{ exif_process_string
|
/* {{{ exif_process_string
|
||||||
* Copy a string in Exif header to a character string and return length of allocated buffer if any.
|
* Copy a string in Exif header to a character string and return length of allocated buffer if any.
|
||||||
* In contrast to exif_process_string this function does allways return a string buffer */
|
* In contrast to exif_process_string this function does always return a string buffer */
|
||||||
static int exif_process_string(char **result, char *value, size_t byte_count TSRMLS_DC) {
|
static int exif_process_string(char **result, char *value, size_t byte_count TSRMLS_DC) {
|
||||||
/* we cannot use strlcpy - here the problem is that we cannot use strlen to
|
/* we cannot use strlcpy - here the problem is that we cannot use strlen to
|
||||||
* determin length of string and we cannot use strlcpy with len=byte_count+1
|
* determin length of string and we cannot use strlcpy with len=byte_count+1
|
||||||
|
|
|
@ -1630,7 +1630,7 @@ mget(struct magic_set *ms, const unsigned char *s, struct magic *m,
|
||||||
/* Verify we have enough data to match magic type */
|
/* Verify we have enough data to match magic type */
|
||||||
switch (m->type) {
|
switch (m->type) {
|
||||||
case FILE_BYTE:
|
case FILE_BYTE:
|
||||||
if (nbytes < (offset + 1)) /* should alway be true */
|
if (nbytes < (offset + 1)) /* should always be true */
|
||||||
return 0;
|
return 0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -3303,7 +3303,7 @@
|
||||||
>>>0x44 string =GLOB \b.
|
>>>0x44 string =GLOB \b.
|
||||||
>>>>0x60 beshort x \b%.4d
|
>>>>0x60 beshort x \b%.4d
|
||||||
|
|
||||||
# Scripts that run in the embeded Python interpreter
|
# Scripts that run in the embedded Python interpreter
|
||||||
0 string #!BPY Blender3D BPython script
|
0 string #!BPY Blender3D BPython script
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
|
@ -27,7 +27,7 @@ var_dump(ftp_fget($ftp, $fp, 'binary data.bin', FTP_BINARY));
|
||||||
fseek($fp, $postition);
|
fseek($fp, $postition);
|
||||||
var_dump(urlencode(fgets($fp)));
|
var_dump(urlencode(fgets($fp)));
|
||||||
|
|
||||||
//test non-existant file request
|
//test non-existent file request
|
||||||
ftp_fget($ftp, $fp ,'a warning.txt', FTP_ASCII);
|
ftp_fget($ftp, $fp ,'a warning.txt', FTP_ASCII);
|
||||||
|
|
||||||
//remove file
|
//remove file
|
||||||
|
|
|
@ -27,7 +27,7 @@ var_dump(ftp_get($ftp, $tmpfname, 'binary data.bin', FTP_BINARY));
|
||||||
var_dump(urlencode(file_get_contents($tmpfname)));
|
var_dump(urlencode(file_get_contents($tmpfname)));
|
||||||
unlink($tmpfname);
|
unlink($tmpfname);
|
||||||
|
|
||||||
//test non-existant file request
|
//test non-existent file request
|
||||||
ftp_get($ftp, $tmpfname ,'a warning.txt', FTP_ASCII);
|
ftp_get($ftp, $tmpfname ,'a warning.txt', FTP_ASCII);
|
||||||
?>
|
?>
|
||||||
--EXPECTF--
|
--EXPECTF--
|
||||||
|
|
|
@ -104,7 +104,7 @@ int overflow2(int a, int b);
|
||||||
/* IMPORTANT NOTE FOR NEW FILTER
|
/* IMPORTANT NOTE FOR NEW FILTER
|
||||||
* Do not forget to update:
|
* Do not forget to update:
|
||||||
* IMAGE_FILTER_MAX: define the last filter index
|
* IMAGE_FILTER_MAX: define the last filter index
|
||||||
* IMAGE_FILTER_MAX_ARGS: define the biggest amout of arguments
|
* IMAGE_FILTER_MAX_ARGS: define the biggest amount of arguments
|
||||||
* image_filter array in PHP_FUNCTION(imagefilter)
|
* image_filter array in PHP_FUNCTION(imagefilter)
|
||||||
* */
|
* */
|
||||||
#define IMAGE_FILTER_NEGATE 0
|
#define IMAGE_FILTER_NEGATE 0
|
||||||
|
|
|
@ -69,7 +69,7 @@ printf("rect->x: %i\nrect->y: %i\nrect->width: %i\nrect->height: %i\n", crop->x,
|
||||||
if (src->trueColor) {
|
if (src->trueColor) {
|
||||||
unsigned int dst_y = 0;
|
unsigned int dst_y = 0;
|
||||||
while (y < (crop->y + (crop->height - 1))) {
|
while (y < (crop->y + (crop->height - 1))) {
|
||||||
/* TODO: replace 4 w/byte per channel||pitch once avaiable */
|
/* TODO: replace 4 w/byte per channel||pitch once available */
|
||||||
memcpy(dst->tpixels[dst_y++], src->tpixels[y++] + crop->x, crop->width * 4);
|
memcpy(dst->tpixels[dst_y++], src->tpixels[y++] + crop->x, crop->width * 4);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -84,7 +84,7 @@ WebPResult WebPDecode(const uint8* data,
|
||||||
* height.
|
* height.
|
||||||
* 6. y_stride: The width (in bytes) of one row of Y data. This may not
|
* 6. y_stride: The width (in bytes) of one row of Y data. This may not
|
||||||
* match width if there is end of row padding (e.g., for 32
|
* match width if there is end of row padding (e.g., for 32
|
||||||
* bit row aligment).
|
* bit row alignment).
|
||||||
* 7. QP: the quantization parameter. This parameter controls the
|
* 7. QP: the quantization parameter. This parameter controls the
|
||||||
* compression vs quality tradeoff. Use smaller numbers for better
|
* compression vs quality tradeoff. Use smaller numbers for better
|
||||||
* quality (compression will be lesser) and vice versa. 20 is a
|
* quality (compression will be lesser) and vice versa. 20 is a
|
||||||
|
|
|
@ -23,8 +23,8 @@ file_put_contents( $filename, 'The quick brown fox jumped over the lazy dog.' );
|
||||||
echo "\n-- Testing hash_file() function with an unknown algorithm --\n";
|
echo "\n-- Testing hash_file() function with an unknown algorithm --\n";
|
||||||
var_dump( hash_file( 'foobar', $filename ) );
|
var_dump( hash_file( 'foobar', $filename ) );
|
||||||
|
|
||||||
echo "\n-- Testing hash_file() function with a non-existant file --\n";
|
echo "\n-- Testing hash_file() function with a non-existent file --\n";
|
||||||
var_dump( hash_file( 'md5', 'nonexistant.txt' ) );
|
var_dump( hash_file( 'md5', 'nonexistent.txt' ) );
|
||||||
|
|
||||||
echo "\n-- Testing hash_file() function with less than expected no. of arguments --\n";
|
echo "\n-- Testing hash_file() function with less than expected no. of arguments --\n";
|
||||||
var_dump( hash_file( 'md5' ) );
|
var_dump( hash_file( 'md5' ) );
|
||||||
|
@ -50,7 +50,7 @@ unlink( $filename );
|
||||||
Warning: hash_file(): Unknown hashing algorithm: %s in %s on line %d
|
Warning: hash_file(): Unknown hashing algorithm: %s in %s on line %d
|
||||||
bool(false)
|
bool(false)
|
||||||
|
|
||||||
-- Testing hash_file() function with a non-existant file --
|
-- Testing hash_file() function with a non-existent file --
|
||||||
|
|
||||||
Warning: hash_file(%s): failed to open stream: No such file or directory in %s on line %d
|
Warning: hash_file(%s): failed to open stream: No such file or directory in %s on line %d
|
||||||
bool(false)
|
bool(false)
|
||||||
|
|
|
@ -6,15 +6,15 @@ Transliterator::create (error)
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
ini_set("intl.error_level", E_WARNING);
|
ini_set("intl.error_level", E_WARNING);
|
||||||
Transliterator::create("inexistant id");
|
Transliterator::create("inexistent id");
|
||||||
echo intl_get_error_message(), "\n";
|
echo intl_get_error_message(), "\n";
|
||||||
Transliterator::create("bad UTF-8 \x8F");
|
Transliterator::create("bad UTF-8 \x8F");
|
||||||
echo intl_get_error_message(), "\n";
|
echo intl_get_error_message(), "\n";
|
||||||
|
|
||||||
echo "Done.\n";
|
echo "Done.\n";
|
||||||
--EXPECTF--
|
--EXPECTF--
|
||||||
Warning: Transliterator::create(): transliterator_create: unable to open ICU transliterator with id "inexistant id" in %s on line %d
|
Warning: Transliterator::create(): transliterator_create: unable to open ICU transliterator with id "inexistent id" in %s on line %d
|
||||||
transliterator_create: unable to open ICU transliterator with id "inexistant id": U_INVALID_ID
|
transliterator_create: unable to open ICU transliterator with id "inexistent id": U_INVALID_ID
|
||||||
|
|
||||||
Warning: Transliterator::create(): String conversion of id to UTF-16 failed in %s on line %d
|
Warning: Transliterator::create(): String conversion of id to UTF-16 failed in %s on line %d
|
||||||
String conversion of id to UTF-16 failed: U_INVALID_CHAR_FOUND
|
String conversion of id to UTF-16 failed: U_INVALID_CHAR_FOUND
|
||||||
|
|
|
@ -13,7 +13,7 @@ echo transliterator_transliterate("\x8F", $str), "\n";
|
||||||
echo intl_get_error_message(), "\n";
|
echo intl_get_error_message(), "\n";
|
||||||
|
|
||||||
class A {
|
class A {
|
||||||
function __toString() { return "inexistant id"; }
|
function __toString() { return "inexistent id"; }
|
||||||
}
|
}
|
||||||
|
|
||||||
echo transliterator_transliterate(new A(), $str), "\n";
|
echo transliterator_transliterate(new A(), $str), "\n";
|
||||||
|
@ -29,9 +29,9 @@ Warning: transliterator_transliterate(): Could not create transliterator with ID
|
||||||
|
|
||||||
String conversion of id to UTF-16 failed: U_INVALID_CHAR_FOUND
|
String conversion of id to UTF-16 failed: U_INVALID_CHAR_FOUND
|
||||||
|
|
||||||
Warning: transliterator_transliterate(): transliterator_create: unable to open ICU transliterator with id "inexistant id" in %s on line %d
|
Warning: transliterator_transliterate(): transliterator_create: unable to open ICU transliterator with id "inexistent id" in %s on line %d
|
||||||
|
|
||||||
Warning: transliterator_transliterate(): Could not create transliterator with ID "inexistant id" (transliterator_create: unable to open ICU transliterator with id "inexistant id": U_INVALID_ID) in %s on line %d
|
Warning: transliterator_transliterate(): Could not create transliterator with ID "inexistent id" (transliterator_create: unable to open ICU transliterator with id "inexistent id": U_INVALID_ID) in %s on line %d
|
||||||
|
|
||||||
transliterator_create: unable to open ICU transliterator with id "inexistant id": U_INVALID_ID
|
transliterator_create: unable to open ICU transliterator with id "inexistent id": U_INVALID_ID
|
||||||
Done.
|
Done.
|
||||||
|
|
|
@ -20,7 +20,7 @@ var_dump(ldap_get_values_len($link));
|
||||||
var_dump(ldap_get_values_len($link, $entry));
|
var_dump(ldap_get_values_len($link, $entry));
|
||||||
var_dump(ldap_get_values_len($link, $entry, "weirdAttribute", "Additional data"));
|
var_dump(ldap_get_values_len($link, $entry, "weirdAttribute", "Additional data"));
|
||||||
|
|
||||||
var_dump(ldap_get_values_len($link, $entry, "inexistantAttribute"));
|
var_dump(ldap_get_values_len($link, $entry, "inexistentAttribute"));
|
||||||
?>
|
?>
|
||||||
===DONE===
|
===DONE===
|
||||||
--CLEAN--
|
--CLEAN--
|
||||||
|
|
|
@ -35,7 +35,7 @@ function rebind_proc ($ds, $ldap_url) {
|
||||||
$link = ldap_connect($host, $port);
|
$link = ldap_connect($host, $port);
|
||||||
var_dump(ldap_set_rebind_proc($link));
|
var_dump(ldap_set_rebind_proc($link));
|
||||||
var_dump(ldap_set_rebind_proc($link, "rebind_proc", "Additional data"));
|
var_dump(ldap_set_rebind_proc($link, "rebind_proc", "Additional data"));
|
||||||
var_dump(ldap_set_rebind_proc($link, "rebind_proc_inexistant"));
|
var_dump(ldap_set_rebind_proc($link, "rebind_proc_inexistent"));
|
||||||
?>
|
?>
|
||||||
===DONE===
|
===DONE===
|
||||||
--EXPECTF--
|
--EXPECTF--
|
||||||
|
@ -45,6 +45,6 @@ bool(false)
|
||||||
Warning: ldap_set_rebind_proc() expects exactly 2 parameters, 3 given in %s on line %d
|
Warning: ldap_set_rebind_proc() expects exactly 2 parameters, 3 given in %s on line %d
|
||||||
bool(false)
|
bool(false)
|
||||||
|
|
||||||
Warning: ldap_set_rebind_proc(): Two arguments expected for 'rebind_proc_inexistant' to be a valid callback in %s on line %d
|
Warning: ldap_set_rebind_proc(): Two arguments expected for 'rebind_proc_inexistent' to be a valid callback in %s on line %d
|
||||||
bool(false)
|
bool(false)
|
||||||
===DONE===
|
===DONE===
|
||||||
|
|
|
@ -53,7 +53,7 @@ require_once('skipifconnectfailure.inc');
|
||||||
} catch (mysqli_sql_exception $e) {
|
} catch (mysqli_sql_exception $e) {
|
||||||
$ok = true;
|
$ok = true;
|
||||||
if ('' == $e->getMessage())
|
if ('' == $e->getMessage())
|
||||||
printf("[008] getMessage() has returned an emptry string.\n");
|
printf("[008] getMessage() has returned an empty string.\n");
|
||||||
if ('' == $e->getCode())
|
if ('' == $e->getCode())
|
||||||
printf("[009] getCode() has returned an empty string.\n");
|
printf("[009] getCode() has returned an empty string.\n");
|
||||||
if ('' == $e->getFile())
|
if ('' == $e->getFile())
|
||||||
|
|
|
@ -17,7 +17,7 @@ mysqli_fetch_assoc() - utf8
|
||||||
die("skip Looks like UTF8 is not available on the server");
|
die("skip Looks like UTF8 is not available on the server");
|
||||||
|
|
||||||
if (strtolower($tmp['Charset']) !== 'utf8')
|
if (strtolower($tmp['Charset']) !== 'utf8')
|
||||||
die("skip Not sure if UTF8 is available, cancelling the test");
|
die("skip Not sure if UTF8 is available, canceling the test");
|
||||||
|
|
||||||
mysqli_free_result($res);
|
mysqli_free_result($res);
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ mysqli_fetch_assoc() - utf8
|
||||||
die("skip Looks like UCS2 is not available on the server");
|
die("skip Looks like UCS2 is not available on the server");
|
||||||
|
|
||||||
if (strtolower($tmp['Charset']) !== 'ucs2')
|
if (strtolower($tmp['Charset']) !== 'ucs2')
|
||||||
die("skip Not sure if UCS2 is available, cancelling the test");
|
die("skip Not sure if UCS2 is available, canceling the test");
|
||||||
|
|
||||||
mysqli_free_result($res);
|
mysqli_free_result($res);
|
||||||
mysqli_close($link);
|
mysqli_close($link);
|
||||||
|
|
|
@ -12,7 +12,7 @@ require_once('skipifconnectfailure.inc');
|
||||||
|
|
||||||
$valid_options = array(
|
$valid_options = array(
|
||||||
MYSQLI_READ_DEFAULT_GROUP => "MYSQLI_READ_DEFAULT_GROUP",
|
MYSQLI_READ_DEFAULT_GROUP => "MYSQLI_READ_DEFAULT_GROUP",
|
||||||
MYSQLI_READ_DEFAULT_FILE => "MYSQLI_READ_DEFAUTL_FILE",
|
MYSQLI_READ_DEFAULT_FILE => "MYSQLI_READ_DEFAULT_FILE",
|
||||||
MYSQLI_OPT_CONNECT_TIMEOUT => "MYSQLI_OPT_CONNECT_TIMEOUT",
|
MYSQLI_OPT_CONNECT_TIMEOUT => "MYSQLI_OPT_CONNECT_TIMEOUT",
|
||||||
MYSQLI_OPT_LOCAL_INFILE => "MYSQLI_OPT_LOCAL_INFILE",
|
MYSQLI_OPT_LOCAL_INFILE => "MYSQLI_OPT_LOCAL_INFILE",
|
||||||
MYSQLI_INIT_COMMAND => "MYSQLI_INIT_COMMAND",
|
MYSQLI_INIT_COMMAND => "MYSQLI_INIT_COMMAND",
|
||||||
|
|
|
@ -8,7 +8,7 @@ require(dirname(__FILE__).'/skipif.inc');
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
// This test is similar to bug43492.phpt without the explict free.
|
// This test is similar to bug43492.phpt without the explicit free.
|
||||||
// Now that bug 44206 is fixed an automatic clean up will occur -
|
// Now that bug 44206 is fixed an automatic clean up will occur -
|
||||||
// though it is still recommended in practice.
|
// though it is still recommended in practice.
|
||||||
|
|
||||||
|
|
|
@ -2704,7 +2704,7 @@ PHP_FUNCTION(odbc_num_rows)
|
||||||
|
|
||||||
#if !defined(HAVE_SOLID) && !defined(HAVE_SOLID_30)
|
#if !defined(HAVE_SOLID) && !defined(HAVE_SOLID_30)
|
||||||
/* {{{ proto bool odbc_next_result(resource result_id)
|
/* {{{ proto bool odbc_next_result(resource result_id)
|
||||||
Checks if multiple results are avaiable */
|
Checks if multiple results are available */
|
||||||
PHP_FUNCTION(odbc_next_result)
|
PHP_FUNCTION(odbc_next_result)
|
||||||
{
|
{
|
||||||
odbc_result *result;
|
odbc_result *result;
|
||||||
|
|
|
@ -138,7 +138,7 @@ static inline int is_stream_path(const char *filename)
|
||||||
return ((*p == ':') && (p - filename > 1) && (p[1] == '/') && (p[2] == '/'));
|
return ((*p == ':') && (p - filename > 1) && (p[1] == '/') && (p[2] == '/'));
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int is_cachable_stream_path(const char *filename)
|
static inline int is_cacheable_stream_path(const char *filename)
|
||||||
{
|
{
|
||||||
return memcmp(filename, "file://", sizeof("file://") - 1) == 0 ||
|
return memcmp(filename, "file://", sizeof("file://") - 1) == 0 ||
|
||||||
memcmp(filename, "phar://", sizeof("phar://") - 1) == 0;
|
memcmp(filename, "phar://", sizeof("phar://") - 1) == 0;
|
||||||
|
@ -1459,7 +1459,7 @@ static zend_op_array *persistent_compile_file(zend_file_handle *file_handle, int
|
||||||
CG(interactive) ||
|
CG(interactive) ||
|
||||||
(ZCSG(restart_in_progress) && accel_restart_is_active(TSRMLS_C)) ||
|
(ZCSG(restart_in_progress) && accel_restart_is_active(TSRMLS_C)) ||
|
||||||
(is_stream_path(file_handle->filename) &&
|
(is_stream_path(file_handle->filename) &&
|
||||||
!is_cachable_stream_path(file_handle->filename))) {
|
!is_cacheable_stream_path(file_handle->filename))) {
|
||||||
/* The Accelerator is disabled, act as if without the Accelerator */
|
/* The Accelerator is disabled, act as if without the Accelerator */
|
||||||
return accelerator_orig_compile_file(file_handle, type TSRMLS_CC);
|
return accelerator_orig_compile_file(file_handle, type TSRMLS_CC);
|
||||||
}
|
}
|
||||||
|
|
|
@ -936,7 +936,7 @@ zend_op_array* zend_accel_load_script(zend_persistent_script *persistent_script,
|
||||||
zend_hash_destroy(&ZCG(bind_hash));
|
zend_hash_destroy(&ZCG(bind_hash));
|
||||||
}
|
}
|
||||||
/* we must first to copy all classes and then prepare functions, since functions may try to bind
|
/* we must first to copy all classes and then prepare functions, since functions may try to bind
|
||||||
classes - which depend on pre-bind class entries existant in the class table */
|
classes - which depend on pre-bind class entries existent in the class table */
|
||||||
if (zend_hash_num_elements(&persistent_script->function_table) > 0) {
|
if (zend_hash_num_elements(&persistent_script->function_table) > 0) {
|
||||||
zend_accel_function_hash_copy(CG(function_table), &persistent_script->function_table, (unique_copy_ctor_func_t)zend_prepare_function_for_execution);
|
zend_accel_function_hash_copy(CG(function_table), &persistent_script->function_table, (unique_copy_ctor_func_t)zend_prepare_function_for_execution);
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#include "Zend/zend.h"
|
#include "Zend/zend.h"
|
||||||
#include "Zend/zend_signal.h"
|
#include "Zend/zend_signal.h"
|
||||||
|
|
||||||
/* php_signal using sigaction is derrived from Advanced Programing
|
/* php_signal using sigaction is derived from Advanced Programing
|
||||||
* in the Unix Environment by W. Richard Stevens p 298. */
|
* in the Unix Environment by W. Richard Stevens p 298. */
|
||||||
Sigfunc *php_signal4(int signo, Sigfunc *func, int restart, int mask_all)
|
Sigfunc *php_signal4(int signo, Sigfunc *func, int restart, int mask_all)
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,9 +11,9 @@ error_reporting(E_ALL&~E_NOTICE);
|
||||||
* Testing how preg_grep reacts to being passed bad regexes
|
* Testing how preg_grep reacts to being passed bad regexes
|
||||||
*/
|
*/
|
||||||
echo "*** Testing preg_grep() : error conditions ***\n";
|
echo "*** Testing preg_grep() : error conditions ***\n";
|
||||||
$values = array('abcdef', //Regex without delimeter
|
$values = array('abcdef', //Regex without delimiter
|
||||||
'/[a-zA-Z]', //Regex without closing delimeter
|
'/[a-zA-Z]', //Regex without closing delimiter
|
||||||
'[a-zA-Z]/', //Regex without opening delimeter
|
'[a-zA-Z]/', //Regex without opening delimiter
|
||||||
'/[a-zA-Z]/F', array('[a-z]', //Array of Regexes
|
'/[a-zA-Z]/F', array('[a-z]', //Array of Regexes
|
||||||
'[A-Z]', '[0-9]'), '/[a-zA-Z]/', //Regex string
|
'[A-Z]', '[0-9]'), '/[a-zA-Z]/', //Regex string
|
||||||
);
|
);
|
||||||
|
|
|
@ -11,9 +11,9 @@ error_reporting(E_ALL&~E_NOTICE);
|
||||||
* Testing how preg_match_all reacts to being passed the wrong type of regex argument
|
* Testing how preg_match_all reacts to being passed the wrong type of regex argument
|
||||||
*/
|
*/
|
||||||
echo "*** Testing preg_match_all() : error conditions ***\n";
|
echo "*** Testing preg_match_all() : error conditions ***\n";
|
||||||
$regex_array = array('abcdef', //Regex without delimeter
|
$regex_array = array('abcdef', //Regex without delimiter
|
||||||
'/[a-zA-Z]', //Regex without closing delimeter
|
'/[a-zA-Z]', //Regex without closing delimiter
|
||||||
'[a-zA-Z]/', //Regex without opening delimeter
|
'[a-zA-Z]/', //Regex without opening delimiter
|
||||||
'/[a-zA-Z]/F', array('[a-z]', //Array of Regexes
|
'/[a-zA-Z]/F', array('[a-z]', //Array of Regexes
|
||||||
'[A-Z]', '[0-9]'), '/[a-zA-Z]/', //Regex string
|
'[A-Z]', '[0-9]'), '/[a-zA-Z]/', //Regex string
|
||||||
);
|
);
|
||||||
|
|
|
@ -11,9 +11,9 @@ error_reporting(E_ALL&~E_NOTICE);
|
||||||
* Testing how preg_match reacts to being passed the wrong type of regex argument
|
* Testing how preg_match reacts to being passed the wrong type of regex argument
|
||||||
*/
|
*/
|
||||||
echo "*** Testing preg_match() : error conditions ***\n";
|
echo "*** Testing preg_match() : error conditions ***\n";
|
||||||
$regex_array = array('abcdef', //Regex without delimeter
|
$regex_array = array('abcdef', //Regex without delimiter
|
||||||
'/[a-zA-Z]', //Regex without closing delimeter
|
'/[a-zA-Z]', //Regex without closing delimiter
|
||||||
'[a-zA-Z]/', //Regex without opening delimeter
|
'[a-zA-Z]/', //Regex without opening delimiter
|
||||||
'/[a-zA-Z]/F', array('[a-z]', //Array of Regexes
|
'/[a-zA-Z]/F', array('[a-z]', //Array of Regexes
|
||||||
'[A-Z]', '[0-9]'), '/[a-zA-Z]/', //Regex string
|
'[A-Z]', '[0-9]'), '/[a-zA-Z]/', //Regex string
|
||||||
);
|
);
|
||||||
|
|
|
@ -11,9 +11,9 @@ error_reporting(E_ALL&~E_NOTICE);
|
||||||
* Testing how preg_replace reacts to being passed the wrong type of regex argument
|
* Testing how preg_replace reacts to being passed the wrong type of regex argument
|
||||||
*/
|
*/
|
||||||
echo "*** Testing preg_replace() : error conditions***\n";
|
echo "*** Testing preg_replace() : error conditions***\n";
|
||||||
$regex_array = array('abcdef', //Regex without delimeter
|
$regex_array = array('abcdef', //Regex without delimiter
|
||||||
'/[a-zA-Z]', //Regex without closing delimeter
|
'/[a-zA-Z]', //Regex without closing delimiter
|
||||||
'[a-zA-Z]/', //Regex without opening delimeter
|
'[a-zA-Z]/', //Regex without opening delimiter
|
||||||
'/[a-zA-Z]/F', array('[a-z]', //Array of Regexes
|
'/[a-zA-Z]/F', array('[a-z]', //Array of Regexes
|
||||||
'[A-Z]', '[0-9]'), '/[a-zA-Z]/', //Regex string
|
'[A-Z]', '[0-9]'), '/[a-zA-Z]/', //Regex string
|
||||||
);
|
);
|
||||||
|
|
|
@ -899,7 +899,7 @@ static PHP_METHOD(PDO, getAttribute)
|
||||||
PDO_DBH_CLEAR_ERR();
|
PDO_DBH_CLEAR_ERR();
|
||||||
PDO_CONSTRUCT_CHECK;
|
PDO_CONSTRUCT_CHECK;
|
||||||
|
|
||||||
/* handle generic PDO-level atributes */
|
/* handle generic PDO-level attributes */
|
||||||
switch (attr) {
|
switch (attr) {
|
||||||
case PDO_ATTR_PERSISTENT:
|
case PDO_ATTR_PERSISTENT:
|
||||||
RETURN_BOOL(dbh->is_persistent);
|
RETURN_BOOL(dbh->is_persistent);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
PDO_OCI: Atrribute: closing a connection in non-autocommit mode commits data
|
PDO_OCI: Attribute: closing a connection in non-autocommit mode commits data
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php
|
<?php
|
||||||
if (!extension_loaded('pdo') || !extension_loaded('pdo_oci')) die('skip not loaded');
|
if (!extension_loaded('pdo') || !extension_loaded('pdo_oci')) die('skip not loaded');
|
||||||
|
|
|
@ -56,7 +56,7 @@ ORDER BY 1;
|
||||||
/*
|
/*
|
||||||
* mysql_list_fields()
|
* mysql_list_fields()
|
||||||
*
|
*
|
||||||
* See also pg_meta_data(). It returns field defintion as array.
|
* See also pg_meta_data(). It returns field definition as array.
|
||||||
*/
|
*/
|
||||||
function pg_list_fields($db, $table)
|
function pg_list_fields($db, $table)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
ReflectionExtension::getClassNames() method on an extension which acually returns some information
|
ReflectionExtension::getClassNames() method on an extension which actually returns some information
|
||||||
--CREDITS--
|
--CREDITS--
|
||||||
Felix De Vliegher <felix.devliegher@gmail.com>
|
Felix De Vliegher <felix.devliegher@gmail.com>
|
||||||
--FILE--
|
--FILE--
|
||||||
|
|
|
@ -3,7 +3,7 @@ Test session_status() function : disabled
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php include('skipif.inc'); ?>
|
<?php include('skipif.inc'); ?>
|
||||||
--INI--
|
--INI--
|
||||||
session.save_handler=non-existant
|
session.save_handler=non-existent
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
|
@ -300,7 +300,7 @@ class Interop_Client
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* decodeSoapval
|
* decodeSoapval
|
||||||
* decodes a soap value to php type, used for test result comparisions
|
* decodes a soap value to php type, used for test result comparisons
|
||||||
*
|
*
|
||||||
* @param SOAP_Value soapval
|
* @param SOAP_Value soapval
|
||||||
* @return mixed result
|
* @return mixed result
|
||||||
|
@ -398,7 +398,7 @@ class Interop_Client
|
||||||
$namespace = $soapaction = 'http://soapinterop.org/';
|
$namespace = $soapaction = 'http://soapinterop.org/';
|
||||||
// hack to make tests work with MS SoapToolkit
|
// hack to make tests work with MS SoapToolkit
|
||||||
// it's the only one that uses this soapaction, and breaks if
|
// it's the only one that uses this soapaction, and breaks if
|
||||||
// it isn't right. Can't wait for soapaction to be fully depricated
|
// it isn't right. Can't wait for soapaction to be fully deprecated
|
||||||
if ($this->currentTest == 'base' &&
|
if ($this->currentTest == 'base' &&
|
||||||
strstr($endpoint_info['endpointName'],'MS SOAP ToolKit 2.0')) {
|
strstr($endpoint_info['endpointName'],'MS SOAP ToolKit 2.0')) {
|
||||||
$soapaction = 'urn:soapinterop';
|
$soapaction = 'urn:soapinterop';
|
||||||
|
|
|
@ -35,7 +35,7 @@ classes to define what the type of the value is.</p>
|
||||||
|
|
||||||
<h3>Client Test Interface</h3>
|
<h3>Client Test Interface</h3>
|
||||||
<p>The <a href="client_round2.php">client interface</a> allows you to run the PHP SOAP
|
<p>The <a href="client_round2.php">client interface</a> allows you to run the PHP SOAP
|
||||||
Client against a choosen interop server. Each run updates the results database below.</p>
|
Client against a chosen interop server. Each run updates the results database below.</p>
|
||||||
|
|
||||||
<h3>Interop Client Test Results</h3>
|
<h3>Interop Client Test Results</h3>
|
||||||
<p>This is a database of the current test results using PHP SOAP Clients against interop servers.</p>
|
<p>This is a database of the current test results using PHP SOAP Clients against interop servers.</p>
|
||||||
|
|
|
@ -194,7 +194,7 @@ static php_stream* http_connect(zval* this_ptr, php_url *phpurl, int use_ssl, ph
|
||||||
if (use_ssl && !*use_proxy) {
|
if (use_ssl && !*use_proxy) {
|
||||||
if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_ssl_method", sizeof("_ssl_method"), (void **) &tmp) == SUCCESS &&
|
if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_ssl_method", sizeof("_ssl_method"), (void **) &tmp) == SUCCESS &&
|
||||||
Z_TYPE_PP(tmp) == IS_LONG) {
|
Z_TYPE_PP(tmp) == IS_LONG) {
|
||||||
/* uses contants declared in soap.c to determine ssl uri protocol */
|
/* uses constants declared in soap.c to determine ssl uri protocol */
|
||||||
switch (Z_LVAL_PP(tmp)) {
|
switch (Z_LVAL_PP(tmp)) {
|
||||||
case SOAP_SSL_METHOD_TLS:
|
case SOAP_SSL_METHOD_TLS:
|
||||||
protocol = "tls";
|
protocol = "tls";
|
||||||
|
|
|
@ -1290,7 +1290,7 @@ PHP_METHOD(SoapServer, setClass)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Tried to set a non existant class (%s)", classname);
|
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Tried to set a non existent class (%s)", classname);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1421,7 +1421,7 @@ PHP_METHOD(SoapServer, addFunction)
|
||||||
zend_str_tolower_copy(key, Z_STRVAL_PP(tmp_function), key_len);
|
zend_str_tolower_copy(key, Z_STRVAL_PP(tmp_function), key_len);
|
||||||
|
|
||||||
if (zend_hash_find(EG(function_table), key, key_len+1, (void**)&f) == FAILURE) {
|
if (zend_hash_find(EG(function_table), key, key_len+1, (void**)&f) == FAILURE) {
|
||||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Tried to add a non existant function '%s'", Z_STRVAL_PP(tmp_function));
|
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Tried to add a non existent function '%s'", Z_STRVAL_PP(tmp_function));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1443,7 +1443,7 @@ PHP_METHOD(SoapServer, addFunction)
|
||||||
zend_str_tolower_copy(key, Z_STRVAL_P(function_name), key_len);
|
zend_str_tolower_copy(key, Z_STRVAL_P(function_name), key_len);
|
||||||
|
|
||||||
if (zend_hash_find(EG(function_table), key, key_len+1, (void**)&f) == FAILURE) {
|
if (zend_hash_find(EG(function_table), key, key_len+1, (void**)&f) == FAILURE) {
|
||||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Tried to add a non existant function '%s'", Z_STRVAL_P(function_name));
|
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Tried to add a non existent function '%s'", Z_STRVAL_P(function_name));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (service->soap_functions.ft == NULL) {
|
if (service->soap_functions.ft == NULL) {
|
||||||
|
|
|
@ -47,7 +47,7 @@ array(42) {
|
||||||
string(86) "struct MGCodeLibelle {
|
string(86) "struct MGCodeLibelle {
|
||||||
string Code;
|
string Code;
|
||||||
string Libelle;
|
string Libelle;
|
||||||
boolean Defaut;
|
boolean Default;
|
||||||
anyType Tag;
|
anyType Tag;
|
||||||
}"
|
}"
|
||||||
[9]=>
|
[9]=>
|
||||||
|
|
|
@ -67,7 +67,7 @@ type="s:string" />
|
||||||
type="s:string" />
|
type="s:string" />
|
||||||
<s:element minOccurs="0" maxOccurs="1" name="Libelle"
|
<s:element minOccurs="0" maxOccurs="1" name="Libelle"
|
||||||
type="s:string" />
|
type="s:string" />
|
||||||
<s:element minOccurs="1" maxOccurs="1" name="Defaut"
|
<s:element minOccurs="1" maxOccurs="1" name="Default"
|
||||||
type="s:boolean" />
|
type="s:boolean" />
|
||||||
<s:element minOccurs="0" maxOccurs="1" name="Tag" />
|
<s:element minOccurs="0" maxOccurs="1" name="Tag" />
|
||||||
</s:sequence>
|
</s:sequence>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
* an Iterator. It is very important to understand that most classes that do
|
* an Iterator. It is very important to understand that most classes that do
|
||||||
* not implement Iterator have their reasone to. Most likely they do not allow
|
* not implement Iterator have their reasone to. Most likely they do not allow
|
||||||
* the full Iterator feature set. If so you need to provide techniques to
|
* the full Iterator feature set. If so you need to provide techniques to
|
||||||
* prevent missuse. If you do not you must expect exceptions or fatal erros.
|
* prevent missuse. If you do not you must expect exceptions or fatal errors.
|
||||||
*
|
*
|
||||||
* It is also possible to derive the class and implement IteratorAggregate by
|
* It is also possible to derive the class and implement IteratorAggregate by
|
||||||
* downcasting the instances returned in getIterator. See the following
|
* downcasting the instances returned in getIterator. See the following
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
SplFileObject::fgetcsv with alternative delimeter
|
SplFileObject::fgetcsv with alternative delimiter
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
$fp = fopen('SplFileObject__fgetcsv.csv', 'w+');
|
$fp = fopen('SplFileObject__fgetcsv.csv', 'w+');
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
SplFileObject::fgetcsv with alternative delimeter
|
SplFileObject::fgetcsv with alternative delimiter
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
$fp = fopen('SplFileObject__fgetcsv.csv', 'w+');
|
$fp = fopen('SplFileObject__fgetcsv.csv', 'w+');
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
SplFileObject::fgetcsv with alternative delimeter
|
SplFileObject::fgetcsv with alternative delimiter
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
$fp = fopen('SplFileObject__fgetcsv.csv', 'w+');
|
$fp = fopen('SplFileObject__fgetcsv.csv', 'w+');
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
SplFileObject::fgetcsv with alternative delimeter
|
SplFileObject::fgetcsv with alternative delimiter
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
$fp = fopen('SplFileObject__fgetcsv.csv', 'w+');
|
$fp = fopen('SplFileObject__fgetcsv.csv', 'w+');
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
SplFileObject::fgetcsv with alternative delimeter
|
SplFileObject::fgetcsv with alternative delimiter
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
$fp = fopen('SplFileObject__fgetcsv.csv', 'w+');
|
$fp = fopen('SplFileObject__fgetcsv.csv', 'w+');
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
SplFileObject::fgetcsv with alternative delimeter
|
SplFileObject::fgetcsv with alternative delimiter
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
$fp = fopen('SplFileObject__fgetcsv.csv', 'w+');
|
$fp = fopen('SplFileObject__fgetcsv.csv', 'w+');
|
||||||
|
|
|
@ -11864,7 +11864,7 @@ SQLITE_PRIVATE int sqlite3MemdebugNoType(void*,u8);
|
||||||
**
|
**
|
||||||
*************************************************************************
|
*************************************************************************
|
||||||
**
|
**
|
||||||
** This file contains definitions of global variables and contants.
|
** This file contains definitions of global variables and constants.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* An array to map all upper-case characters into their corresponding
|
/* An array to map all upper-case characters into their corresponding
|
||||||
|
@ -16130,7 +16130,7 @@ SQLITE_PRIVATE const sqlite3_mem_methods *sqlite3MemGetMemsys3(void){
|
||||||
** 1. All memory allocations sizes are rounded up to a power of 2.
|
** 1. All memory allocations sizes are rounded up to a power of 2.
|
||||||
**
|
**
|
||||||
** 2. If two adjacent free blocks are the halves of a larger block,
|
** 2. If two adjacent free blocks are the halves of a larger block,
|
||||||
** then the two blocks are coalesed into the single larger block.
|
** then the two blocks are coalesced into the single larger block.
|
||||||
**
|
**
|
||||||
** 3. New memory is allocated from the first available free block.
|
** 3. New memory is allocated from the first available free block.
|
||||||
**
|
**
|
||||||
|
@ -20926,7 +20926,7 @@ do_atof_calc:
|
||||||
/* store the result */
|
/* store the result */
|
||||||
*pResult = result;
|
*pResult = result;
|
||||||
|
|
||||||
/* return true if number and no extra non-whitespace chracters after */
|
/* return true if number and no extra non-whitespace characters after */
|
||||||
return z>=zEnd && nDigits>0 && eValid;
|
return z>=zEnd && nDigits>0 && eValid;
|
||||||
#else
|
#else
|
||||||
return !sqlite3Atoi64(z, pResult, length, enc);
|
return !sqlite3Atoi64(z, pResult, length, enc);
|
||||||
|
@ -30074,7 +30074,7 @@ static int unixGetLastError(sqlite3_vfs *NotUsed, int NotUsed2, char *NotUsed3){
|
||||||
** setting the environment variable SQLITE_FORCE_PROXY_LOCKING to 1 will
|
** setting the environment variable SQLITE_FORCE_PROXY_LOCKING to 1 will
|
||||||
** force proxy locking to be used for every database file opened, and 0
|
** force proxy locking to be used for every database file opened, and 0
|
||||||
** will force automatic proxy locking to be disabled for all database
|
** will force automatic proxy locking to be disabled for all database
|
||||||
** files (explicity calling the SQLITE_SET_LOCKPROXYFILE pragma or
|
** files (explicitly calling the SQLITE_SET_LOCKPROXYFILE pragma or
|
||||||
** sqlite_file_control API is not affected by SQLITE_FORCE_PROXY_LOCKING).
|
** sqlite_file_control API is not affected by SQLITE_FORCE_PROXY_LOCKING).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -69899,7 +69899,7 @@ SQLITE_PRIVATE int sqlite3MemJournalSize(void){
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Walk an expression tree. Invoke the callback once for each node
|
** Walk an expression tree. Invoke the callback once for each node
|
||||||
** of the expression, while decending. (In other words, the callback
|
** of the expression, while descending. (In other words, the callback
|
||||||
** is invoked before visiting children.)
|
** is invoked before visiting children.)
|
||||||
**
|
**
|
||||||
** The return value from the callback should be one of the WRC_*
|
** The return value from the callback should be one of the WRC_*
|
||||||
|
@ -70936,7 +70936,7 @@ static int resolveOrderGroupBy(
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Resolve names in the SELECT statement p and all of its descendents.
|
** Resolve names in the SELECT statement p and all of its descendants.
|
||||||
*/
|
*/
|
||||||
static int resolveSelectStep(Walker *pWalker, Select *p){
|
static int resolveSelectStep(Walker *pWalker, Select *p){
|
||||||
NameContext *pOuterNC; /* Context that contains this SELECT */
|
NameContext *pOuterNC; /* Context that contains this SELECT */
|
||||||
|
@ -71244,7 +71244,7 @@ SQLITE_PRIVATE void sqlite3ResolveSelectNames(
|
||||||
** affinity of that column is returned. Otherwise, 0x00 is returned,
|
** affinity of that column is returned. Otherwise, 0x00 is returned,
|
||||||
** indicating no affinity for the expression.
|
** indicating no affinity for the expression.
|
||||||
**
|
**
|
||||||
** i.e. the WHERE clause expresssions in the following statements all
|
** i.e. the WHERE clause expressions in the following statements all
|
||||||
** have an affinity:
|
** have an affinity:
|
||||||
**
|
**
|
||||||
** CREATE TABLE t1(a);
|
** CREATE TABLE t1(a);
|
||||||
|
@ -74260,13 +74260,13 @@ static int evalConstExpr(Walker *pWalker, Expr *pExpr){
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Preevaluate constant subexpressions within pExpr and store the
|
** Preevaluate constant subexpressions within pExpr and store the
|
||||||
** results in registers. Modify pExpr so that the constant subexpresions
|
** results in registers. Modify pExpr so that the constant subexpressions
|
||||||
** are TK_REGISTER opcodes that refer to the precomputed values.
|
** are TK_REGISTER opcodes that refer to the precomputed values.
|
||||||
**
|
**
|
||||||
** This routine is a no-op if the jump to the cookie-check code has
|
** This routine is a no-op if the jump to the cookie-check code has
|
||||||
** already occur. Since the cookie-check jump is generated prior to
|
** already occur. Since the cookie-check jump is generated prior to
|
||||||
** any other serious processing, this check ensures that there is no
|
** any other serious processing, this check ensures that there is no
|
||||||
** way to accidently bypass the constant initializations.
|
** way to accidentally bypass the constant initializations.
|
||||||
**
|
**
|
||||||
** This routine is also a no-op if the SQLITE_FactorOutConst optimization
|
** This routine is also a no-op if the SQLITE_FactorOutConst optimization
|
||||||
** is disabled via the sqlite3_test_control(SQLITE_TESTCTRL_OPTIMIZATIONS)
|
** is disabled via the sqlite3_test_control(SQLITE_TESTCTRL_OPTIMIZATIONS)
|
||||||
|
@ -75132,7 +75132,7 @@ static void renameParentFunc(
|
||||||
** ALTER TABLE command. The first argument is the text of a CREATE TRIGGER
|
** ALTER TABLE command. The first argument is the text of a CREATE TRIGGER
|
||||||
** statement. The second is a table name. The table name in the CREATE
|
** statement. The second is a table name. The table name in the CREATE
|
||||||
** TRIGGER statement is replaced with the third argument and the result
|
** TRIGGER statement is replaced with the third argument and the result
|
||||||
** returned. This is analagous to renameTableFunc() above, except for CREATE
|
** returned. This is analogous to renameTableFunc() above, except for CREATE
|
||||||
** TRIGGER, not CREATE INDEX and CREATE TABLE.
|
** TRIGGER, not CREATE INDEX and CREATE TABLE.
|
||||||
*/
|
*/
|
||||||
static void renameTriggerFunc(
|
static void renameTriggerFunc(
|
||||||
|
@ -86752,7 +86752,7 @@ static int xferOptimization(
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifndef SQLITE_OMIT_FOREIGN_KEY
|
#ifndef SQLITE_OMIT_FOREIGN_KEY
|
||||||
/* Disallow the transfer optimization if the destination table constains
|
/* Disallow the transfer optimization if the destination table constrains
|
||||||
** any foreign key constraints. This is more restrictive than necessary.
|
** any foreign key constraints. This is more restrictive than necessary.
|
||||||
** But the main beneficiary of the transfer optimization is the VACUUM
|
** But the main beneficiary of the transfer optimization is the VACUUM
|
||||||
** command, and the VACUUM command disables foreign key constraints. So
|
** command, and the VACUUM command disables foreign key constraints. So
|
||||||
|
@ -93175,7 +93175,7 @@ static int flattenSubquery(
|
||||||
pSubSrc = pSub->pSrc;
|
pSubSrc = pSub->pSrc;
|
||||||
assert( pSubSrc );
|
assert( pSubSrc );
|
||||||
/* Prior to version 3.1.2, when LIMIT and OFFSET had to be simple constants,
|
/* Prior to version 3.1.2, when LIMIT and OFFSET had to be simple constants,
|
||||||
** not arbitrary expresssions, we allowed some combining of LIMIT and OFFSET
|
** not arbitrary expressions, we allowed some combining of LIMIT and OFFSET
|
||||||
** because they could be computed at compile-time. But when LIMIT and OFFSET
|
** because they could be computed at compile-time. But when LIMIT and OFFSET
|
||||||
** became arbitrary expressions, we were forced to add restrictions (13)
|
** became arbitrary expressions, we were forced to add restrictions (13)
|
||||||
** and (14). */
|
** and (14). */
|
||||||
|
@ -94472,7 +94472,7 @@ SQLITE_PRIVATE int sqlite3Select(
|
||||||
*/
|
*/
|
||||||
if( pGroupBy ){
|
if( pGroupBy ){
|
||||||
KeyInfo *pKeyInfo; /* Keying information for the group by clause */
|
KeyInfo *pKeyInfo; /* Keying information for the group by clause */
|
||||||
int j1; /* A-vs-B comparision jump */
|
int j1; /* A-vs-B comparison jump */
|
||||||
int addrOutputRow; /* Start of subroutine that outputs a result row */
|
int addrOutputRow; /* Start of subroutine that outputs a result row */
|
||||||
int regOutputRow; /* Return address register for output subroutine */
|
int regOutputRow; /* Return address register for output subroutine */
|
||||||
int addrSetAbort; /* Set the abort flag and return */
|
int addrSetAbort; /* Set the abort flag and return */
|
||||||
|
|
|
@ -352,7 +352,7 @@ PHP_FUNCTION(count)
|
||||||
|
|
||||||
/* Numbers are always smaller than strings int this function as it
|
/* Numbers are always smaller than strings int this function as it
|
||||||
* anyway doesn't make much sense to compare two different data types.
|
* anyway doesn't make much sense to compare two different data types.
|
||||||
* This keeps it consistant and simple.
|
* This keeps it consistent and simple.
|
||||||
*
|
*
|
||||||
* This is not correct any more, depends on what compare_func is set to.
|
* This is not correct any more, depends on what compare_func is set to.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -112,7 +112,7 @@ static struct gfxinfo *php_handle_gif (php_stream * stream TSRMLS_DC)
|
||||||
result->width = (unsigned int)dim[0] | (((unsigned int)dim[1])<<8);
|
result->width = (unsigned int)dim[0] | (((unsigned int)dim[1])<<8);
|
||||||
result->height = (unsigned int)dim[2] | (((unsigned int)dim[3])<<8);
|
result->height = (unsigned int)dim[2] | (((unsigned int)dim[3])<<8);
|
||||||
result->bits = dim[4]&0x80 ? ((((unsigned int)dim[4])&0x07) + 1) : 0;
|
result->bits = dim[4]&0x80 ? ((((unsigned int)dim[4])&0x07) + 1) : 0;
|
||||||
result->channels = 3; /* allways */
|
result->channels = 3; /* always */
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
@ -328,7 +328,7 @@ PHPAPI int php_mail(char *to, char *subject, char *message, char *headers, char
|
||||||
sendmail = popen_ex(sendmail_cmd, "wb", NULL, NULL TSRMLS_CC);
|
sendmail = popen_ex(sendmail_cmd, "wb", NULL, NULL TSRMLS_CC);
|
||||||
#else
|
#else
|
||||||
/* Since popen() doesn't indicate if the internal fork() doesn't work
|
/* Since popen() doesn't indicate if the internal fork() doesn't work
|
||||||
* (e.g. the shell can't be executed) we explicitely set it to 0 to be
|
* (e.g. the shell can't be executed) we explicitly set it to 0 to be
|
||||||
* sure we don't catch any older errno value. */
|
* sure we don't catch any older errno value. */
|
||||||
errno = 0;
|
errno = 0;
|
||||||
sendmail = popen(sendmail_cmd, "w");
|
sendmail = popen(sendmail_cmd, "w");
|
||||||
|
|
|
@ -69,7 +69,7 @@ char machine_little_endian;
|
||||||
/* Mapping of byte from char (8bit) to long for machine endian */
|
/* Mapping of byte from char (8bit) to long for machine endian */
|
||||||
static int byte_map[1];
|
static int byte_map[1];
|
||||||
|
|
||||||
/* Mappings of bytes from int (machine dependant) to int for machine endian */
|
/* Mappings of bytes from int (machine dependent) to int for machine endian */
|
||||||
static int int_map[sizeof(int)];
|
static int int_map[sizeof(int)];
|
||||||
|
|
||||||
/* Mappings of bytes from shorts (16bit) for all endian environments */
|
/* Mappings of bytes from shorts (16bit) for all endian environments */
|
||||||
|
|
|
@ -1582,7 +1582,7 @@ PHP_FUNCTION(pathinfo)
|
||||||
const char *p;
|
const char *p;
|
||||||
int idx;
|
int idx;
|
||||||
|
|
||||||
/* Have we alrady looked up the basename? */
|
/* Have we already looked up the basename? */
|
||||||
if (!have_basename && !ret) {
|
if (!have_basename && !ret) {
|
||||||
php_basename(path, path_len, NULL, 0, &ret, &ret_len TSRMLS_CC);
|
php_basename(path, path_len, NULL, 0, &ret, &ret_len TSRMLS_CC);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Test array_key_exists() function : usage variations - Pass differnt data types to $search arg
|
Test array_key_exists() function : usage variations - Pass different data types to $search arg
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
/* Prototype : bool array_key_exists(mixed $key, array $search)
|
/* Prototype : bool array_key_exists(mixed $key, array $search)
|
||||||
|
|
|
@ -16,7 +16,7 @@ $file_handle = fopen(__FILE__, "r");
|
||||||
//directory type resource
|
//directory type resource
|
||||||
$dir_handle = opendir( dirname(__FILE__) );
|
$dir_handle = opendir( dirname(__FILE__) );
|
||||||
|
|
||||||
//store resources in array for comparision.
|
//store resources in array for comparison.
|
||||||
$resources = array($file_handle, $dir_handle);
|
$resources = array($file_handle, $dir_handle);
|
||||||
|
|
||||||
// search for resouce type in the resource array
|
// search for resouce type in the resource array
|
||||||
|
|
|
@ -9,7 +9,7 @@ Test array_values() function : usage variations - Internal order check
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check that array_values is re-assigning keys according to the internal order of the array,
|
* Check that array_values is re-assigning keys according to the internal order of the array,
|
||||||
* and is not dependant on the \$input argument's keys
|
* and is not dependent on the \$input argument's keys
|
||||||
*/
|
*/
|
||||||
|
|
||||||
echo "*** Testing array_values() : usage variations ***\n";
|
echo "*** Testing array_values() : usage variations ***\n";
|
||||||
|
|
|
@ -123,7 +123,7 @@ Bug #34066 (recursive array_walk causes segfault)
|
||||||
"ProceedKeyArticle" => "01",
|
"ProceedKeyArticle" => "01",
|
||||||
"ActionKey" => "00",
|
"ActionKey" => "00",
|
||||||
"ContactCommissionArticle"=> "0,00",
|
"ContactCommissionArticle"=> "0,00",
|
||||||
"QuantDependantPriceKey"=> "",
|
"QuantdependentPriceKey"=> "",
|
||||||
"Quant" => "1",
|
"Quant" => "1",
|
||||||
"QuantUnit" => "",
|
"QuantUnit" => "",
|
||||||
"Meas" => array(
|
"Meas" => array(
|
||||||
|
@ -584,7 +584,7 @@ gen_xml(prefix=/Docs/Doc/DocItems/DocItem/)
|
||||||
/Docs/Doc/DocItems/DocItem/ContactCommissionArticle=0,00
|
/Docs/Doc/DocItems/DocItem/ContactCommissionArticle=0,00
|
||||||
gen_xml(prefix=/Docs/Doc/DocItems/DocItem/) end
|
gen_xml(prefix=/Docs/Doc/DocItems/DocItem/) end
|
||||||
gen_xml(prefix=/Docs/Doc/DocItems/DocItem/)
|
gen_xml(prefix=/Docs/Doc/DocItems/DocItem/)
|
||||||
/Docs/Doc/DocItems/DocItem/QuantDependantPriceKey
|
/Docs/Doc/DocItems/DocItem/QuantdependentPriceKey
|
||||||
gen_xml(prefix=/Docs/Doc/DocItems/DocItem/) end
|
gen_xml(prefix=/Docs/Doc/DocItems/DocItem/) end
|
||||||
gen_xml(prefix=/Docs/Doc/DocItems/DocItem/)
|
gen_xml(prefix=/Docs/Doc/DocItems/DocItem/)
|
||||||
/Docs/Doc/DocItems/DocItem/Quant=1
|
/Docs/Doc/DocItems/DocItem/Quant=1
|
||||||
|
|
|
@ -123,7 +123,7 @@ Bug #34066 (recursive array_walk causes segfault)
|
||||||
"ProceedKeyArticle" => "01",
|
"ProceedKeyArticle" => "01",
|
||||||
"ActionKey" => "00",
|
"ActionKey" => "00",
|
||||||
"ContactCommissionArticle"=> "0,00",
|
"ContactCommissionArticle"=> "0,00",
|
||||||
"QuantDependantPriceKey"=> "",
|
"QuantdependentPriceKey"=> "",
|
||||||
"Quant" => "1",
|
"Quant" => "1",
|
||||||
"QuantUnit" => "",
|
"QuantUnit" => "",
|
||||||
"Meas" => array(
|
"Meas" => array(
|
||||||
|
@ -543,7 +543,7 @@ gen_xml(prefix=/Docs/)
|
||||||
/Docs/ContactCommissionArticle=0,00
|
/Docs/ContactCommissionArticle=0,00
|
||||||
gen_xml(prefix=/Docs/) end
|
gen_xml(prefix=/Docs/) end
|
||||||
gen_xml(prefix=/Docs/)
|
gen_xml(prefix=/Docs/)
|
||||||
/Docs/QuantDependantPriceKey
|
/Docs/QuantdependentPriceKey
|
||||||
gen_xml(prefix=/Docs/) end
|
gen_xml(prefix=/Docs/) end
|
||||||
gen_xml(prefix=/Docs/)
|
gen_xml(prefix=/Docs/)
|
||||||
/Docs/Quant=1
|
/Docs/Quant=1
|
||||||
|
|
|
@ -19,7 +19,7 @@ $file_handle = fopen(__FILE__, "r");
|
||||||
//directory type resource
|
//directory type resource
|
||||||
$dir_handle = opendir( dirname(__FILE__) );
|
$dir_handle = opendir( dirname(__FILE__) );
|
||||||
|
|
||||||
//store resources in array for comparision.
|
//store resources in array for comparison.
|
||||||
$resources = array($file_handle, $dir_handle);
|
$resources = array($file_handle, $dir_handle);
|
||||||
|
|
||||||
// search for resouce type in the resource array
|
// search for resouce type in the resource array
|
||||||
|
|
|
@ -8,7 +8,7 @@ Test uasort() function : object functionality - sort diff. objects
|
||||||
*
|
*
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This testcase tests uasort() functionality with differnt objects
|
* This testcase tests uasort() functionality with different objects
|
||||||
* Objects of different classes:
|
* Objects of different classes:
|
||||||
* simple class,
|
* simple class,
|
||||||
* child class,
|
* child class,
|
||||||
|
|
|
@ -11,7 +11,7 @@ Test uasort() function : usage variations - sort array with reference variables
|
||||||
* Testing uasort() with 'array_arg' containing different reference variables
|
* Testing uasort() with 'array_arg' containing different reference variables
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// comparision function
|
// comparison function
|
||||||
/* Prototype : int cmp_function(mixed $value1, mixed $value2)
|
/* Prototype : int cmp_function(mixed $value1, mixed $value2)
|
||||||
* Parameters : $value1 and $value2 - values to be compared
|
* Parameters : $value1 and $value2 - values to be compared
|
||||||
* Return value : 0 - if both values are same
|
* Return value : 0 - if both values are same
|
||||||
|
|
|
@ -12,7 +12,7 @@ Test uasort() function : usage variations - sort different numeric values
|
||||||
* integer, octal, hexadecimal & float
|
* integer, octal, hexadecimal & float
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// comparision function
|
// comparison function
|
||||||
/* Prototype : int cmp_function(mixed $value1, mixed $value2)
|
/* Prototype : int cmp_function(mixed $value1, mixed $value2)
|
||||||
* Parameters : $value1 and $value2 - values to be compared
|
* Parameters : $value1 and $value2 - values to be compared
|
||||||
* Return value : 0 - if both values are same
|
* Return value : 0 - if both values are same
|
||||||
|
|
|
@ -6,9 +6,9 @@ if(substr(PHP_OS, 0, 3) != 'WIN' ) die('skip windows only test');
|
||||||
?>
|
?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
$result = exec('cd 1:\non_existant; dir nonexistant');
|
$result = exec('cd 1:\non_existent; dir nonexistent');
|
||||||
echo "$result";
|
echo "$result";
|
||||||
system('cd 1:\non_existant; dir nonexistant');
|
system('cd 1:\non_existent; dir nonexistent');
|
||||||
?>
|
?>
|
||||||
--EXPECT--
|
--EXPECT--
|
||||||
The system cannot find the drive specified.
|
The system cannot find the drive specified.
|
||||||
|
|
|
@ -10,7 +10,7 @@ if(substr(PHP_OS, 0, 3) != 'WIN' ) {
|
||||||
?>
|
?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
$result = exec('cd 1:\\non_existant; dir nonexistant');
|
$result = exec('cd 1:\\non_existent; dir nonexistent');
|
||||||
echo "$result";
|
echo "$result";
|
||||||
?>
|
?>
|
||||||
--EXPECT--
|
--EXPECT--
|
||||||
|
|
|
@ -10,7 +10,7 @@ if(substr(PHP_OS, 0, 3) != 'WIN' ) {
|
||||||
?>
|
?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
system('cd 1:\\non_existant; dir nonexistant');
|
system('cd 1:\\non_existent; dir nonexistent');
|
||||||
?>
|
?>
|
||||||
--EXPECT--
|
--EXPECT--
|
||||||
The system cannot find the drive specified.
|
The system cannot find the drive specified.
|
|
@ -575,13 +575,13 @@ Description:
|
||||||
Compares two stat values, stat value should be obtained by stat/lstat
|
Compares two stat values, stat value should be obtained by stat/lstat
|
||||||
$stat1 = first stat array
|
$stat1 = first stat array
|
||||||
$stat2 = second stat array
|
$stat2 = second stat array
|
||||||
$op = type of the comparision to be perform between elements of stat1 and stat2
|
$op = type of the comparison to be perform between elements of stat1 and stat2
|
||||||
"!=" compare for not equal
|
"!=" compare for not equal
|
||||||
"==" compare for equality
|
"==" compare for equality
|
||||||
">" if each element of stat1 is > than stat2
|
">" if each element of stat1 is > than stat2
|
||||||
"<" if each element of stat1 is < than stat2
|
"<" if each element of stat1 is < than stat2
|
||||||
$fields = contains the key of the elements that needs to be compared.
|
$fields = contains the key of the elements that needs to be compared.
|
||||||
type of the comparision is based on $op argument value
|
type of the comparison is based on $op argument value
|
||||||
$flag = specify true to dump the stat1 and stat2
|
$flag = specify true to dump the stat1 and stat2
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ var_dump( lchown( $filename ) );
|
||||||
// More than expected arguments
|
// More than expected arguments
|
||||||
var_dump( lchown( $filename, $uid, 'foobar' ) );
|
var_dump( lchown( $filename, $uid, 'foobar' ) );
|
||||||
|
|
||||||
// Non-existant filename
|
// Non-existent filename
|
||||||
var_dump( lchown( 'foobar_lchown.txt', $uid ) );
|
var_dump( lchown( 'foobar_lchown.txt', $uid ) );
|
||||||
|
|
||||||
// Wrong argument types
|
// Wrong argument types
|
||||||
|
|
|
@ -19,8 +19,8 @@ symlink(basename($prefix . "_file"), $prefix . "_link1");
|
||||||
symlink(basename($prefix . "_link1"), $prefix . "_link2");
|
symlink(basename($prefix . "_link1"), $prefix . "_link2");
|
||||||
|
|
||||||
// symlink to a non-existent path
|
// symlink to a non-existent path
|
||||||
@unlink($prefix . "_nonexistant");
|
@unlink($prefix . "_nonexistent");
|
||||||
symlink(basename($prefix . "_nonexistant"), $prefix . "_link3");
|
symlink(basename($prefix . "_nonexistent"), $prefix . "_link3");
|
||||||
|
|
||||||
// symlink to a regular file using an absolute path
|
// symlink to a regular file using an absolute path
|
||||||
symlink($prefix . "_file", $prefix . "_link4");
|
symlink($prefix . "_file", $prefix . "_link4");
|
||||||
|
@ -45,6 +45,6 @@ unlink($prefix . "_file");
|
||||||
--EXPECTF--
|
--EXPECTF--
|
||||||
%unicode|string%(%d) "symlink_to_symlink.php_file"
|
%unicode|string%(%d) "symlink_to_symlink.php_file"
|
||||||
%unicode|string%(%d) "symlink_to_symlink.php_link1"
|
%unicode|string%(%d) "symlink_to_symlink.php_link1"
|
||||||
%unicode|string%(%d) "symlink_to_symlink.php_nonexistant"
|
%unicode|string%(%d) "symlink_to_symlink.php_nonexistent"
|
||||||
%unicode|string%(%d) "%s/symlink_to_symlink.php_file"
|
%unicode|string%(%d) "%s/symlink_to_symlink.php_file"
|
||||||
%unicode|string%(%d) "%s/symlink_to_symlink.php_link4"
|
%unicode|string%(%d) "%s/symlink_to_symlink.php_link4"
|
||||||
|
|
|
@ -158,7 +158,7 @@ class mystream
|
||||||
}
|
}
|
||||||
|
|
||||||
if (@stream_wrapper_register("bogus", "class_not_exist")) {
|
if (@stream_wrapper_register("bogus", "class_not_exist")) {
|
||||||
die("Registered a non-existant class!!!???");
|
die("Registered a non-existent class!!!???");
|
||||||
}
|
}
|
||||||
echo "Not Registered\n";
|
echo "Not Registered\n";
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ $n += test_me("bug #7368", 2, "1345", "1234");
|
||||||
$n += test_me("bug #6562", 1, "debugg", "debug");
|
$n += test_me("bug #6562", 1, "debugg", "debug");
|
||||||
$n += test_me("bug #6562", 1, "ddebug", "debug");
|
$n += test_me("bug #6562", 1, "ddebug", "debug");
|
||||||
$n += test_me("bug #6562", 2, "debbbug", "debug");
|
$n += test_me("bug #6562", 2, "debbbug", "debug");
|
||||||
$n += test_me("bug #6562", 1, "debugging", "debuging");
|
$n += test_me("bug #6562", 1, "debugging", "debugging");
|
||||||
|
|
||||||
$n += test_me("bug #16473", 2, "a", "bc");
|
$n += test_me("bug #16473", 2, "a", "bc");
|
||||||
$n += test_me("bug #16473", 2, "xa", "xbc");
|
$n += test_me("bug #16473", 2, "xa", "xbc");
|
||||||
|
|
|
@ -24,8 +24,8 @@ class sample {
|
||||||
//getting the resource
|
//getting the resource
|
||||||
$file_handle = fopen(__FILE__, "r");
|
$file_handle = fopen(__FILE__, "r");
|
||||||
|
|
||||||
// array with different values for $delimeter
|
// array with different values for $delimiter
|
||||||
$delimeters = array (
|
$delimiters = array (
|
||||||
|
|
||||||
// integer values
|
// integer values
|
||||||
0,
|
0,
|
||||||
|
@ -68,13 +68,13 @@ $delimeters = array (
|
||||||
@$unset_var
|
@$unset_var
|
||||||
);
|
);
|
||||||
|
|
||||||
// loop through with each element of the $delimeters array to test explode() function
|
// loop through with each element of the $delimiters array to test explode() function
|
||||||
$count = 1;
|
$count = 1;
|
||||||
$string = "piece1 piece2 piece3 piece4 piece5 piece6";
|
$string = "piece1 piece2 piece3 piece4 piece5 piece6";
|
||||||
$limit = 5;
|
$limit = 5;
|
||||||
foreach($delimeters as $delimeter) {
|
foreach($delimiters as $delimiter) {
|
||||||
echo "-- Iteration $count --\n";
|
echo "-- Iteration $count --\n";
|
||||||
var_dump( explode($delimeter, $string, $limit) );
|
var_dump( explode($delimiter, $string, $limit) );
|
||||||
$count ++;
|
$count ++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Bug #38322 (reading past array in sscanf() leads to segfault/arbitary code execution)
|
Bug #38322 (reading past array in sscanf() leads to segfault/arbitrary code execution)
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Bug #47322 (sscanf %d does't work)
|
Bug #47322 (sscanf %d doesn't work)
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
|
@ -14,11 +14,11 @@ echo "\n-- Testing explode() function with no arguments --\n";
|
||||||
var_dump( explode() );
|
var_dump( explode() );
|
||||||
|
|
||||||
echo "\n-- Testing explode() function with more than expected no. of arguments --\n";
|
echo "\n-- Testing explode() function with more than expected no. of arguments --\n";
|
||||||
$delimeter = " ";
|
$delimiter = " ";
|
||||||
$string = "piece1 piece2 piece3 piece4 piece5 piece6";
|
$string = "piece1 piece2 piece3 piece4 piece5 piece6";
|
||||||
$limit = 5;
|
$limit = 5;
|
||||||
$extra_arg = 10;
|
$extra_arg = 10;
|
||||||
var_dump( explode($delimeter, $string, $limit, $extra_arg) );
|
var_dump( explode($delimiter, $string, $limit, $extra_arg) );
|
||||||
|
|
||||||
?>
|
?>
|
||||||
===Done===
|
===Done===
|
||||||
|
|
|
@ -24,8 +24,8 @@ class sample {
|
||||||
//getting the resource
|
//getting the resource
|
||||||
$file_handle = fopen(__FILE__, "r");
|
$file_handle = fopen(__FILE__, "r");
|
||||||
|
|
||||||
// array with different values for $delimeter
|
// array with different values for $delimiter
|
||||||
$delimeters = array (
|
$delimiters = array (
|
||||||
|
|
||||||
// integer values
|
// integer values
|
||||||
/*1*/ 0,
|
/*1*/ 0,
|
||||||
|
@ -68,13 +68,13 @@ $delimeters = array (
|
||||||
/*22*/ @$unset_var
|
/*22*/ @$unset_var
|
||||||
);
|
);
|
||||||
|
|
||||||
// loop through with each element of the $delimeters array to test explode() function
|
// loop through with each element of the $delimiters array to test explode() function
|
||||||
$count = 1;
|
$count = 1;
|
||||||
$string = "piece1 piece2 piece3 piece4 piece5 piece6";
|
$string = "piece1 piece2 piece3 piece4 piece5 piece6";
|
||||||
$limit = 5;
|
$limit = 5;
|
||||||
foreach($delimeters as $delimeter) {
|
foreach($delimiters as $delimiter) {
|
||||||
echo "-- Iteration $count --\n";
|
echo "-- Iteration $count --\n";
|
||||||
var_dump( explode($delimeter, $string, $limit) );
|
var_dump( explode($delimiter, $string, $limit) );
|
||||||
$count ++;
|
$count ++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -70,11 +70,11 @@ $strings = array (
|
||||||
|
|
||||||
// loop through with each element of the $strings array to test explode() function
|
// loop through with each element of the $strings array to test explode() function
|
||||||
$count = 1;
|
$count = 1;
|
||||||
$delimeter = " ";
|
$delimiter = " ";
|
||||||
$limit = 5;
|
$limit = 5;
|
||||||
foreach($strings as $string) {
|
foreach($strings as $string) {
|
||||||
echo "-- Iteration $count --\n";
|
echo "-- Iteration $count --\n";
|
||||||
var_dump( explode($delimeter, $string, $limit) );
|
var_dump( explode($delimiter, $string, $limit) );
|
||||||
$count ++;
|
$count ++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ class sample {
|
||||||
//getting the resource
|
//getting the resource
|
||||||
$file_handle = fopen(__FILE__, "r");
|
$file_handle = fopen(__FILE__, "r");
|
||||||
|
|
||||||
// array with different values for $delimeter
|
// array with different values for $delimiter
|
||||||
$limits = array (
|
$limits = array (
|
||||||
|
|
||||||
// integer values
|
// integer values
|
||||||
|
@ -70,11 +70,11 @@ $limits = array (
|
||||||
|
|
||||||
// loop through with each element of the $limits array to test explode() function
|
// loop through with each element of the $limits array to test explode() function
|
||||||
$count = 1;
|
$count = 1;
|
||||||
$delimeter = " ";
|
$delimiter = " ";
|
||||||
$string = "piece1 piece2 piece3 piece4 piece5 piece6";
|
$string = "piece1 piece2 piece3 piece4 piece5 piece6";
|
||||||
foreach($limits as $limit) {
|
foreach($limits as $limit) {
|
||||||
echo "-- Iteration $count --\n";
|
echo "-- Iteration $count --\n";
|
||||||
var_dump( explode($delimeter, $string, $limit) );
|
var_dump( explode($delimiter, $string, $limit) );
|
||||||
$count ++;
|
$count ++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -34,7 +34,7 @@ var_dump( strrchr("Hello, World", "Hi") );
|
||||||
var_dump( strrchr("Hello, World", "o") );
|
var_dump( strrchr("Hello, World", "o") );
|
||||||
var_dump( strrchr("Hello, World", "ooo") );
|
var_dump( strrchr("Hello, World", "ooo") );
|
||||||
|
|
||||||
var_dump( strrchr("Hello, World", "Zzzz") ); //non-existant needle in haystack
|
var_dump( strrchr("Hello, World", "Zzzz") ); //non-existent needle in haystack
|
||||||
echo "*** Done ***";
|
echo "*** Done ***";
|
||||||
?>
|
?>
|
||||||
--EXPECTF--
|
--EXPECTF--
|
||||||
|
|
|
@ -26,7 +26,7 @@ echo "\n-- Testing substr_replace() function with start and length different typ
|
||||||
var_dump(substr_replace($s1, "evening", array(5)));
|
var_dump(substr_replace($s1, "evening", array(5)));
|
||||||
var_dump(substr_replace($s1, "evening", 5, array(8)));
|
var_dump(substr_replace($s1, "evening", 5, array(8)));
|
||||||
|
|
||||||
echo "\n-- Testing substr_replace() function with start and length with a different number of elments --\n";
|
echo "\n-- Testing substr_replace() function with start and length with a different number of elements --\n";
|
||||||
var_dump(substr_replace($s1, "evening", array(5, 1), array(8)));
|
var_dump(substr_replace($s1, "evening", array(5, 1), array(8)));
|
||||||
|
|
||||||
echo "\n-- Testing substr_replace() function with start and length as arrays but string not--\n";
|
echo "\n-- Testing substr_replace() function with start and length as arrays but string not--\n";
|
||||||
|
@ -58,7 +58,7 @@ string(12) "Good morning"
|
||||||
Warning: substr_replace(): 'from' and 'len' should be of same type - numerical or array in %s on line %d
|
Warning: substr_replace(): 'from' and 'len' should be of same type - numerical or array in %s on line %d
|
||||||
string(12) "Good morning"
|
string(12) "Good morning"
|
||||||
|
|
||||||
-- Testing substr_replace() function with start and length with a different number of elments --
|
-- Testing substr_replace() function with start and length with a different number of elements --
|
||||||
|
|
||||||
Warning: substr_replace(): 'from' and 'len' should have the same number of elements in %s on line %d
|
Warning: substr_replace(): 'from' and 'len' should have the same number of elements in %s on line %d
|
||||||
string(12) "Good morning"
|
string(12) "Good morning"
|
||||||
|
|
|
@ -1121,7 +1121,7 @@ static int php_sybase_finish_results(sybase_result *result TSRMLS_DC)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CS_CMD_FAIL:
|
case CS_CMD_FAIL:
|
||||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Command failed, cancelling rest");
|
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Command failed, canceling rest");
|
||||||
ct_cancel(NULL, result->sybase_ptr->cmd, CS_CANCEL_ALL);
|
ct_cancel(NULL, result->sybase_ptr->cmd, CS_CANCEL_ALL);
|
||||||
fail = 1;
|
fail = 1;
|
||||||
break;
|
break;
|
||||||
|
@ -1131,7 +1131,7 @@ static int php_sybase_finish_results(sybase_result *result TSRMLS_DC)
|
||||||
case CS_PARAM_RESULT:
|
case CS_PARAM_RESULT:
|
||||||
case CS_ROW_RESULT:
|
case CS_ROW_RESULT:
|
||||||
/* Unexpected results, cancel them. */
|
/* Unexpected results, cancel them. */
|
||||||
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Sybase: Unexpected results, cancelling current");
|
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Sybase: Unexpected results, canceling current");
|
||||||
ct_cancel(NULL, result->sybase_ptr->cmd, CS_CANCEL_CURRENT);
|
ct_cancel(NULL, result->sybase_ptr->cmd, CS_CANCEL_CURRENT);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -1141,7 +1141,7 @@ static int php_sybase_finish_results(sybase_result *result TSRMLS_DC)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Sybase: Unexpected results, cancelling all");
|
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Sybase: Unexpected results, canceling all");
|
||||||
ct_cancel(NULL, result->sybase_ptr->cmd, CS_CANCEL_ALL);
|
ct_cancel(NULL, result->sybase_ptr->cmd, CS_CANCEL_ALL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1696,7 +1696,7 @@ PHP_FUNCTION(sybase_free_result)
|
||||||
|
|
||||||
/* Did we fetch up until the end? */
|
/* Did we fetch up until the end? */
|
||||||
if (result->last_retcode != CS_END_DATA && result->last_retcode != CS_END_RESULTS) {
|
if (result->last_retcode != CS_END_DATA && result->last_retcode != CS_END_RESULTS) {
|
||||||
/* php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Cancelling the rest of the results"); */
|
/* php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: canceling the rest of the results"); */
|
||||||
ct_cancel(NULL, result->sybase_ptr->cmd, CS_CANCEL_ALL);
|
ct_cancel(NULL, result->sybase_ptr->cmd, CS_CANCEL_ALL);
|
||||||
php_sybase_finish_results(result TSRMLS_CC);
|
php_sybase_finish_results(result TSRMLS_CC);
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,7 +80,7 @@ bool(true)
|
||||||
select "bar"
|
select "bar"
|
||||||
|
|
||||||
|
|
||||||
Notice: sybase_query(): Sybase: Unexpected results, cancelling current in %stest.inc on line %d
|
Notice: sybase_query(): Sybase: Unexpected results, canceling current in %stest.inc on line %d
|
||||||
<<< Return: resource
|
<<< Return: resource
|
||||||
array(1) {
|
array(1) {
|
||||||
[0]=>
|
[0]=>
|
||||||
|
|
|
@ -23,7 +23,7 @@ Sybase-CT bug #43578 (Incurred fault #6 - if returned textfield ist empty)
|
||||||
var_dump(sybase_query('insert into #Resource values (123, NULL)', $db));
|
var_dump(sybase_query('insert into #Resource values (123, NULL)', $db));
|
||||||
var_dump(sybase_query('insert into #Resource values (124, "")', $db));
|
var_dump(sybase_query('insert into #Resource values (124, "")', $db));
|
||||||
|
|
||||||
// Select non-existant
|
// Select non-existent
|
||||||
var_dump(sybase_select_ex($db, 'select DC_Rights from #Resource where Resource_ID = 122'));
|
var_dump(sybase_select_ex($db, 'select DC_Rights from #Resource where Resource_ID = 122'));
|
||||||
|
|
||||||
// Select null
|
// Select null
|
||||||
|
|
|
@ -40,7 +40,7 @@ Sybase-CT sybase_fetch_object
|
||||||
// Test with object
|
// Test with object
|
||||||
var_export(fetch_object($db, new article())); echo "\n";
|
var_export(fetch_object($db, new article())); echo "\n";
|
||||||
|
|
||||||
// Test with non-existant class
|
// Test with non-existent class
|
||||||
var_export(fetch_object($db, '***')); echo "\n";
|
var_export(fetch_object($db, '***')); echo "\n";
|
||||||
|
|
||||||
sybase_close($db);
|
sybase_close($db);
|
||||||
|
|
|
@ -13,7 +13,7 @@ Sybase-CT server message handler
|
||||||
|
|
||||||
$db= sybase_connect_ex();
|
$db= sybase_connect_ex();
|
||||||
|
|
||||||
echo 'Nonexistant: '; sybase_set_messagehandler_ex('function_does_not_exist');
|
echo 'Nonexistent: '; sybase_set_messagehandler_ex('function_does_not_exist');
|
||||||
echo 'Static method: '; sybase_set_messagehandler_ex(array('sybase', 'static_handler'));
|
echo 'Static method: '; sybase_set_messagehandler_ex(array('sybase', 'static_handler'));
|
||||||
echo 'Instance method: '; sybase_set_messagehandler_ex(array(new sybase(), 'handler'));
|
echo 'Instance method: '; sybase_set_messagehandler_ex(array(new sybase(), 'handler'));
|
||||||
echo 'Lambda function: '; sybase_set_messagehandler_ex(create_function('', 'return FALSE;'));
|
echo 'Lambda function: '; sybase_set_messagehandler_ex(create_function('', 'return FALSE;'));
|
||||||
|
@ -25,7 +25,7 @@ Sybase-CT server message handler
|
||||||
sybase_close($db);
|
sybase_close($db);
|
||||||
?>
|
?>
|
||||||
--EXPECTF--
|
--EXPECTF--
|
||||||
Nonexistant:
|
Nonexistent:
|
||||||
Warning: sybase_set_message_handler() expects parameter 1 to be a valid callback, function 'function_does_not_exist' not found or invalid function name in %stest.inc on line %d
|
Warning: sybase_set_message_handler() expects parameter 1 to be a valid callback, function 'function_does_not_exist' not found or invalid function name in %stest.inc on line %d
|
||||||
NULL
|
NULL
|
||||||
Static method: bool(true)
|
Static method: bool(true)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Bug #41287 (Namespace functions don't allow xmlns defintion to be optional)
|
Bug #41287 (Namespace functions don't allow xmlns definition to be optional)
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php
|
<?php
|
||||||
if (!extension_loaded("xmlwriter")) die("skip");
|
if (!extension_loaded("xmlwriter")) die("skip");
|
||||||
|
|
|
@ -27,7 +27,7 @@ sprintf offers the ability to make a lot of failures since it does not know
|
||||||
the size of the buffer it uses. Therefore usage of sprintf often
|
the size of the buffer it uses. Therefore usage of sprintf often
|
||||||
results in possible entries for buffer overrun attacks. So please
|
results in possible entries for buffer overrun attacks. So please
|
||||||
use this version only if you are sure the call is safe. sprintf
|
use this version only if you are sure the call is safe. sprintf
|
||||||
allways terminstes the buffer it writes to.
|
always terminstes the buffer it writes to.
|
||||||
|
|
||||||
snprintf knows the buffers size and will not write behind it. But you will
|
snprintf knows the buffers size and will not write behind it. But you will
|
||||||
have to use either a static buffer or allocate a dynamic buffer
|
have to use either a static buffer or allocate a dynamic buffer
|
||||||
|
@ -48,7 +48,7 @@ spprintf is the dynamical version of snprintf. It allocates the buffer in size
|
||||||
snprintf and offers possible memory leakes if you miss freeing the
|
snprintf and offers possible memory leakes if you miss freeing the
|
||||||
buffer allocated by the function. Therfore this function should be
|
buffer allocated by the function. Therfore this function should be
|
||||||
used where either no maximum is known or the maximum is much bigger
|
used where either no maximum is known or the maximum is much bigger
|
||||||
than normal size required. spprintf allways terminates the buffer.
|
than normal size required. spprintf always terminates the buffer.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ Example:
|
||||||
sprintf(buffer, "test"); | snprintf(buffer, MAX, "test"); | spprintf(&buffer, MAX, "text");
|
sprintf(buffer, "test"); | snprintf(buffer, MAX, "test"); | spprintf(&buffer, MAX, "text");
|
||||||
| | if (!buffer)
|
| | if (!buffer)
|
||||||
| | return OUT_OF_MEMORY
|
| | return OUT_OF_MEMORY
|
||||||
// sprintf allways terminates | // manual termination of | // spprintf allays terminates buffer
|
// sprintf always terminates | // manual termination of | // spprintf allays terminates buffer
|
||||||
// buffer | // buffer *IS* required |
|
// buffer | // buffer *IS* required |
|
||||||
| buffer[MAX-1] = 0; |
|
| buffer[MAX-1] = 0; |
|
||||||
action_with_buffer(buffer); | action_with_buffer(buffer); | action_with_buffer(buffer);
|
action_with_buffer(buffer); | action_with_buffer(buffer); | action_with_buffer(buffer);
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
The pbuf parameter of all spprintf version receives a pointer to the allocated
|
The pbuf parameter of all spprintf version receives a pointer to the allocated
|
||||||
buffer. This buffer must be freed manually after usage using efree() function.
|
buffer. This buffer must be freed manually after usage using efree() function.
|
||||||
The buffer will allways be terminated by a zero character. When pbuf is NULL
|
The buffer will always be terminated by a zero character. When pbuf is NULL
|
||||||
the function can be used to calculate the required size of the buffer but for
|
the function can be used to calculate the required size of the buffer but for
|
||||||
that purpose snprintf is faster. When both pbuf and the return value are 0
|
that purpose snprintf is faster. When both pbuf and the return value are 0
|
||||||
than you are out of memory.
|
than you are out of memory.
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
; All relative paths in this configuration file are relative to PHP's install
|
; All relative paths in this configuration file are relative to PHP's install
|
||||||
; prefix (@prefix@). This prefix can be dynamicaly changed by using the
|
; prefix (@prefix@). This prefix can be dynamically changed by using the
|
||||||
; '-p' argument from the command line.
|
; '-p' argument from the command line.
|
||||||
|
|
||||||
; Include one or more files. If glob(3) exists, it is used to include a bunch of
|
; Include one or more files. If glob(3) exists, it is used to include a bunch of
|
||||||
|
|
|
@ -195,7 +195,7 @@ process.
|
||||||
|
|
||||||
By default a LSAPI application check the existence of its parent process
|
By default a LSAPI application check the existence of its parent process
|
||||||
and exits automatically if the parent process died. This is to reduce
|
and exits automatically if the parent process died. This is to reduce
|
||||||
orphan process when web server is restarted. However, it is desireable
|
orphan process when web server is restarted. However, it is desirable
|
||||||
to disable this feature, such as when a LSAPI process was started
|
to disable this feature, such as when a LSAPI process was started
|
||||||
manually from command line. LSAPI_PPID_NO_CHECK should be set when
|
manually from command line. LSAPI_PPID_NO_CHECK should be set when
|
||||||
you want to disable the checking of existence of parent process.
|
you want to disable the checking of existence of parent process.
|
||||||
|
|
Binary file not shown.
|
@ -23,7 +23,7 @@ class gtVariationContainerFunction extends gtVariationContainer {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constucts all possible variation testcases in array $this->variationTests
|
* constructs all possible variation testcases in array $this->variationTests
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function constructAll() {
|
public function constructAll() {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Bug #45986 (wrong error message for a non existant file on rename)
|
Bug #45986 (wrong error message for a non existent file on rename)
|
||||||
--CREDITS--
|
--CREDITS--
|
||||||
Sebastian Schürmann
|
Sebastian Schürmann
|
||||||
sebs@php.net
|
sebs@php.net
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue