$x = array("test", "55");
global ${$x[0]};
${$x[0]} = $x[1];
-echo "Test: $test\n";;
+echo "Test: $test\n";
?>
--EXPECT--
Test: 55
try {
$b = new B();
} catch(Exception $e) {
- echo $e->getMessage() . "\n";;
+ echo $e->getMessage() . "\n";
}
?>
--EXPECT--
if (free_counter == bin_elements[i]) {
has_free_pages = 1;
}
- chunk->map[page_num] = ZEND_MM_SRUN_EX(i, free_counter);;
+ chunk->map[page_num] = ZEND_MM_SRUN_EX(i, free_counter);
p = p->next_free_slot;
}
ZEND_ASSERT(ZEND_MM_SRUN_BIN_NUM(info) == i);
if (ZEND_MM_SRUN_FREE_COUNTER(info) == bin_elements[i]) {
/* remove from cache */
- p = p->next_free_slot;;
+ p = p->next_free_slot;
*q = p;
} else {
q = &p->next_free_slot;
if (force) {
zend_array *symbol_table = zend_rebuild_symbol_table();
if (symbol_table) {
- return zend_hash_update(symbol_table, name, value) ? SUCCESS : FAILURE;;
+ return zend_hash_update(symbol_table, name, value) ? SUCCESS : FAILURE;
}
}
} else {
if (force) {
zend_array *symbol_table = zend_rebuild_symbol_table();
if (symbol_table) {
- return zend_hash_str_update(symbol_table, name, len, value) ? SUCCESS : FAILURE;;
+ return zend_hash_str_update(symbol_table, name, len, value) ? SUCCESS : FAILURE;
}
}
} else {
f.arg_info = ecalloc(bindptr.lpfuncdesc->cParams, sizeof(zend_arg_info));
for (i = 0; i < bindptr.lpfuncdesc->cParams; i++) {
- f.arg_info[i].type = ZEND_TYPE_ENCODE(0,1);;
+ f.arg_info[i].type = ZEND_TYPE_ENCODE(0,1);
if (bindptr.lpfuncdesc->lprgelemdescParam[i].paramdesc.wParamFlags & PARAMFLAG_FOUT) {
f.arg_info[i].pass_by_reference = ZEND_SEND_BY_REF;
}
zval_ptr_dtor(&ch->handlers->write_header->stream);
ch->handlers->write_header->fp = fp;
ch->handlers->write_header->method = PHP_CURL_FILE;
- ZVAL_COPY(&ch->handlers->write_header->stream, zvalue);;
+ ZVAL_COPY(&ch->handlers->write_header->stream, zvalue);
} else {
php_error_docref(NULL, E_WARNING, "the provided file handle is not writable");
return FAILURE;
{
int a;
char *decode;
- size_t len;;
+ size_t len;
*pszEncoding = NULL;
/* Copy the comment */
// One argument
echo "\n-- Testing imap_alerts() function with one argument --\n";
-$extra_arg = 10;;
+$extra_arg = 10;
var_dump( imap_alerts($extra_arg) );
?>
!!safe_reverse;
RULES;
$rbbi = new IntlRuleBasedBreakIterator($rules);
-$rbbi->setText('sdfkjsdf88á.... ,;');;
+$rbbi->setText('sdfkjsdf88á.... ,;');
$br = $rbbi->getBinaryRules();
!!safe_reverse;
RULES;
$rbbi = new IntlRuleBasedBreakIterator($rules);
-$rbbi->setText('sdfkjsdf88á.... ,;');;
+$rbbi->setText('sdfkjsdf88á.... ,;');
do {
var_dump($rbbi->current(), $rbbi->getRuleStatusVec());
[0]=>
int(4)
}
-==DONE==
\ No newline at end of file
+==DONE==
va_start(arg, format);
vspprintf(&message, 0, format, arg);
- va_end(arg);;
+ va_end(arg);
if (!(MyG(report_mode) & MYSQLI_REPORT_STRICT)) {
php_error_docref(NULL, E_WARNING, "(%s/%d): %s", sqlstate, errorno, message);
printf("[005] Expecting 2/int got %s/%s\n", gettype($tmp), $tmp);
if ('gbk' !== ($tmp = $mysql->character_set_name()))
- printf("[005] Expecting gbk/string got %s/%s\n", gettype($tmp), $tmp);;
+ printf("[005] Expecting gbk/string got %s/%s\n", gettype($tmp), $tmp);
}
}
$mysql->close();
?>
--FILE--
<?php
- require_once('connect.inc');;
+ require_once('connect.inc');
if (NULL !== ($tmp = @mysqli_debug()))
printf("[001] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp);
?>
--FILE--
<?php
- require_once('connect.inc');;
+ require_once('connect.inc');
if (true !== ($tmp = mysqli_debug(sprintf('d:t:O,%s/mysqli_debug_phpt.trace', sys_get_temp_dir()))))
printf("[001] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp);
?>
--FILE--
<?php
- require_once('connect.inc');;
+ require_once('connect.inc');
require_once('table.inc');
function try_control_string($link, $control_string, $trace_file, $offset) {
?>
--FILE--
<?php
- require_once('connect.inc');;
+ require_once('connect.inc');
require_once('table.inc');
function try_control_string($link, $control_string, $trace_file, $offset) {
require_once("clean_table.inc");
?>
--EXPECTF--
-done!
\ No newline at end of file
+done!
require dirname(__FILE__)."/connect.inc";
-$ora_sql = "DROP TYPE ".$type_name;;
+$ora_sql = "DROP TYPE ".$type_name;
$statement = oci_parse($c,$ora_sql);
@oci_execute($statement);
}
for ($i = 0; $i < NUMLOBS; $i++) {
- echo "Row $i Size: " . $row[$i][0]->size() . "\n";;
+ echo "Row $i Size: " . $row[$i][0]->size() . "\n";
echo "Pos 1: " . $row[$i][0]->tell() . "\n";
- echo "Data: " . $row[$i][0]->read(5) . "\n";;
+ echo "Data: " . $row[$i][0]->read(5) . "\n";
echo "Pos 2: " . $row[$i][0]->tell() . "\n";
echo "Data: " . $row[$i][0]->read(12) . "\n";
}
ZEND_HASH_FOREACH_BUCKET(CG(auto_globals), p) {
zend_auto_global *auto_global;
- auto_global = (zend_auto_global*)Z_PTR(p->val);;
+ auto_global = (zend_auto_global*)Z_PTR(p->val);
zend_string_addref(auto_global->name);
auto_global->name = new_interned_string(auto_global->name);
#define ACCEL_LOG_INFO 3
#define ACCEL_LOG_DEBUG 4
-void zend_accel_error(int type, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 2, 3);;
+void zend_accel_error(int type, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 2, 3);
#endif /* _ZEND_ACCELERATOR_DEBUG_H */
p_tmp_shared_globals = (zend_smm_shared_globals *) zend_shared_alloc(sizeof(zend_smm_shared_globals));
if (!p_tmp_shared_globals) {
zend_accel_error(ACCEL_LOG_FATAL, "Insufficient shared memory!");
- return ALLOC_FAILURE;;
+ return ALLOC_FAILURE;
}
memset(p_tmp_shared_globals, 0, sizeof(zend_smm_shared_globals));
tmp_shared_segments = zend_shared_alloc(shared_segments_array_size + ZSMMG(shared_segments_count) * sizeof(void *));
if (!tmp_shared_segments) {
zend_accel_error(ACCEL_LOG_FATAL, "Insufficient shared memory!");
- return ALLOC_FAILURE;;
+ return ALLOC_FAILURE;
}
copy_shared_segments(tmp_shared_segments, ZSMMG(shared_segments)[0], ZSMMG(shared_segments_count), S_H(segment_type_size)());
ZSMMG(shared_memory_state).positions = (int *)zend_shared_alloc(sizeof(int) * ZSMMG(shared_segments_count));
if (!ZSMMG(shared_memory_state).positions) {
zend_accel_error(ACCEL_LOG_FATAL, "Insufficient shared memory!");
- return ALLOC_FAILURE;;
+ return ALLOC_FAILURE;
}
ZCG(locked) = 0;
var_dump(preg_split('/(\d*)/', 'ab2c3u', -1, PREG_SPLIT_DELIM_CAPTURE));
var_dump(preg_split('/(\d*)/', 'ab2c3u', -1, PREG_SPLIT_OFFSET_CAPTURE));
var_dump(preg_split('/(\d*)/', 'ab2c3u', -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE));
-var_dump(preg_split('/(\d*)/', 'ab2c3u', -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_OFFSET_CAPTURE));;
+var_dump(preg_split('/(\d*)/', 'ab2c3u', -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_OFFSET_CAPTURE));
var_dump(preg_split('/(\d*)/', 'ab2c3u', -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_OFFSET_CAPTURE));
var_dump(preg_split('/(\d*)/', 'ab2c3u', -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_OFFSET_CAPTURE));
case PDO_FETCH_NAMED:
if (!return_all) {
ZVAL_NEW_ARR(return_value);
- zend_hash_init(Z_ARRVAL_P(return_value), stmt->column_count, NULL, ZVAL_PTR_DTOR, 0);;
+ zend_hash_init(Z_ARRVAL_P(return_value), stmt->column_count, NULL, ZVAL_PTR_DTOR, 0);
} else {
array_init(return_value);
}
// compressed file length does not match incompressed lentgh for an uncompressed file
$files = array();
-$files['a'] = array('cont'=>'a','ulen'=>1,'clen'=>2);;
+$files['a'] = array('cont'=>'a','ulen'=>1,'clen'=>2);
include 'files/phar_test.inc';
try {
include $fname;
// compressed file length does not match incompressed lentgh for an uncompressed file
$files = array();
-$files['a/subdir/here'] = array('cont'=>'a','ulen'=>1,'clen'=>1);;
+$files['a/subdir/here'] = array('cont'=>'a','ulen'=>1,'clen'=>1);
include 'files/phar_test.inc';
$b = new PharFileInfo($pname . '/a/subdir');
Phar entry is a directory, does not have a CRC
Phar entry was not CRC checked
int(%s)
-===DONE===
\ No newline at end of file
+===DONE===
// One argument
echo "\n-- Testing posix_getuid() function with one argument --\n";
-$extra_arg = 10;;
+$extra_arg = 10;
var_dump( posix_getuid($extra_arg) );
echo "Done";
// One argument
echo "\n-- Testing posix_times() function with one argument --\n";
-$extra_arg = 10;;
+$extra_arg = 10;
var_dump( posix_times($extra_arg) );
echo "Done";
// One argument
echo "\n-- Testing posix_uname() function with one argument --\n";
-$extra_arg = 10;;
+$extra_arg = 10;
var_dump( posix_uname($extra_arg) );
echo "Done";
if (value) {
/* XXX if (rl_readline_name) free(rl_readline_name); */
convert_to_string_ex(value);
- rl_readline_name = strdup(Z_STRVAL_P(value));;
+ rl_readline_name = strdup(Z_STRVAL_P(value));
}
RETVAL_STRING(SAFE_STRING(oldstr));
} else if (!strcasecmp(what, "attempted_completion_over")) {
fcc.initialized = 1;
fcc.function_handler = constructor;
- fcc.calling_scope = zend_get_executed_scope();;
+ fcc.calling_scope = zend_get_executed_scope();
fcc.called_scope = Z_OBJCE_P(return_value);
fcc.object = Z_OBJ_P(return_value);
function __construct($wsdl, $options) {
parent::__construct($wsdl, $options);
$this->server = new SoapServer($wsdl, $options);
- $this->server->setClass('hello_world');;
+ $this->server->setClass('hello_world');
}
function __doRequest($request, $location, $action, $version, $one_way = 0) {
if (zend_call_function(&BG(user_compare_fci), &BG(user_compare_fci_cache)) == SUCCESS && Z_TYPE(retval) != IS_UNDEF) {
zend_long ret = zval_get_long(&retval);
zval_ptr_dtor(&retval);
- return ret < 0 ? -1 : ret > 0 ? 1 : 0;;
+ return ret < 0 ? -1 : ret > 0 ? 1 : 0;
} else {
return 0;
}
if (numVars) {
char __buf[2];
__buf[0] = sch;
- __buf[1] = '\0';;
+ __buf[1] = '\0';
current = args[objIndex++];
zval_dtor(*current);
ZVAL_STRINGL( *current, __buf, 1);
var_dump( sizeof() );
echo "-- Testing sizeof() function with more than two arguments under COUNT_NORMAL mode --\n";
$var = 100;
-$extra_arg = 10;;
+$extra_arg = 10;
var_dump( sizeof($var, COUNT_NORMAL, $extra_arg) );
echo "-- Testing sizeof() function with more than two arguments under COUNT_RECURSIVE mode --\n";
var_dump( sizeof($var, COUNT_RECURSIVE, $extra_arg) );
// One argument
echo "\n-- Testing get_declared_classes() function with one argument --\n";
-$extra_arg = 10;;
+$extra_arg = 10;
var_dump( get_declared_classes($extra_arg) );
echo "Done";
// One argument
echo "\n-- Testing get_declared_interfaces() function with one argument --\n";
-$extra_arg = 10;;
+$extra_arg = 10;
var_dump( get_declared_interfaces($extra_arg) );
echo "Done";
// One argument
echo "\n-- Testing get_declared_traits() function with one argument --\n";
-$extra_arg = 10;;
+$extra_arg = 10;
var_dump( get_declared_traits($extra_arg) );
echo "Done";
var_dump($value);
echo "ptrparam:\n";
var_dump($ptrparam);
- echo "\$option === $option === " . $this->expected_option . ":\n";;
+ echo "\$option === $option === " . $this->expected_option . ":\n";
var_dump($option === $this->expected_option);
- echo "\$value === $value === " . $this->expected_value. ":\n";;
+ echo "\$value === $value === " . $this->expected_value. ":\n";
var_dump($value === $this->expected_value);
return $this->return_value;
}
}
$cnt = $size - ($str_len + $cnt);
fclose($fp);
-$fin = fopen($path1, "r") or die("Can not open $path1\n");;
-$fout = fopen($path2, "w") or die("Can not open $path2\n");;
+$fin = fopen($path1, "r") or die("Can not open $path1\n");
+$fout = fopen($path2, "w") or die("Can not open $path2\n");
stream_filter_append($fout, "string.rot13");
my_stream_copy_to_stream($fin, $fout);
fclose($fout);
// One argument
echo "\n-- Testing closelog() function with one argument --\n";
-$extra_arg = 10;;
+$extra_arg = 10;
var_dump( closelog($extra_arg) );
?>
$arc_name = dirname(__FILE__)."/bug38944.zip";
$foo = new ZipArchive;
-$foo->open($arc_name, ZIPARCHIVE::CREATE);;
+$foo->open($arc_name, ZIPARCHIVE::CREATE);
var_dump($foo->status);
var_dump($foo->statusSys);
$dest = dirname(__FILE__);
$arc_name = $dest . "/bug40228私はガラスを食べられます.zip";
$zip = new ZipArchive;
-$zip->open($arc_name, ZIPARCHIVE::CREATE);;
+$zip->open($arc_name, ZIPARCHIVE::CREATE);
$zip->extractTo($dest);
if (is_dir($dest . '/test/empty')) {
echo "Ok\n";
$dest = dirname(__FILE__);
$arc_name = $dest . "/bug40228.zip";
$zip = new ZipArchive;
-$zip->open($arc_name, ZIPARCHIVE::CREATE);;
+$zip->open($arc_name, ZIPARCHIVE::CREATE);
$zip->extractTo($dest);
if (is_dir($dest . '/test/empty')) {
echo "Ok\n";
var_dump(gztell($h));
foreach ($sizes as $size) {
- echo "bytes written=".gzwrite($h, str_repeat('1', $size))."\n";;
+ echo "bytes written=".gzwrite($h, str_repeat('1', $size))."\n";
echo "tell=".gztell($h)."\n";
}
tell=142
bytes written=1000
tell=1142
-===DONE===
\ No newline at end of file
+===DONE===
<?php
$uncompressed = "Hello world.";
-$random_junk = str_repeat("qebsouesl", 128);;
+$random_junk = str_repeat("qebsouesl", 128);
$compressed = zlib_encode($uncompressed, ZLIB_ENCODING_DEFLATE);
$compressed_len = strlen($compressed);
<?php
$uncompressed = "Hello world.";
-$random_junk = str_repeat("qebsouesl", 128);;
+$random_junk = str_repeat("qebsouesl", 128);
$compressed = zlib_encode($uncompressed, ZLIB_ENCODING_DEFLATE);
$compressed_len = strlen($compressed);
/* fall through */
case PHP_STREAM_PERSISTENT_FAILURE:
- efree(persistent_id);;
+ efree(persistent_id);
return ret;
}
}
static void fpm_conf_ini_parser_include(char *inc, void *arg) /* {{{ */
{
char *filename;
- int *error = (int *)arg;;
+ int *error = (int *)arg;
#ifdef HAVE_GLOB
glob_t g;
#endif
switch(callback_type) {
case ZEND_INI_PARSER_ENTRY:
fpm_conf_ini_parser_entry(arg1, arg2, error);
- break;;
+ break;
case ZEND_INI_PARSER_SECTION:
fpm_conf_ini_parser_section(arg1, error);
- break;;
+ break;
case ZEND_INI_PARSER_POP_ENTRY:
fpm_conf_ini_parser_array(arg1, arg3, arg2, error);
- break;;
+ break;
default:
zlog(ZLOG_ERROR, "[%s:%d] Unknown INI syntax", ini_filename, ini_lineno);
*error = 1;
- break;;
+ break;
}
}
/* }}} */
// One argument
echo "\n-- Testing ob_clean() function with one argument --\n";
-$extra_arg = 10;;
+$extra_arg = 10;
var_dump( ob_clean($extra_arg) );
echo "Done";
// One argument
echo "\n-- Testing ob_end_flush() function with one argument --\n";
-$extra_arg = 10;;
+$extra_arg = 10;
var_dump( ob_end_flush($extra_arg) );
echo "Done";
// One argument
echo "\n-- Testing ob_flush() function with one argument --\n";
-$extra_arg = 10;;
+$extra_arg = 10;
var_dump( ob_flush($extra_arg) );
echo "Done";
// One argument
echo "\n-- Testing ob_get_level() function with one argument --\n";
-$extra_arg = 10;;
+$extra_arg = 10;
var_dump( ob_get_level($extra_arg) );
echo "Done";