PageRenderTime 575ms queryTime 45ms sortTime 64ms getByIdsTime 299ms findMatchingLines 78ms

100+ results results for 'php sizeof repo:petergibbons/OpenCounterWP' (575 ms)

Not the results you expected?
sysvmsg.c https://gitlab.com/envieidoc/advancedtomato2 | C | 477 lines
                    
2  +----------------------------------------------------------------------+
                    
3  | PHP Version 5                                                        |
                    
4  +----------------------------------------------------------------------+
                    
4  +----------------------------------------------------------------------+
                    
5  | Copyright (c) 1997-2014 The PHP Group                                |
                    
6  +----------------------------------------------------------------------+
                    
342
                    
343	messagebuffer = (struct php_msgbuf *) safe_emalloc(maxsize, 1, sizeof(struct php_msgbuf));
                    
344
                    
417		 * allocate the extra byte. */
                    
418		messagebuffer = safe_emalloc(msg_var.len, 1, sizeof(struct php_msgbuf));
                    
419		memcpy(messagebuffer->mtext, msg_var.c, msg_var.len + 1);
                    
443
                    
444		messagebuffer = safe_emalloc(message_len, 1, sizeof(struct php_msgbuf));
                    
445		memcpy(messagebuffer->mtext, p, message_len + 1);
                    
                
sysvmsg.c https://bitbucket.org/luobailiang/php-src.git | C | 477 lines
                    
2  +----------------------------------------------------------------------+
                    
3  | PHP Version 5                                                        |
                    
4  +----------------------------------------------------------------------+
                    
4  +----------------------------------------------------------------------+
                    
5  | Copyright (c) 1997-2012 The PHP Group                                |
                    
6  +----------------------------------------------------------------------+
                    
342
                    
343	messagebuffer = (struct php_msgbuf *) safe_emalloc(maxsize, 1, sizeof(struct php_msgbuf));
                    
344
                    
417		 * allocate the extra byte. */
                    
418		messagebuffer = safe_emalloc(msg_var.len, 1, sizeof(struct php_msgbuf));
                    
419		memcpy(messagebuffer->mtext, msg_var.c, msg_var.len + 1);
                    
443
                    
444		messagebuffer = safe_emalloc(message_len, 1, sizeof(struct php_msgbuf));
                    
445		memcpy(messagebuffer->mtext, p, message_len + 1);
                    
                
metadata.c https://github.com/theuni/xbmc.git | C | 524 lines
                    
54  {
                    
55    list = (id3_ucs4_list_t*)malloc(sizeof(*list));
                    
56    if (list)
                    
56    if (list)
                    
57      list->strings = (const id3_ucs4_t**)malloc(nstrings * sizeof(*list->strings));
                    
58  }
                    
187    { // based on mediamonkey's values, simplified down a bit
                    
188      // http://www.mediamonkey.com/forum/viewtopic.php?f=7&t=40532
                    
189      value = id3_field_getint(field);
                    
                
categories.php https://github.com/jongleur/oscommerce.git | PHP | 336 lines
                    
1<?php
                    
2/*
                    
31
                    
32      $data['childs_count'] = sizeof($osC_CategoryTree->getChildren($Qcategories->valueInt('categories_id'), $dummy = array()));
                    
33      $data['products_count'] = $osC_CategoryTree->getNumberOfProducts($Qcategories->valueInt('categories_id'));
                    
                
Dispatcher.cpp https://github.com/simplecoin/simplecoin.git | C++ | 419 lines
                    
2// Distributed under the MIT/X11 software license, see the accompanying
                    
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
                    
4
                    
29Dispatcher::Dispatcher() {
                    
30  static_assert(sizeof(CRITICAL_SECTION) == sizeof(Dispatcher::criticalSection), "CRITICAL_SECTION size doesn't fit sizeof(Dispatcher::criticalSection)");
                    
31  BOOL result = InitializeCriticalSectionAndSpinCount(reinterpret_cast<LPCRITICAL_SECTION>(criticalSection), 4000);
                    
                
sysvmsg.c https://gitlab.com/0072016/appengine-php | C | 477 lines
                    
2  +----------------------------------------------------------------------+
                    
3  | PHP Version 5                                                        |
                    
4  +----------------------------------------------------------------------+
                    
4  +----------------------------------------------------------------------+
                    
5  | Copyright (c) 1997-2013 The PHP Group                                |
                    
6  +----------------------------------------------------------------------+
                    
342
                    
343	messagebuffer = (struct php_msgbuf *) safe_emalloc(maxsize, 1, sizeof(struct php_msgbuf));
                    
344
                    
417		 * allocate the extra byte. */
                    
418		messagebuffer = safe_emalloc(msg_var.len, 1, sizeof(struct php_msgbuf));
                    
419		memcpy(messagebuffer->mtext, msg_var.c, msg_var.len + 1);
                    
443
                    
444		messagebuffer = safe_emalloc(message_len, 1, sizeof(struct php_msgbuf));
                    
445		memcpy(messagebuffer->mtext, p, message_len + 1);
                    
                
PrintDialog.java https://github.com/neelance/swt4ruby.git | Java | 413 lines
                    
27 * @see <a href="http://www.eclipse.org/swt/snippets/#printing">Printing snippets</a>
                    
28 * @see <a href="http://www.eclipse.org/swt/examples.php">SWT Example: ControlExample, Dialog tab</a>
                    
29 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
                    
291	DEVMODE devmode = OS.IsUnicode ? (DEVMODE)new DEVMODEW () : new DEVMODEA ();
                    
292	OS.MoveMemory(devmode, ptr, OS.IsUnicode ? OS.DEVMODEW_sizeof() : OS.DEVMODEA_sizeof());
                    
293	devmode.dmFields |= OS.DM_ORIENTATION;
                    
302	}
                    
303	OS.MoveMemory(ptr, devmode, OS.IsUnicode ? OS.DEVMODEW_sizeof() : OS.DEVMODEA_sizeof());
                    
304	OS.GlobalUnlock(hMem);
                    
346		/* Ensure size is a multiple of 2 bytes on UNICODE platforms */
                    
347		int size = OS.GlobalSize(hMem) / TCHAR.sizeof * TCHAR.sizeof;
                    
348		ptr = OS.GlobalLock(hMem);
                    
400		devmode = OS.IsUnicode ? (DEVMODE)new DEVMODEW () : new DEVMODEA ();
                    
401		OS.MoveMemory(devmode, ptr, OS.IsUnicode ? OS.DEVMODEW_sizeof() : OS.DEVMODEA_sizeof());
                    
402		if ((devmode.dmFields & OS.DM_ORIENTATION) != 0) {
                    
                
acm_file.php https://github.com/naderman/phpbb-orchestra.git | PHP | 732 lines
                    
83				global $phpbb_root_path;
                    
84				include($phpbb_root_path . 'includes/functions.' . $phpEx);
                    
85			}
                    
94
                    
95			die('Fatal: Not able to open ' . $this->cache_dir . 'data_global.' . $phpEx);
                    
96			exit;
                    
326			global $phpEx;
                    
327			return file_exists($this->cache_dir . 'data' . $var_name . ".$phpEx");
                    
328		}
                    
699				global $phpbb_root_path;
                    
700				include($phpbb_root_path . 'includes/functions.' . $phpEx);
                    
701			}
                    
718			global $phpbb_root_path, $phpEx;
                    
719			include($phpbb_root_path . 'includes/functions.' . $phpEx);
                    
720		}
                    
                
md_exporter.php https://github.com/AJenbo/ubuntudanmark.dk.git | PHP | 565 lines
                    
5*
                    
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
                    
7* @license GNU General Public License, version 2 (GPL-2.0)
                    
13
                    
14namespace phpbb\event;
                    
15
                    
23
                    
24	/** @var string phpBB Root Path */
                    
25	protected $root_path;
                    
78	*/
                    
79	public function crawl_phpbb_directory_adm($md_file)
                    
80	{
                    
233		return (!$this->min_version || phpbb_version_compare($this->min_version, $version, '<='))
                    
234		&& (!$this->max_version || phpbb_version_compare($this->max_version, $version, '>='));
                    
235	}
                    
                
engine.php https://github.com/AJenbo/ubuntudanmark.dk.git | PHP | 555 lines
                    
5*
                    
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
                    
7* @license GNU General Public License, version 2 (GPL-2.0)
                    
16*/
                    
17if (!defined('IN_PHPBB'))
                    
18{
                    
22/**
                    
23* Code from pear.php.net, Text_Diff-1.1.0 package
                    
24* http://pear.php.net/package/Text_Diff/ (native engine)
                    
25*
                    
26* Modified by phpBB Limited to meet our coding standards
                    
27* and being able to integrate into phpBB
                    
147		// Find the LCS.
                    
148		$this->_compareseq(0, sizeof($this->xv), 0, sizeof($this->yv));
                    
149
                    
                
string-util.cpp https://github.com/tstarling/hiphop-php.git | C++ | 461 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
16
                    
17#include "hphp/runtime/base/string-util.h"
                    
18#include <algorithm>
                    
                
ucp_prefs.php https://github.com/naderman/phpbb-orchestra.git | PHP | 357 lines
                    
1<?php
                    
2/**
                    
5* @version $Id$
                    
6* @copyright (c) 2005 phpBB Group
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
13*/
                    
14if (!defined('IN_PHPBB'))
                    
15{
                    
29	{
                    
30		global $config, $db, $user, $auth, $template, $phpbb_root_path, $phpEx;
                    
31
                    
76
                    
77					if (!sizeof($error))
                    
78					{
                    
130				$template->assign_vars(array(
                    
131					'ERROR'				=> (sizeof($error)) ? implode('<br />', $error) : '',
                    
132
                    
                
Collection.php https://bitbucket.org/acidel/buykoala.git | PHP | 480 lines
                    
1<?php

                    
2/**

                    
9 * It is also available through the world-wide-web at this URL:

                    
10 * http://opensource.org/licenses/osl-3.0.php

                    
11 * If you did not receive a copy of the license and are unable to

                    
23 * @copyright   Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)

                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)

                    
25 */

                    
145        $tagsStores = array();

                    
146        if (sizeof($tagIds) > 0) {

                    
147            $select = $this->getConnection()->select()

                    
314

                    
315        if (sizeof($prodIds) > 0) {

                    
316            $this->getSelect()->where('e.entity_id IN(?)', $prodIds);

                    
                
fdt_ro.c https://github.com/rjwysocki/linux-pm.git | C | 579 lines
                    
330{
                    
331	const fdt32_t *php;
                    
332	int len;
                    
336	php = fdt_getprop(fdt, nodeoffset, "phandle", &len);
                    
337	if (!php || (len != sizeof(*php))) {
                    
338		php = fdt_getprop(fdt, nodeoffset, "linux,phandle", &len);
                    
338		php = fdt_getprop(fdt, nodeoffset, "linux,phandle", &len);
                    
339		if (!php || (len != sizeof(*php)))
                    
340			return 0;
                    
342
                    
343	return fdt32_to_cpu(*php);
                    
344}
                    
                
Compass.php https://github.com/vivid-planet/library.git | PHP | 511 lines
                    
1<?php
                    
2require_once dirname(__FILE__) . '/../ExtensionInterface.php';
                    
92
                    
93        while (sizeof($directories)) {
                    
94            $dir = array_pop($directories);
                    
                
OpenruthClient.class.php https://github.com/dingproject/openruth.git | PHP | 483 lines
                    
1<?php
                    
2// $Id$
                    
76      $sensitive = func_get_args();
                    
77      // For some reason PHP doesn't have array_flatten, and this is the
                    
78      // shortest alternative.
                    
195        $h['reservable_count'] = $available;
                    
196        if (sizeof($h['issues'])) {
                    
197          $h['holdings'] = array_unique($h['holdings']);
                    
                
lib.php https://github.com/tcubansk/moodle.git | PHP | 391 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
17defined('MOODLE_INTERNAL') OR die('not allowed');
                    
18require_once($CFG->dirroot.'/mod/feedback/item/feedback_item_class.php');
                    
19
                    
31        global $DB, $CFG;
                    
32        require_once('info_form.php');
                    
33
                    
59        //build the form
                    
60        $this->item_form = new feedback_info_form('edit_item.php',
                    
61                                                  array('item'=>$item,
                    
154            echo '</th></tr>';
                    
155            $sizeofdata = count($data);
                    
156            for ($i = 0; $i < $sizeofdata; $i++) {
                    
174            $row_offset++;
                    
175            $sizeofdata = count($data);
                    
176            for ($i = 1; $i < $sizeofdata; $i++) {
                    
                
categories.php https://github.com/Noxwizard/customisation-db.git | PHP | 357 lines
                    
65		$old_category_name_clean = $category_object->category_name_clean;
                    
66		$old_category_name_lang = (isset(phpbb::$user->lang[$old_category_name])) ? phpbb::$user->lang[$old_category_name] : $old_category_name;
                    
67
                    
183			'CATEGORY_VISIBLE' 				=> $category_object->category_visible,
                    
184			'SECTION_NAME'					=> ($action == 'add') ? phpbb::$user->lang['CREATE_CATEGORY'] : phpbb::$user->lang['EDIT_CATEGORY'] . ' - ' . ((isset(phpbb::$user->lang[$old_category_name])) ? phpbb::$user->lang[$old_category_name] : $old_category_name),
                    
185
                    
272			'CATEGORY_NAME'					=> (isset(phpbb::$user->lang[$category_object->category_name])) ? phpbb::$user->lang[$category_object->category_name] : $category_object->category_name,
                    
273			'SECTION_NAME'					=> phpbb::$user->lang['DELETE_CATEGORY'] . ' - ' . ((isset(phpbb::$user->lang[$category_object->category_name])) ? phpbb::$user->lang[$category_object->category_name] : $category_object->category_name),
                    
274			'S_HAS_SUBCATS'					=> ($category_object->right_id - $category_object->left_id > 1) ? true : false,
                    
327			'ICON_MOVE_UP'			=> '<img src="' . titania::$images_path . 'icon_up.gif" alt="' . phpbb::$user->lang['MOVE_UP'] . '" title="' . phpbb::$user->lang['MOVE_UP'] . '" />',
                    
328			'ICON_MOVE_UP_DISABLED'		=> '<img src="' . titania::$images_path . 'icon_up_disabled.gif" alt="' . phpbb::$user->lang['MOVE_UP'] . '" title="' . phpbb::$user->lang['MOVE_UP'] . '" />',
                    
329			'ICON_MOVE_DOWN'		=> '<img src="' . titania::$images_path . 'icon_down.gif" alt="' . phpbb::$user->lang['MOVE_DOWN'] . '" title="' . phpbb::$user->lang['MOVE_DOWN'] . '" />',
                    
331			'ICON_EDIT'			=> '<img src="' . titania::$images_path . 'icon_edit.gif" alt="' . phpbb::$user->lang['EDIT'] . '" title="' . phpbb::$user->lang['EDIT'] . '" />',
                    
332			'ICON_EDIT_DISABLED'				=> '<img src="' . titania::$images_path . 'icon_edit_disabled.gif" alt="' . phpbb::$user->lang['EDIT'] . '" title="' . phpbb::$user->lang['EDIT'] . '" />',
                    
333			'ICON_DELETE'			=> '<img src="' . titania::$images_path . 'icon_delete.gif" alt="' . phpbb::$user->lang['DELETE'] . '" title="' . phpbb::$user->lang['DELETE'] . '" />',
                    
                
cash_receipt.php https://github.com/md-tech/openemr.git | PHP | 411 lines
                    
12require_once("$srcdir/report.inc");
                    
13require_once(dirname(__file__) . "/../../../library/classes/Document.class.php");
                    
14require_once(dirname(__file__) . "/../../../library/classes/Note.class.php");
                    
15require_once("$srcdir/options.inc.php");
                    
16require_once("$srcdir/formatting.inc.php");
                    
17
                    
70<table>
                    
71<tr><td><?php xl('Generated on','e'); ?>:</td><td> <?php print oeFormatShortDate(date("Y-m-d"));?></td></tr>
                    
72<?php
                    
80?>
                    
81<tr><td><?php xl('Date Of Service','e'); ?>: </td><td> <?php print oeFormatShortDate($raw_encounter_date);?></td></tr>
                    
82</table>
                    
387?>
                    
388<tr><td><?php xl('code type','e'); ?></td><td><?php xl('code','e'); ?></td><td><?php xl('description','e'); ?></td><td><?php xl('fee','e'); ?></td></tr>
                    
389<?php
                    
                
Collection.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 490 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
145        $tagsStores = array();
                    
146        if (sizeof($tagIds) > 0) {
                    
147            $select = $this->getConnection()->select()
                    
314
                    
315        if (sizeof($prodIds) > 0) {
                    
316            $this->getSelect()->where('e.entity_id IN(?)', $prodIds);
                    
                
odbc_driver.c https://bitbucket.org/luobailiang/php-src.git | C | 493 lines
                    
2  +----------------------------------------------------------------------+
                    
3  | PHP Version 5                                                        |
                    
4  +----------------------------------------------------------------------+
                    
4  +----------------------------------------------------------------------+
                    
5  | Copyright (c) 1997-2012 The PHP Group                                |
                    
6  +----------------------------------------------------------------------+
                    
6  +----------------------------------------------------------------------+
                    
7  | This source file is subject to version 3.0 of the PHP license,       |
                    
8  | that is bundled with this package in the file LICENSE, and is        |
                    
9  | available through the world-wide-web at the following url:           |
                    
10  | http://www.php.net/license/3_0.txt.                                  |
                    
11  | If you did not receive a copy of the PHP license and are unable to   |
                    
12  | obtain it through the world-wide-web, please send a note to          |
                    
13  | license@php.net so we can mail you a copy immediately.               |
                    
14  +----------------------------------------------------------------------+
                    
                
other.lang.php https://bitbucket.org/speedealing/speedealing.git | PHP | 224 lines
                    
1<?php
                    
2/* Copyright (C) 2012	Regis Houssin	<regis.houssin@capnetworks.com>
                    
59		'NbOfAttachedFiles' => 'Número Arquivos/Documentos Anexos',
                    
60		'TotalSizeOfAttachedFiles' => 'Tamanho Total dos Arquivos/Documentos Anexos',
                    
61		'MaxSize' => 'Tamanho Máximo',
                    
148		'EnableGDLibraryDesc' => 'deve ativar o instalar a Bibliotéca GD na sua PHP para poder ativar esta Opção',
                    
149		'EnablePhpAVModuleDesc' => 'deve instalar um módulo PHP compatible com a sua antivírus. (Clamav : php4-clamavlib ó php5-clamavlib)',
                    
150		'ProfIdShortDesc' => '<b>Prof Id %s</b> é uma informação dePendente do país do Fornecedor.<br>Por Exemplo, para o país  <b>%s</b>, é o código <b>%s</b>.',
                    
                
layout.php https://bitbucket.org/rusbal/club4causes.git | PHP | 432 lines
                    
1<?php
                    
2/*------------------------------------------------------------------------------
                    
100		$layouts =  $this->getLayouts(1);
                    
101		if (sizeof($layouts) == 0) {
                    
102			//No page specific layout, load default layout
                    
103			$layouts =  $this->getDefaultLayout();
                    
104			if (sizeof($layouts) == 0) {
                    
105				// ????? How to terminate ????
                    
                
install2.php https://gitlab.com/mucill/sman7 | PHP | 411 lines
                    
249			{
                    
250        $error_mg[] = "<li>Could not create file ".$config_file_name."! Please check if the sysconfig.local.inc-sample.php file is exists</li>";	    
                    
251			}
                    
265                  $file_sql_path = ($i == $indexdbupgrade_max) ? './../upgrade/'.$sql_upgrade[$v] : './../upgrade/old_sql/'.$sql_upgrade[$v];
                    
266                  $sql_php_path = 'sql_php_upgrade/'.$sql_upgrade[$v].'.php';
                    
267                  if ($v >= 13 || $v == 11 || $v == 9) {
                    
267                  if ($v >= 13 || $v == 11 || $v == 9) {
                    
268                    if (false == ($db_error = apphp_db_install_core($link, $database_name, $sql_php_path))) {
                    
269                    $error_mg[] = "<li>Could not read file ".$sql_php_path."! Please check if the file exists</li>";
                    
401		<div class="toright">
                    
402		    <?php if($application_start_file != ""){ ?><a href="<?php echo $application_start_file;?>" class="button">OK, start the SLiMS</a><?php } ?>
                    
403		</div>
                    
406	</div>
                    
407	<?php include_once("footer.php"); ?>
                    
408    </div>
                    
                
FinderTest.class.php https://github.com/treuter/xp-framework.git | PHP | 465 lines
                    
1<?php
                    
2/* This class is part of the XP framework
                    
93      $methods= $this->fixture->entityMethods();
                    
94      $this->assertEquals(1, sizeof($methods));
                    
95      $this->assertClass($methods[0], 'rdbms.finder.FinderMethod');
                    
114      $methods= $this->fixture->collectionMethods();
                    
115      $this->assertEquals(4, sizeof($methods)); // three declared plu all()
                    
116      foreach ($methods as $method) {
                    
131      $methods= $this->fixture->allMethods(); // four declared plu all()
                    
132      $this->assertEquals(5, sizeof($methods));
                    
133    }
                    
325      $collection= $this->fixture->findAll($this->fixture->newestJobs());
                    
326      $this->assertEquals(2, sizeof($collection));
                    
327    }
                    
349      $collection= $this->fixture->findAll()->newestJobs();
                    
350      $this->assertEquals(2, sizeof($collection));
                    
351    }
                    
                
php-crypt_r.cpp https://gitlab.com/iranjith4/hhvm | C++ | 381 lines
                    
3   +----------------------------------------------------------------------+
                    
4   | PHP Version 7                                                        |
                    
5   +----------------------------------------------------------------------+
                    
5   +----------------------------------------------------------------------+
                    
6   | Copyright (c) 1997-2015 The PHP Group                                |
                    
7   +----------------------------------------------------------------------+
                    
7   +----------------------------------------------------------------------+
                    
8   | This source file is subject to version 3.01 of the PHP license,      |
                    
9   | that is bundled with this package in the file LICENSE, and is        |
                    
10   | available through the world-wide-web at the following url:           |
                    
11   | http://www.php.net/license/3_01.txt                                  |
                    
12   | If you did not receive a copy of the PHP license and are unable to   |
                    
13   | obtain it through the world-wide-web, please send a note to          |
                    
14   | license@php.net so we can mail you a copy immediately.               |
                    
15   +----------------------------------------------------------------------+
                    
                
ext_icu_collator.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 369 lines
                    
1#include "hphp/runtime/ext/icu/ext_icu_collator.h"
                    
2#include "hphp/runtime/base/builtin-functions.h"
                    
2#include "hphp/runtime/base/builtin-functions.h"
                    
3#include "hphp/runtime/base/zend-collator.h"
                    
4#include "hphp/runtime/base/zend-qsort.h"
                    
5
                    
6namespace HPHP { namespace Intl {
                    
7/////////////////////////////////////////////////////////////////////////////
                    
213  auto   sortIndex = (collator_sort_key_index_t*)smart_malloc(
                    
214                  sortIndexLength * sizeof(collator_sort_key_index_t));
                    
215  if (!sortIndex) {
                    
263      sortIndex = (collator_sort_key_index_t*)smart_realloc(sortIndex,
                    
264                      sortIndexLength * sizeof(collator_sort_key_index_t));
                    
265      if (!sortIndex) {
                    
283  zend_qsort(sortIndex, sortIndexPos,
                    
284             sizeof(collator_sort_key_index_t),
                    
285             collator_cmp_sort_keys, nullptr);
                    
                
klonecpp.php https://github.com/xBBCoder/xBBCode.git | PHP | 310 lines
                    
1<?php
                    
2/*************************************************************************************
                    
2/*************************************************************************************
                    
3 * klonecpp.php
                    
4 * --------
                    
78            'sinh', 'cosh', 'tanh', 'setjmp', 'longjmp',
                    
79            'va_start', 'va_arg', 'va_end', 'offsetof', 'sizeof', 'fopen', 'freopen',
                    
80            'fflush', 'fclose', 'remove', 'rename', 'tmpfile', 'tmpname', 'setvbuf',
                    
                
http_request_handler.cpp https://github.com/leonhong/hiphop-php.git | C++ | 398 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
36
                    
37namespace HPHP {
                    
38///////////////////////////////////////////////////////////////////////////////
                    
                
avs.c https://github.com/trevor/ImageMagick.git | C | 399 lines
                    
25%                                                                             %
                    
26%    http://www.imagemagick.org/script/license.php                            %
                    
27%                                                                             %
                    
159    pixels=(unsigned char *) AcquireQuantumMemory(image->columns,
                    
160      4*sizeof(*pixels));
                    
161    if (pixels == (unsigned char *) NULL) 
                    
359    pixels=(unsigned char *) AcquireQuantumMemory((size_t) image->columns,
                    
360      4*sizeof(*pixels));
                    
361    if (pixels == (unsigned char *) NULL)
                    
                
bcmevent.h https://github.com/drowningchild/Defuse-Kernel.git | C Header | 314 lines
                    
8 * under the terms of the GNU General Public License version 2 (the "GPL"),
                    
9 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
                    
10 * following added to such license:
                    
94
                    
95#define BCM_MSG_LEN	(sizeof(bcm_event_t) - sizeof(bcmeth_hdr_t) - sizeof(struct ether_header))
                    
96
                    
                
group.php https://gitlab.com/alexprowars/bitrix | PHP | 484 lines
                    
1<?php
                    
2/**
                    
247
                    
248		if (!sizeof($arSqlSelect))
                    
249			$arSqlSelect = 'LG.ID AS ID';
                    
273		$strFrom .= $obUserFieldsSql->GetJoin("LG.ID") . " "
                    
274			. (sizeof($arSqlSearch) ? " WHERE " . implode(" AND ", $arSqlSearch) : "") . " ";
                    
275
                    
                
hpioctl.c https://bitbucket.org/codefirex/kernel_samsung_jf.git | C | 482 lines
                    
102{
                    
103	struct hpi_ioctl_linux __user *phpi_ioctl_data;
                    
104	void __user *puhm;
                    
114
                    
115	hm = kmalloc(sizeof(*hm), GFP_KERNEL);
                    
116	hr = kmalloc(sizeof(*hr), GFP_KERNEL);
                    
121
                    
122	phpi_ioctl_data = (struct hpi_ioctl_linux __user *)arg;
                    
123
                    
124	/* Read the message and response pointers from user space.  */
                    
125	if (get_user(puhm, &phpi_ioctl_data->phm)
                    
126		|| get_user(puhr, &phpi_ioctl_data->phr)) {
                    
135	}
                    
136	if (hm->h.size > sizeof(*hm))
                    
137		hm->h.size = sizeof(*hm);
                    
                
type-inl.h https://gitlab.com/alvinahmadov2/hhvm | C Header | 509 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
27
                    
28namespace HPHP { namespace jit {
                    
29///////////////////////////////////////////////////////////////////////////////
                    
209
                    
210  static_assert(sizeof(T) <= sizeof(ret),
                    
211                "Constant data was larger than supported");
                    
                
IndexController.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 390 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
146                }
                    
147                $totalCount = sizeof($items);
                    
148            }
                    
                
Standard.php https://github.com/joebushi/magento-mirror.git | PHP | 431 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
241        // set parameters from pathinfo
                    
242        for ($i=3, $l=sizeof($p); $i<$l; $i+=2) {
                    
243            $request->setParam($p[$i], isset($p[$i+1]) ? $p[$i+1] : '');
                    
358        }
                    
359        $file .= DS.uc_words($controller, DS).'Controller.php';
                    
360        return $file;
                    
                
ups.php https://github.com/osCommerce/oscommerce_cvs.git | PHP | 306 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3  $Id: ups.php,v 1.57 2005/02/24 00:38:03 hpdl Exp $
                    
4
                    
99
                    
100      if ( (is_array($upsQuote)) && (sizeof($upsQuote) > 0) ) {
                    
101        $this->quotes = array('id' => $this->code,
                    
105        $methods = array();
                    
106        $qsize = sizeof($upsQuote);
                    
107        for ($i=0; $i<$qsize; $i++) {
                    
281
                    
282      $n = sizeof($body_array);
                    
283      for ($i=0; $i<$n; $i++) {
                    
                
dhd_debug.h https://gitlab.com/deadnem/Singularity | C Header | 312 lines
                    
8 * under the terms of the GNU General Public License version 2 (the "GPL"),
                    
9 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
                    
10 * following added to such license:
                    
67
                    
68#define DBG_RING_STATUS_SIZE (sizeof(dhd_dbg_ring_status_t))
                    
69
                    
239
                    
240#define DBG_RING_ENTRY_SIZE (sizeof(dhd_dbg_ring_entry_t))
                    
241#define ENTRY_LENGTH(hdr) (hdr->len + DBG_RING_ENTRY_SIZE)
                    
245		uint16 state = connect_state;			\
                    
246		dhd_os_push_push_ring_data(dhd, DHD_EVENT_RING_ID, &state, sizeof(state)); \
                    
247	} while (0); 								\
                    
                
tax_watch_export_pdf(3).php https://gitlab.com/vince.omega/PDF-PHP-Scripts | PHP | 534 lines
                    
1<?php
                    
2ini_set('max_execution_time', 0); //300 seconds = 5 minutes
                    
2ini_set('max_execution_time', 0); //300 seconds = 5 minutes
                    
3require_once('fpdf/fpdf/fpdf.php');
                    
4require_once('../../header.inc.php');
                    
7@author: Larry Stanfield
                    
8PHP PDF generation script written by Larry Stanfield
                    
9Contact @ vince.omega@gmail.com
                    
9Contact @ vince.omega@gmail.com
                    
10Powered by the open source pdf php class fpdf
                    
11www.fpdf.org
                    
98				$conArray = str_split($content, 23);
                    
99				$k = sizeof($conArray);
                    
100					foreach($conArray as $key){
                    
186
                    
187$filename = 'c:/php_temp/download_' . preg_replace('/[^a-z0-9]/i', '_', $DB->cleanString($_GET['custcodes'])) . '.pdf';
                    
188
                    
                
posts.php https://gitlab.com/Ltaimao/wecenter | PHP | 514 lines
                    
1<?php
                    
2/*
                    
113
                    
114			if (sizeof($posts_index) > 1)
                    
115			{
                    
                
sbhnddma.h https://github.com/Entropy512/linux_kernel_sgh-i997r.git | C Header | 343 lines
                    
9 * under the terms of the GNU General Public License version 2 (the "GPL"),
                    
10 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
                    
11 * following added to such license:
                    
75
                    
76#define	D32MAXDD	(D32MAXRINGSZ / sizeof (dma32dd_t))
                    
77
                    
214
                    
215#define	D64MAXDD	(D64MAXRINGSZ / sizeof (dma64dd_t))
                    
216
                    
                
BootManager.c https://gitlab.com/envieidoc/Clover | C | 412 lines
                    
7which accompanies this distribution.  The full text of the license may be found at
                    
8http://opensource.org/licenses/bsd-license.php
                    
9
                    
37      {
                    
38        (UINT8) (sizeof (VENDOR_DEVICE_PATH)),
                    
39        (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8)
                    
262  //
                    
263  StartLabel = (EFI_IFR_GUID_LABEL *) HiiCreateGuidOpCode (StartOpCodeHandle, &gEfiIfrTianoGuid, NULL, sizeof (EFI_IFR_GUID_LABEL));
                    
264  StartLabel->ExtendOpCode = EFI_IFR_EXTEND_OP_LABEL;
                    
269  //
                    
270  EndLabel = (EFI_IFR_GUID_LABEL *) HiiCreateGuidOpCode (EndOpCodeHandle, &gEfiIfrTianoGuid, NULL, sizeof (EFI_IFR_GUID_LABEL));
                    
271  EndLabel->ExtendOpCode = EFI_IFR_EXTEND_OP_LABEL;
                    
313                     mDeviceTypeStr[
                    
314                       MIN (DeviceType & 0xF, sizeof (mDeviceTypeStr) / sizeof (mDeviceTypeStr[0]) - 1)
                    
315                       ],
                    
                
index.markdown https://gitlab.com/orvi2014/phpjs | Markdown | 382 lines
                    
2layout: page
                    
3title: "PHP functions for JavaScript"
                    
4comments: false
                    
14<!-- Generated by Rakefile:build -->
                    
15If you are missing functions, there is a chance you may find them in our [experimental](https://github.com/kvz/phpjs/tree/master/experimental) 
                    
16and [workbench](https://github.com/kvz/phpjs/tree/master/workbench) folders. Warning: we keep 
                    
89 - [shuffle](/functions/shuffle)
                    
90 - [sizeof](/functions/sizeof)
                    
91 - [sort](/functions/sort)
                    
                
DiffEngine.php https://gitlab.com/mohamed_hussein/prodt | PHP | 456 lines
                    
1<?php
                    
2
                    
35
                    
36    $n_from = sizeof($from_lines);
                    
37    $n_to = sizeof($to_lines);
                    
86    // Find the LCS.
                    
87    $this->_compareseq(0, sizeof($this->xv), 0, sizeof($this->yv));
                    
88
                    
345
                    
346    $this::USE_ASSERTS && assert(sizeof($lines) == sizeof($changed));
                    
347    $len = sizeof($lines);
                    
347    $len = sizeof($lines);
                    
348    $other_len = sizeof($other_changed);
                    
349
                    
                
Collection.php https://bitbucket.org/acidel/buykoala.git | PHP | 423 lines
                    
1<?php

                    
2/**

                    
9 * It is also available through the world-wide-web at this URL:

                    
10 * http://opensource.org/licenses/osl-3.0.php

                    
11 * If you did not receive a copy of the license and are unable to

                    
23 * @copyright   Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)

                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)

                    
25 */

                    
232        $tagsStores = array();

                    
233        if (sizeof($tagIds) > 0) {

                    
234            $select = $this->getConnection()->select()

                    
                
class.authenticator.php https://github.com/dkobia/Garden.git | PHP | 312 lines
                    
1<?php if (!defined('APPLICATION')) exit();
                    
2/*
                    
14 * @author Tim Gunter
                    
15 * @license http://www.opensource.org/licenses/gpl-2.0.php GPL
                    
16 * @package Garden
                    
121      
                    
122      if (sizeof($this->_DataHooks)) {
                    
123         foreach ($this->_DataHooks as $DataTarget => $DataHook) {
                    
                
Graph.c git://pkgs.fedoraproject.org/nas | C | 570 lines
                    
49#include <X11/StringDefs.h>
                    
50#include "GraphP.h"
                    
51
                    
59{
                    
60    XtNgraphColor, XtCColor, XtRPixel, sizeof(Pixel), offset(graphColor),
                    
61    XtRString, XtDefaultForeground,
                    
62
                    
63    XtNmarkerColor, XtCColor, XtRPixel, sizeof(Pixel), offset(markerColor),
                    
64    XtRString, "red",
                    
65
                    
66    XtNpositionColor, XtCColor, XtRPixel, sizeof(Pixel), offset(positionColor),
                    
67    XtRString, "blue",
                    
68
                    
69    XtNdata, XtCData, XtRPointer, sizeof(int *), offset(data), XtRImmediate,
                    
70    NULL,
                    
                
update_product.php https://bitbucket.org/archee/hejnarphotostore.git | PHP | 221 lines
                    
1<?php

                    
2/**

                    
6 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

                    
7 * @version $Id: update_product.php 15636 2010-03-07 07:00:40Z drbyte $

                    
8 */

                    
130    $languages = zen_get_languages();

                    
131    for ($i=0, $n=sizeof($languages); $i<$n; $i++) {

                    
132      $language_id = $languages[$i]['id'];

                    
151    $languages = zen_get_languages();

                    
152    for ($i=0, $n=sizeof($languages); $i<$n; $i++) {

                    
153      $language_id = $languages[$i]['id'];

                    
                
collect_info_metatags.php https://bitbucket.org/archee/hejnarphotostore.git | PHP | 179 lines
                    
1<?php

                    
2/**

                    
6 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

                    
7 * @version $Id: collect_info_metatags.php 3009 2006-02-11 15:41:10Z wilt $

                    
8 */

                    
90    }

                    
91// metatags_title_tagline_status shows TITLE and TAGLINE in metatags_header.php

                    
92    if (empty($pInfo->metatags_keywords) and empty($pInfo->metatags_description)) $pInfo->metatags_title_tagline_status = zen_get_show_product_switch($_GET['pID'], 'metatags_title_tagline_status');

                    
98?>

                    
99    <?php

                    
100//  echo $type_admin_handler;

                    
105          <tr>

                    
106            <td class="pageHeading"><?php echo sprintf(TEXT_NEW_PRODUCT, zen_output_generated_category_path($current_category_id)); ?></td>

                    
107            <td class="pageHeading" align="right"><?php echo zen_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

                    
111      <tr>

                    
112        <td><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>

                    
113      </tr>

                    
                
other.lang.php https://bitbucket.org/speedealing/speedealing.git | PHP | 224 lines
                    
1<?php
                    
2/* Copyright (C) 2012	Regis Houssin	<regis.houssin@capnetworks.com>
                    
59		'NbOfAttachedFiles' => 'Número Ficheiros/Documentos anexos',
                    
60		'TotalSizeOfAttachedFiles' => 'Tamanho Total dos Ficheiros/Documentos anexos',
                    
61		'MaxSize' => 'Tamanho Máximo',
                    
148		'EnableGDLibraryDesc' => 'Deve activar ou instalar a Libraria GD no seu PHP para poder activar esta Opção',
                    
149		'EnablePhpAVModuleDesc' => 'Deve instalar um módulo PHP compativel com o seu antivirus. (Clamav : php4-clamavlib ó php5-clamavlib)',
                    
150		'ProfIdShortDesc' => '<b>Prof Id %s</b> é uma informação dePendente do país do Terceiro.<br>Por Exemplo, para o país  <b>%s</b>, é o código <b>%s</b>.',
                    
                
type_annotation.cpp https://gitlab.com/0072016/0072016-PHP.LLC | C++ | 467 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
16
                    
17#include "hphp/compiler/type_annotation.h"
                    
18
                    
                
odbc_driver.c https://gitlab.com/0072016/appengine-php | C | 493 lines
                    
2  +----------------------------------------------------------------------+
                    
3  | PHP Version 5                                                        |
                    
4  +----------------------------------------------------------------------+
                    
4  +----------------------------------------------------------------------+
                    
5  | Copyright (c) 1997-2013 The PHP Group                                |
                    
6  +----------------------------------------------------------------------+
                    
6  +----------------------------------------------------------------------+
                    
7  | This source file is subject to version 3.0 of the PHP license,       |
                    
8  | that is bundled with this package in the file LICENSE, and is        |
                    
9  | available through the world-wide-web at the following url:           |
                    
10  | http://www.php.net/license/3_0.txt.                                  |
                    
11  | If you did not receive a copy of the PHP license and are unable to   |
                    
12  | obtain it through the world-wide-web, please send a note to          |
                    
13  | license@php.net so we can mail you a copy immediately.               |
                    
14  +----------------------------------------------------------------------+
                    
                
EPuckSim.cc https://github.com/jennyhasahat/EPuckAPI.git | C++ | 599 lines
                    
105
                    
106	simProxy->GetProperty(name, flag, &data, sizeof(data));
                    
107//printf("read value %f\n", (double)data);
                    
249	   forward and turn speeds from 
                    
250	   http://www.physicsforums.com/showthread.php?t=263149 */
                    
251	
                    
317
                    
318	simProxy->SetProperty(name, colour, &red, sizeof(red));
                    
319	allLEDsOn = true;
                    
328
                    
329	simProxy->SetProperty(name, colour, &darkGreen, sizeof(darkGreen));
                    
330	allLEDsOn = false;
                    
470			message 		= new AudioHandler::audio_message_t[numberOfTones];
                    
471			success = handler->getTones(name, message, sizeof(AudioHandler::audio_message_t)*numberOfTones);
                    
472			if(success == -1) delete[] message;
                    
                
cash_receipt.php https://github.com/prabhupathak/openemr.git | PHP | 411 lines
                    
15require_once("$srcdir/options.inc.php");
                    
16require_once("$srcdir/formatting.inc.php");
                    
17
                    
70<table>
                    
71<tr><td><?php xl('Generated on','e'); ?>:</td><td> <?php print oeFormatShortDate(date("Y-m-d"));?></td></tr>
                    
72<?php
                    
80?>
                    
81<tr><td><?php xl('Date Of Service','e'); ?>: </td><td> <?php print oeFormatShortDate($raw_encounter_date);?></td></tr>
                    
82</table>
                    
83<br><br>
                    
84<?php
                    
85 //$provider = getProviderName($titleres['providerID']);
                    
387?>
                    
388<tr><td><?php xl('code type','e'); ?></td><td><?php xl('code','e'); ?></td><td><?php xl('description','e'); ?></td><td><?php xl('fee','e'); ?></td></tr>
                    
389<?php
                    
                
repo-auth-type.cpp https://gitlab.com/alvinahmadov2/hhvm | C++ | 387 lines
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
15*/
                    
16#include "hphp/runtime/base/repo-auth-type.h"
                    
17
                    
21
                    
22#include "hphp/runtime/base/array-data-defs.h"
                    
23#include "hphp/runtime/base/repo-auth-type-array.h"
                    
32
                    
33static_assert(sizeof(RepoAuthType) == sizeof(CompactTaggedPtr<void>), "");
                    
34
                    
                
filterlib.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 365 lines
                    
1<?php // $Id: filterlib.php,v 1.24.10.4 2009/02/18 11:02:11 stronk7 Exp $
                    
2      // Contains special functions that are particularly useful to filters
                    
100/// Time to cycle through each phrase to be linked
                    
101    $size = sizeof($link_array);
                    
102    for ($n=0; $n < $size; $n++) {
                    
                
Xmlrpcs.php https://github.com/bwghughes/houghandco.git | PHP | 522 lines
                    
1<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 4.3.2 or newer
                    
6 *
                    
17{	
                    
18	show_error('Your PHP installation does not support XML');
                    
19}
                    
199			
                    
200			for($i=0; $i < sizeof($parser_object->xh[$parser]['params']); $i++)
                    
201			{
                    
284			$sig = $this->methods[$methName]['signature'];
                    
285			for($i=0; $i<sizeof($sig); $i++)
                    
286			{
                    
288		
                    
289				if (sizeof($current_sig) == sizeof($m->params)+1)
                    
290				{
                    
                
define_pages_editor.php https://github.com/ZenMagick/zc-base.git | PHP | 270 lines
                    
125<!-- header //-->
                    
126<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
                    
127<!-- header_eof //-->
                    
228              <tr>
                    
229                <td class="smallText"><a href="<?php echo zen_href_link($_GET['filename'], 'lngdir=' . $_SESSION['language'] . '&filename=' . $filename); ?>"><b><?php echo $filename; ?></b></a></td>
                    
230<?php
                    
233    if ($dir) {
                    
234      $file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.'));
                    
235      while ($file = $dir->read()) {
                    
264<!-- footer //-->
                    
265<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
                    
266<!-- footer_eof //-->
                    
269</html>
                    
270<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
                    
271
                    
                
array.idl.php https://github.com/zsj888/hiphop-php.git | PHP | 376 lines
                    
1<?php
                    
2
                    
2
                    
3include_once 'base.php';
                    
4
                    
188
                    
189f('sizeof', Int32,
                    
190  array('var' => Variant,
                    
                
208cd338324b113be4926ab03214a9f49905065e.file.features.tpl.php https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | PHP | 283 lines
                    
71				<td>
                    
72				<?php if (sizeof($_smarty_tpl->tpl_vars['available_feature']->value['featureValues'])) {?>
                    
73					<select id="feature_<?php echo $_smarty_tpl->tpl_vars['available_feature']->value['id_feature'];?>
                    
84						<option value="<?php echo $_smarty_tpl->tpl_vars['value']->value['id_feature_value'];?>
                    
85"<?php if ($_smarty_tpl->tpl_vars['available_feature']->value['current_item']==$_smarty_tpl->tpl_vars['value']->value['id_feature_value']) {?>selected="selected"<?php }?> >
                    
86							<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['value']->value['value'],40);?>
                    
118_<?php echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];?>
                    
119').val($(this).val());<?php } ?>" ><?php echo (($tmp = @htmlspecialchars($_smarty_tpl->tpl_vars['available_feature']->value['val'][1]['value'], ENT_QUOTES, 'UTF-8', true))===null||$tmp==='' ? '' : $tmp);?>
                    
120</textarea>
                    
154					<?php if (count($_smarty_tpl->tpl_vars['languages']->value)>1) {?>
                    
155					<div class="row translatable-field lang-<?php echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];?>
                    
156">
                    
220<?php if (isset($_REQUEST['page'])&&$_REQUEST['page']>1) {?>&amp;submitFilterproduct=<?php echo intval($_REQUEST['page']);?>
                    
221<?php }?>" class="btn btn-default"><i class="process-icon-cancel"></i> <?php echo smartyTranslate(array('s'=>'Cancel'),$_smarty_tpl);?>
                    
222</a>
                    
                
airfoil.cpp https://github.com/OP2/OP2-Common.git | C++ | 314 lines
                    
2 * Open source copyright declaration based on BSD open source template:
                    
3 * http://www.opensource.org/licenses/bsd-license.php
                    
4 *
                    
98
                    
99  cell = (int *)malloc(4 * ncell * sizeof(int));
                    
100  edge = (int *)malloc(2 * nedge * sizeof(int));
                    
100  edge = (int *)malloc(2 * nedge * sizeof(int));
                    
101  ecell = (int *)malloc(2 * nedge * sizeof(int));
                    
102  bedge = (int *)malloc(2 * nbedge * sizeof(int));
                    
102  bedge = (int *)malloc(2 * nbedge * sizeof(int));
                    
103  becell = (int *)malloc(nbedge * sizeof(int));
                    
104  bound = (int *)malloc(nbedge * sizeof(int));
                    
105
                    
106  x = (double *)malloc(2 * nnode * sizeof(double));
                    
107  q = (double *)malloc(4 * ncell * sizeof(double));
                    
                
TestOfDashboardController.php https://github.com/dagda/ThinkUp.git | PHP | 238 lines
                    
1<?php
                    
2require_once dirname(__FILE__).'/init.tests.php';
                    
2require_once dirname(__FILE__).'/init.tests.php';
                    
3require_once THINKUP_ROOT_PATH.'webapp/_lib/extlib/simpletest/autorun.php';
                    
4require_once THINKUP_ROOT_PATH.'webapp/config.inc.php';
                    
5
                    
6require_once THINKUP_ROOT_PATH.'webapp/plugins/twitter/model/class.TwitterOAuthThinkUp.php';
                    
7require_once THINKUP_ROOT_PATH.'webapp/plugins/twitter/model/class.TwitterPlugin.php';
                    
106        $this->assertIsA($v_mgr->getTemplateDataItem('all_tweets'), 'array', 'Array of tweets');
                    
107        $this->assertEqual(sizeof($v_mgr->getTemplateDataItem('all_tweets')), 15, '15 posts in listing');
                    
108
                    
126        $this->assertIsA($v_mgr->getTemplateDataItem('all_tweets'), 'array', 'Array of tweets');
                    
127        $this->assertEqual(sizeof($v_mgr->getTemplateDataItem('all_tweets')), 15, '15 posts in listing');
                    
128
                    
149        $this->assertIsA($v_mgr->getTemplateDataItem('author_replies'), 'array', 'Array of tweets');
                    
150        $this->assertEqual(sizeof($v_mgr->getTemplateDataItem('author_replies')), 1, '1 posts in listing');
                    
151
                    
                
adodb-sqlite3.inc.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 438 lines
                    
1<?php
                    
2/*
                    
106			$size = '';
                    
107			if (sizeof($type)==2) {
                    
108				$size = trim($type[1],')');
                    
                
odbc_driver.c https://github.com/Doap/php-src.git | C | 493 lines
                    
2  +----------------------------------------------------------------------+
                    
3  | PHP Version 5                                                        |
                    
4  +----------------------------------------------------------------------+
                    
4  +----------------------------------------------------------------------+
                    
5  | Copyright (c) 1997-2011 The PHP Group                                |
                    
6  +----------------------------------------------------------------------+
                    
6  +----------------------------------------------------------------------+
                    
7  | This source file is subject to version 3.0 of the PHP license,       |
                    
8  | that is bundled with this package in the file LICENSE, and is        |
                    
9  | available through the world-wide-web at the following url:           |
                    
10  | http://www.php.net/license/3_0.txt.                                  |
                    
11  | If you did not receive a copy of the PHP license and are unable to   |
                    
12  | obtain it through the world-wide-web, please send a note to          |
                    
13  | license@php.net so we can mail you a copy immediately.               |
                    
14  +----------------------------------------------------------------------+
                    
                
heap-scan.h https://gitlab.com/alvinahmadov2/hhvm | C Header | 385 lines
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
20#include "hphp/runtime/base/array-data.h"
                    
21#include "hphp/runtime/base/object-data.h"
                    
22#include "hphp/runtime/base/resource-data.h"
                    
31#include "hphp/runtime/base/thread-info.h"
                    
32#include "hphp/runtime/vm/globals-array.h"
                    
33#include "hphp/runtime/base/rds-header.h"
                    
45#ifdef ENABLE_ZEND_COMPAT
                    
46#include "hphp/runtime/ext_zend_compat/php-src/TSRM/TSRM.h"
                    
47#endif
                    
212  markSection(rds::persistentSection());
                    
213  // php stack TODO #6509338 exactly scan the php stack.
                    
214  mark.where("php-stack");
                    
                
test_code_run.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 271 lines
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
25#include "hphp/compiler/option.h"
                    
26#include "hphp/runtime/base/runtime-option.h"
                    
27#include "hphp/runtime/ext/std/ext_std_file.h"
                    
154    } else {
                    
155      string filearg = "--file=" + dir + "main.php";
                    
156
                    
242
                    
243  if (!GenerateMainPHP(fullPath + "/main.php", file, line, input)) return false;
                    
244  if (nowarnings) {
                    
                
preclass-emitter.h https://gitlab.com/0072016/0072016-PHP.LLC | C Header | 305 lines
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
17#ifndef incl_HPHP_VM_CLASS_EMIT_H_
                    
18#define incl_HPHP_VM_CLASS_EMIT_H_
                    
19
                    
26#include "hphp/runtime/vm/func-emitter.h"
                    
27#include "hphp/runtime/vm/repo-helpers.h"
                    
28
                    
113          const bool typeconst)
                    
114      : m_name(n), m_typeConstraint(typeConstraint), m_phpCode(phpCode),
                    
115        m_typeconst(typeconst) {
                    
127    const folly::Optional<TypedValue>& valOption() const { return m_val; }
                    
128    const StringData* phpCode() const { return m_phpCode; }
                    
129    bool isAbstract()       const { return !m_val.hasValue(); }
                    
                
update_product.php https://github.com/yama/zencart-sugu.git | PHP | 219 lines
                    
1<?php
                    
2/**
                    
6 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
                    
7 * @version $Id: update_product.php 3129 2006-03-07 06:58:04Z drbyte $
                    
8 */
                    
130    $languages = zen_get_languages();
                    
131    for ($i=0, $n=sizeof($languages); $i<$n; $i++) {
                    
132      $language_id = $languages[$i]['id'];
                    
151    $languages = zen_get_languages();
                    
152    for ($i=0, $n=sizeof($languages); $i<$n; $i++) {
                    
153      $language_id = $languages[$i]['id'];
                    
                
course_info.inc.php https://bitbucket.org/hanutimes/hanutimes.git | PHP | 139 lines
                    
1<?php
                    
2/*
                    
51$langArchiveLocation = "Emplacement de l'archive";
                    
52$langSizeOf = "Taille de";
                    
53$langArchiveName = "Nom de l'archive";
                    
                
hash_whirlpool.cpp https://github.com/zsj888/hiphop-php.git | C++ | 450 lines
                    
11   | http://www.php.net/license/3_01.txt                                  |
                    
12   | If you did not receive a copy of the PHP license and are unable to   |
                    
13   | obtain it through the world-wide-web, please send a note to          |
                    
33hash_whirlpool::hash_whirlpool() :
                    
34  HashEngine(64, 64, sizeof(PHP_WHIRLPOOL_CTX)) {
                    
35};
                    
274void hash_whirlpool::hash_init(void *context_) {
                    
275  PHP_WHIRLPOOL_CTX *context = (PHP_WHIRLPOOL_CTX*)context_;
                    
276  memset(context, 0, sizeof(*context));
                    
280                                 unsigned int len) {
                    
281  PHP_WHIRLPOOL_CTX *context = (PHP_WHIRLPOOL_CTX*)context_;
                    
282
                    
388void hash_whirlpool::hash_final(unsigned char *digest, void *context_) {
                    
389  PHP_WHIRLPOOL_CTX *context = (PHP_WHIRLPOOL_CTX*)context_;
                    
390
                    
                
cyberjack.c https://github.com/gby/linux.git | C | 421 lines
                    
26 *
                    
27 *  Homepage: http://www.reiner-sct.de/support/treiber_cyberjack.php#linux
                    
28 */
                    
108
                    
109	priv = kmalloc(sizeof(struct cyberjack_private), GFP_KERNEL);
                    
110	if (!priv)
                    
184
                    
185	if (count+priv->wrfilled > sizeof(priv->wrbuf)) {
                    
186		/* To much data for buffer. Reset buffer. */
                    
202	} else
                    
203		wrexpected = sizeof(priv->wrbuf);
                    
204
                    
237			dev_dbg(dev, "%s - buffer cleaned\n", __func__);
                    
238			memset(priv->wrbuf, 0, sizeof(priv->wrbuf));
                    
239			priv->wrfilled = 0;
                    
                
VideoModes.c https://gitlab.com/envieidoc/Clover | C | 694 lines
                    
115//
                    
116//C_ASSERT(sizeof (DS_0_0_0_0) == NUM_DS_ENTRIES * sizeof (MODE_FORMAT));
                    
117
                    
203};
                    
204//C_ASSERT(sizeof (DS_640_480_32_60) == NUM_DS_ENTRIES * sizeof (MODE_FORMAT));
                    
205
                    
291};
                    
292//C_ASSERT(sizeof (DS_800_600_32_60) == NUM_DS_ENTRIES * sizeof (MODE_FORMAT));
                    
293
                    
379};
                    
380//C_ASSERT(sizeof (DS_1024_768_32_60) == NUM_DS_ENTRIES * sizeof (MODE_FORMAT));
                    
381
                    
438
                    
439UINT16                mNUM_SHUTDOWN_ENTRIES = sizeof (mDISPLAY_SHUTDOWN) / sizeof (mDISPLAY_SHUTDOWN[0]);
                    
440
                    
                
wldev_common.c https://bitbucket.org/cyanogenmod/android_kernel_samsung_msm8660-common.git | C | 381 lines
                    
8 * under the terms of the GNU General Public License version 2 (the "GPL"),
                    
9 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
                    
10 * following added to such license:
                    
62
                    
63	memset(&ioc, 0, sizeof(ioc));
                    
64	ioc.cmd = cmd;
                    
125	val = htod32(val);
                    
126	memset(iovar_buf, 0, sizeof(iovar_buf));
                    
127	return wldev_iovar_setbuf(dev, iovar, &val, sizeof(val), iovar_buf,
                    
127	return wldev_iovar_setbuf(dev, iovar, &val, sizeof(val), iovar_buf,
                    
128		sizeof(iovar_buf), NULL);
                    
129}
                    
137
                    
138	memset(iovar_buf, 0, sizeof(iovar_buf));
                    
139	err = wldev_iovar_getbuf(dev, iovar, pval, sizeof(*pval), iovar_buf,
                    
                
fakephp.c https://gitlab.com/envieidoc/advancedtomato2 | C | 402 lines
                    
45#if !defined(MODULE)
                    
46	#define MY_NAME	"fakephp"
                    
47#else
                    
72static LIST_HEAD(slot_list);
                    
73static struct workqueue_struct *dummyphp_wq;
                    
74
                    
103
                    
104	slot = kzalloc(sizeof(struct hotplug_slot), GFP_KERNEL);
                    
105	if (!slot)
                    
107
                    
108	slot->info = kzalloc(sizeof(struct hotplug_slot_info), GFP_KERNEL);
                    
109	if (!slot->info)
                    
118
                    
119	dslot = kzalloc(sizeof(struct dummy_slot), GFP_KERNEL);
                    
120	if (!dslot)
                    
                
Csv.php https://github.com/rgranadino/magento-mirror.git | PHP | 297 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
163    {
                    
164        if (sizeof($line) == 1) return false;
                    
165
                    
                
linux_osl.c https://github.com/CoreyUnknown/linux_froyo_gt-i9000.git | C | 701 lines
                    
8 * under the terms of the GNU General Public License version 2 (the "GPL"),
                    
9 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
                    
10 * following added to such license:
                    
170
                    
171	osh = kmalloc(sizeof(osl_t), GFP_ATOMIC);
                    
172	ASSERT(osh);
                    
173
                    
174	bzero(osh, sizeof(osl_t));
                    
175
                    
254
                    
255		bcopy(skb_buff_ptr, bcm_static_skb, sizeof(struct sk_buff *)*16);
                    
256#endif /* CUSTOMER_HW_SAMSUNG */
                    
                
PiHob.h https://github.com/pierre/syslinux.git | C Header | 295 lines
                    
7  which accompanies this distribution.  The full text of the license may be found at
                    
8  http://opensource.org/licenses/bsd-license.php
                    
9
                    
261  EFI_HOB_GENERIC_HEADER  Header;
                    
262  UINT8                   SizeOfMemorySpace;
                    
263  UINT8                   SizeOfIoSpace;
                    
                
Csv.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 297 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
163    {
                    
164        if (sizeof($line) == 1) return false;
                    
165
                    
                
ext_icu_collator.cpp https://gitlab.com/0072016/0072016-PHP.LLC | C++ | 369 lines
                    
1#include "hphp/runtime/ext/icu/ext_icu_collator.h"
                    
2#include "hphp/runtime/base/builtin-functions.h"
                    
2#include "hphp/runtime/base/builtin-functions.h"
                    
3#include "hphp/runtime/base/zend-collator.h"
                    
4#include "hphp/runtime/base/zend-qsort.h"
                    
5
                    
6namespace HPHP { namespace Intl {
                    
7/////////////////////////////////////////////////////////////////////////////
                    
213  auto   sortIndex = (collator_sort_key_index_t*)req::malloc(
                    
214                  sortIndexLength * sizeof(collator_sort_key_index_t));
                    
215  if (!sortIndex) {
                    
263      sortIndex = (collator_sort_key_index_t*)req::realloc(sortIndex,
                    
264                      sortIndexLength * sizeof(collator_sort_key_index_t));
                    
265      if (!sortIndex) {
                    
283  zend_qsort(sortIndex, sortIndexPos,
                    
284             sizeof(collator_sort_key_index_t),
                    
285             collator_cmp_sort_keys, nullptr);
                    
                
Arrays.test.php https://bitbucket.org/larryg/powerhut.git | PHP | 530 lines
                    
1<?php
                    
2use Underscore\Types\Arrays;
                    
87
                    
88  public function testCanGetSizeOfArray()
                    
89  {
                    
                
preclass-emitter.cpp https://gitlab.com/0072016/0072016-PHP.LLC | C++ | 429 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
15*/
                    
16#include "hphp/runtime/vm/preclass-emitter.h"
                    
17
                    
                
CEGUIFont.cpp https://bitbucket.org/ahernandez52/school-mantis-1.git | C++ | 282 lines
                    
36// amount of bits in a uint
                    
37#define BITS_PER_UINT   (sizeof (uint) * 8)
                    
38// must be a power of two
                    
59    d_maxCodepoint(0),
                    
60    d_glyphPageLoaded(0)
                    
61{
                    
71{
                    
72    delete[] d_glyphPageLoaded;
                    
73}
                    
91
                    
92    delete[] d_glyphPageLoaded;
                    
93
                    
96    d_glyphPageLoaded = new uint[size];
                    
97    memset(d_glyphPageLoaded, 0, size * sizeof(uint));
                    
98}
                    
                
ext_spl.cpp https://gitlab.com/alvinahmadov2/hhvm | C++ | 385 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
5   | Copyright (c) 2010-2015 Facebook, Inc. (http://www.facebook.com)     |
                    
6   | Copyright (c) 1997-2010 The PHP Group                                |
                    
7   +----------------------------------------------------------------------+
                    
7   +----------------------------------------------------------------------+
                    
8   | This source file is subject to version 3.01 of the PHP license,      |
                    
9   | that is bundled with this package in the file LICENSE, and is        |
                    
10   | available through the world-wide-web at the following url:           |
                    
11   | http://www.php.net/license/3_01.txt                                  |
                    
12   | If you did not receive a copy of the PHP license and are unable to   |
                    
13   | obtain it through the world-wide-web, please send a note to          |
                    
14   | license@php.net so we can mail you a copy immediately.               |
                    
15   +----------------------------------------------------------------------+
                    
                
paging.class.php https://github.com/pijulius/jcore.git | PHP | 447 lines
                    
1<?php
                    
2
                    
3/***************************************************************************
                    
4 *            paging.class.php
                    
5 *
                    
268
                    
269		for ($i = 0; $i < sizeof($exp_args); $i++) {
                    
270			$exp_arg = explode("=", $exp_args[$i]);
                    
                
apc_pool.c https://gitlab.com/0072016/appengine-php | C | 509 lines
                    
12  | obtain it through the world-wide-web, please send a note to          |
                    
13  | license@php.net so we can mail you a copy immediately.               |
                    
14  +----------------------------------------------------------------------+
                    
17
                    
18   This software was contributed to PHP by Yahoo! Inc. in 2008.
                    
19
                    
202    (entry)->avail = (entry)->capacity = (size);\
                    
203    (entry)->mark =  ((unsigned char*)(entry)) + ALIGNWORD(sizeof(pool_block));\
                    
204    (entry)->next = (rpool)->head;\
                    
212
                    
213    size_t realsize = sizeof(pool_block) + ALIGNWORD(size);
                    
214
                    
473    /* put all ye sanity checks here */
                    
474    assert(sizeof(decaff) > REDZONE_SIZE(ALIGNWORD(sizeof(char))));
                    
475    assert(sizeof(pool_block) == ALIGNWORD(sizeof(pool_block)));
                    
                
DB.php https://github.com/wokkie/sitellite.git | PHP | 425 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------+
                    
4// +----------------------------------------------------------------------+
                    
5// | Copyright (c) 1997-2003 The PHP Group                                |
                    
6// +----------------------------------------------------------------------+
                    
6// +----------------------------------------------------------------------+
                    
7// | This source file is subject to version 2.0 of the PHP license,       |
                    
8// | that is bundled with this package in the file LICENSE, and is        |
                    
9// | available at through the world-wide-web at                           |
                    
10// | http://www.php.net/license/2_02.txt.                                 |
                    
11// | If you did not receive a copy of the PHP license and are unable to   |
                    
12// | obtain it through the world-wide-web, please send a note to          |
                    
13// | license@php.net so we can mail you a copy immediately.               |
                    
14// +----------------------------------------------------------------------+
                    
17//
                    
18// $Id: DB.php,v 1.1.1.1 2005/04/29 04:44:35 lux Exp $
                    
19
                    
                
dhd_cdc.c https://github.com/getitnowmarketing/LG-2.6.32.git | C | 575 lines
                    
8 * under the terms of the GNU General Public License version 2 (the "GPL"),
                    
9 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
                    
10 * following added to such license:
                    
79	dhd_prot_t *prot = dhd->prot;
                    
80	int len = ltoh32(prot->msg.len) + sizeof(cdc_ioctl_t);
                    
81
                    
103	do {
                    
104		ret = dhd_bus_rxctl(dhd->bus, (uchar*)&prot->msg, len+sizeof(cdc_ioctl_t));
                    
105		if (ret < 0)
                    
139
                    
140	memset(msg, 0, sizeof(cdc_ioctl_t));
                    
141
                    
206
                    
207	memset(msg, 0, sizeof(cdc_ioctl_t));
                    
208
                    
                
prof-data.h https://gitlab.com/alvinahmadov2/hhvm | C Header | 268 lines
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
17#ifndef incl_HPHP_PROF_TRANS_DATA_H_
                    
18#define incl_HPHP_PROF_TRANS_DATA_H_
                    
19
                    
24#include "hphp/util/hash-map-typedefs.h"
                    
25#include "hphp/runtime/vm/func.h"
                    
26#include "hphp/runtime/vm/srckey.h"
                    
259                                         //                      TransID
                    
260  hphp_hash_map<FuncId,hphp_hash_set<Offset>>
                    
261                          m_blockEndOffsets;  // func -> block end offsets
                    
                
reader.php https://github.com/axshavan/nitrofuran.git | PHP | 540 lines
                    
1<?php
                    
2
                    
14
                    
15require_once(DOCUMENT_ROOT.'/nitrofuran/crud.class.php');
                    
16
                    
37		$error = '';
                    
38		if(!$group_name || !sizeof($group_name))
                    
39		{
                    
69		{
                    
70			// за счёт разных часовых поясов и тупого php могут быть косяки со временными метками
                    
71			// накинем ещё сутки
                    
110		$error = '';
                    
111		if(!$href || !sizeof($href))
                    
112		{
                    
160		);
                    
161		curl_setopt($curl, CURLOPT_USERAGENT, 'Nitrofuran Reader: PHP bot collecting RSS feeds');
                    
162		ob_start();
                    
                
somain.c https://github.com/nx111/OpenPLi.cn.git | C | 688 lines
                    
102
                    
103	sprintf(url,"%s/games/tetris.php?action=get",hscore);
                    
104
                    
185	if ( i < 7 )
                    
186		memmove( hsc+i+1,hsc+i,sizeof(HScore)*(7-i) );
                    
187	strcpy(hsc[i].name,user);
                    
283
                    
284	sprintf(url,"%s/games/tetris.php?action=put&user=%s&score=%ld&chk=%lu",
                    
285		hscore,user,score,chk);
                    
529	{
                    
530		read( fd, hsc, sizeof(hsc) );
                    
531		close(fd);
                    
643	{
                    
644		write( fd, hsc, sizeof(hsc) );
                    
645		close(fd);
                    
                
Collection.php https://bitbucket.org/kdms/sh-magento.git | PHP | 423 lines
                    
1<?php
                    
2/**
                    
232        $tagsStores = array();
                    
233        if (sizeof($tagIds) > 0) {
                    
234            $select = $this->getConnection()->select()
                    
                
MayaDMSkinCluster.h https://bitbucket.org/ZhangJingGuo/opencollada.git | C Header | 479 lines
                    
7    for details please see LICENSE file or the website
                    
8    http://www.opensource.org/licenses/mit-license.php
                    
9*/
                    
23		{
                    
24			size_t size = sizeof(weights)/sizeof(double);
                    
25			for(size_t i=0; i<size; ++i)
                    
                
ext_spl.cpp https://gitlab.com/iranjith4/hhvm | C++ | 384 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
5   | Copyright (c) 2010-2016 Facebook, Inc. (http://www.facebook.com)     |
                    
6   | Copyright (c) 1997-2010 The PHP Group                                |
                    
7   +----------------------------------------------------------------------+
                    
7   +----------------------------------------------------------------------+
                    
8   | This source file is subject to version 3.01 of the PHP license,      |
                    
9   | that is bundled with this package in the file LICENSE, and is        |
                    
10   | available through the world-wide-web at the following url:           |
                    
11   | http://www.php.net/license/3_01.txt                                  |
                    
12   | If you did not receive a copy of the PHP license and are unable to   |
                    
13   | obtain it through the world-wide-web, please send a note to          |
                    
14   | license@php.net so we can mail you a copy immediately.               |
                    
15   +----------------------------------------------------------------------+
                    
                
Mmc.c https://gitlab.com/envieidoc/Clover | C | 454 lines
                    
8  which accompanies this distribution.  The full text of the license may be found at
                    
9  http://opensource.org/licenses/bsd-license.php
                    
10
                    
93
                    
94  MmcHostInstance = AllocateZeroPool (sizeof (MMC_HOST_INSTANCE));
                    
95  if (MmcHostInstance == NULL) {
                    
102
                    
103  MmcHostInstance->BlockIo.Media = AllocateCopyPool (sizeof(EFI_BLOCK_IO_MEDIA), &mMmcMediaTemplate);
                    
104  if (MmcHostInstance->BlockIo.Media == NULL) {
                    
210        Node.DevPath->SubType != HW_VENDOR_DP      ||
                    
211        DevicePathNodeLength(Node.DevPath) != sizeof(VENDOR_DEVICE_PATH)) {
                    
212          return EFI_UNSUPPORTED;
                    
                
hpioctl.c https://bitbucket.org/Lloir/lge-kernel-jb.git | C | 496 lines
                    
100{
                    
101	struct hpi_ioctl_linux __user *phpi_ioctl_data;
                    
102	void __user *puhm;
                    
113
                    
114	hm = kmalloc(sizeof(*hm), GFP_KERNEL);
                    
115	hr = kmalloc(sizeof(*hr), GFP_KERNEL);
                    
120
                    
121	phpi_ioctl_data = (struct hpi_ioctl_linux __user *)arg;
                    
122
                    
123	/* Read the message and response pointers from user space.  */
                    
124	if (get_user(puhm, &phpi_ioctl_data->phm) ||
                    
125	    get_user(puhr, &phpi_ioctl_data->phr)) {
                    
134	}
                    
135	if (hm->h.size > sizeof(*hm))
                    
136		hm->h.size = sizeof(*hm);
                    
                
xs_news.php https://github.com/Informpro/icy_phoenix.git | PHP | 344 lines
                    
1<?php
                    
2/**
                    
6* @copyright (c) 2008 Icy Phoenix
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
30	*/
                    
31	include_once(IP_ROOT_PATH . 'includes/functions_xs_useless.' . PHP_EXT);
                    
32
                    
88
                    
89	if($total_news = sizeof($news_rows))
                    
90	{
                    
154
                    
155		if($total_xml = sizeof($xml_row))
                    
156		{
                    
215								{
                    
216									if (sizeof($rss_channel['items']) > 0)
                    
217									{
                    
                
Collection.php https://github.com/cosmocommerce/magento-mirror.git | PHP | 490 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
145        $tagsStores = array();
                    
146        if (sizeof($tagIds) > 0) {
                    
147            $select = $this->getConnection()->select()
                    
314
                    
315        if (sizeof($prodIds) > 0) {
                    
316            $this->getSelect()->where('e.entity_id IN(?)', $prodIds);
                    
                
vms.c https://github.com/trevor/ImageMagick.git | C | 271 lines
                    
25%                                                                             %
                    
26%    http://www.imagemagick.org/script/license.php                            %
                    
27%                                                                             %
                    
113  */
                    
114  directory=(DIR *) AcquireMagickMemory(sizeof(DIR));
                    
115  if (directory == (DIR *) NULL)
                    
121    name="";
                    
122  directory->pattern=(char *) AcquireQuantumMemory(strlen(name)+sizeof("*.*")+
                    
123    1UL,sizeof(*directory->pattern));
                    
168  char
                    
169    buffer[sizeof(directory->entry.d_name)];
                    
170
                    
186  result.dsc$a_pointer=buffer;
                    
187  result.dsc$w_length=sizeof(buffer)-2;
                    
188  result.dsc$b_dtype=DSC$K_DTYPE_T;
                    
                
MathLoader.php https://github.com/drobbins/s3db.git | PHP | 133 lines
                    
7 *
                    
8 * PHP versions 4 and 5
                    
9 *
                    
9 *
                    
10 * LICENSE: This source file is subject to version 3.0 of the PHP license
                    
11 * that is available through the world-wide-web at the following URI:
                    
11 * that is available through the world-wide-web at the following URI:
                    
12 * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
                    
13 * the PHP License and are unable to obtain it through the web, please
                    
19 * @copyright  2005, 2006 Alexander Valyalkin
                    
20 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
21 * @version    1.2.0b
                    
50 * @copyright  2005, 2006 Alexander Valyalkin
                    
51 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
52 * @link       http://pear.php.net/package/Crypt_RSA
                    
                
mmc_ffu.c https://gitlab.com/SpasilliumNexus/frankenclark_kernel | C | 496 lines
                    
17 * http://www.gnu.org/licenses/,
                    
18 * or http://www.opensource.org/licenses/gpl-2.0.php
                    
19*/
                    
140
                    
141	area->mem.arr = kzalloc(sizeof(struct mmc_ffu_pages) * area->max_segs,
                    
142		GFP_KERNEL);
                    
280	 */
                    
281	memset(card->raw_cid, 0, sizeof(card->raw_cid));
                    
282
                    
                
class.UserMySQLDAO.php https://github.com/SimonCoopey/ThinkUp.git | PHP | 233 lines
                    
1<?php
                    
2/**
                    
3 *
                    
4 * ThinkUp/webapp/_lib/model/class.UserMySQLDAO.php
                    
5 *
                    
69        $status_message = "";
                    
70        if (sizeof($users_to_update) > 0) {
                    
71            $status_message .= count($users_to_update)." users queued for insert or update; ";
                    
                
 

Source

Language