PageRenderTime 217ms queryFilters 14ms Sphinxql 49ms app.CodeModel.GetByIds 75ms findMatchingLines 52ms GetByIds 127ms meta 0ms repositoryFilters 11ms languageFilters 3ms sourceFilters 3ms

60,014 results for 'php is_null repo:fuel/oil' (217 ms)

Source

Language

Repository

Driver.php git://pkgs.fedoraproject.org/php-pear-Date-Holidays | PHP | 1,418 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
9 *
10 * This source file is subject to version 2.0 of the PHP license,
11 * that is bundled with this package in the file LICENSE, and is
12 * available at through the world-wide-web at
13 * http://www.php.net/license/2_02.txt.
14 * If you did not receive a copy of the PHP license and are unable to
24 * @author   Carsten Lucke <luckec@tool-garage.de>
25 * @license  http://www.php.net/license/3_01.txt PHP License 3.0.1
26 * @version  CVS: $Id: Driver.php 321620 2011-12-31 20:59:14Z danielc $
36 * @author   Carsten Lucke <luckec@tool-garage.de>
37 * @license  http://www.php.net/license/3_01.txt PHP License 3.0.1
38 * @version  CVS: $Id: Driver.php 321620 2011-12-31 20:59:14Z danielc $
120 * @author     Carsten Lucke <luckec@tool-garage.de>
121 * @license    http://www.php.net/license/3_01.txt PHP License 3.0.1
122 * @version    CVS: $Id: Driver.php 321620 2011-12-31 20:59:14Z danielc $
ds_ldap.php git://pkgs.fedoraproject.org/phpldapadmin | PHP | 2,402 lines
529	 *
530	 * Users may configure phpLDAPadmin to use TLS in config,php thus:
531	 * <code>
641					error(sprintf(_('It seems that sasl_authz_id_regex "%s" contains invalid PCRE regular expression. The error is "%s".'),
642						$this->getValue('sasl','authz_id_regex'),(isset($php_errormsg) ? $php_errormsg : '')),
643						'error','index.php');
656
657		# @todo this function is different in PHP5.1 and PHP5.2
658		return @ldap_sasl_bind($resource,NULL,'',
667	 *
668	 * Users may configure phpLDAPadmin to use PROXY AUTH in config,php thus:
669	 * <code>
1452
1453		$schema_error_message = 'Please contact the phpLDAPadmin developers and let them know:<ul><li>Which LDAP server you are running, including which version<li>What OS it is running on<li>Which version of PHP<li>As well as a link to some documentation that describes how to obtain the SCHEMA information</ul><br />We\'ll then add support for your LDAP server in an upcoming release.';
1454		$schema_error_message_array = array('objectclasses','attributetypes');
mysqli_api.c https://bitbucket.org/wmark/php-fpm-0.5.git | C | 2,174 lines
144				bind[ofs].buffer = (char*)&Z_DVAL_PP(args[i]);
145				bind[ofs].is_null = &stmt->param.is_null[ofs];
146				break;
315				bind[ofs].buffer = stmt->result.buf[ofs].val;
316				bind[ofs].is_null = &stmt->result.is_null[ofs];
317				bind[ofs].buffer_length = stmt->result.buf[ofs].buflen;
364				bind[ofs].buffer = stmt->result.buf[ofs].val;
365				bind[ofs].is_null = &stmt->result.is_null[ofs];
366				bind[ofs].buffer_length = stmt->result.buf[ofs].buflen;
385		}
386		/* Don't free stmt->result.is_null because is_null & buf are one block of memory  */
387		efree(stmt->result.buf);
597		if (stmt->param.vars[i]) {
598			if ( !(stmt->param.is_null[i] = (stmt->param.vars[i]->type == IS_NULL)) ) {
599				switch (stmt->stmt->params[i].buffer_type) {
Blob.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 2,001 lines
1<?php
2/**
25 */
26require_once 'Zend/Service/WindowsAzure/Credentials/SharedKey.php';
27
30 */
31require_once 'Zend/Service/WindowsAzure/Credentials/SharedAccessSignature.php';
32
35 */
36require_once 'Zend/Service/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php';
37
40 */
41require_once 'Zend/Http/Client.php';
42
45 */
46require_once 'Zend/Http/Response.php';
47
gradelib.php https://bitbucket.org/ciceidev/cicei_moodle_conditional_activities.git | PHP | 1,444 lines
1<?php // $Id$
2
37require_once($CFG->libdir . '/grade/grade_item.php');
38require_once($CFG->libdir . '/grade/grade_grade.php');
39require_once($CFG->libdir . '/grade/grade_scale.php');
39require_once($CFG->libdir . '/grade/grade_scale.php');
40require_once($CFG->libdir . '/grade/grade_outcome.php');
41
75
76    if (is_null($courseid) or is_null($itemtype)) {
77        debugging('Missing courseid or itemtype');
1207
1208        if (is_null($grademax) and is_null($scaleid)) {
1209           $grade_item->gradetype  = GRADE_TYPE_NONE;
1238
1239    if (is_null($grademax) and is_null($scaleid)) {
1240        $params['gradetype'] = GRADE_TYPE_NONE;
Slim.php https://bitbucket.org/jlaso/m4us.git | PHP | 1,183 lines
1<?php
2/**
32
33//Ensure PHP session IDs only use the characters [a-z0-9]
34ini_set('session.hash_bits_per_character', 4);
46
47//This determines which errors are reported by PHP. By default, all
48//errors (including E_STRICT) are reported.
50
51//This tells PHP to auto-load classes using Slim's autoloader; this will
52//only auto-load a class file located in the same directory as Slim.php
53//whose file name (excluding the final dot and extension) is the same
54//as its class name (case-sensitive). For example, "View.php" will be
55//loaded when Slim uses the "View" class for the first time.
1138        if(class_exists("FirePHP")){
1139            $firephp = FirePHP::getInstance(true);
1140            $firephp->log(ORM::get_last_query(), 'ORM-last-query');
renderer.php https://bitbucket.org/bmbrands/swets.git | PHP | 916 lines
1<?php
2
69
70        if (!is_null($url) and !is_null($label)) {
71            $o .= $this->output->single_button($url, $label, 'get');
184            $userpic            = $this->output->user_picture($author, array('courseid' => $this->page->course->id, 'size' => 35));
185            $userurl            = new moodle_url('/user/view.php',
186                                            array('id' => $author->id, 'course' => $this->page->course->id));
225        $content = format_text($example->content, $example->contentformat, array('overflowdiv'=>true));
226        $content = file_rewrite_pluginfile_urls($content, 'pluginfile.php', $this->page->context->id,
227                                                        'mod_workshop', 'submission_content', $example->id);
452                    $cell->attributes['class'] = 'receivedgrade';
453                    if (is_null($assessment) or is_null($assessment->grade)) {
454                        $cell->attributes['class'] .= ' null';
476                    $cell->attributes['class'] = 'givengrade';
477                    if (is_null($assessment) or is_null($assessment->grade)) {
478                        $cell->attributes['class'] .= ' null';
Slim.php https://bitbucket.org/Sulla/fish-for-sites.git | PHP | 1,136 lines
1<?php
2/**
2/**
3 * Slim - a micro PHP 5 framework
4 *
32
33//Ensure PHP session IDs only use the characters [a-z0-9]
34ini_set('session.hash_bits_per_character', 4);
46
47//This determines which errors are reported by PHP. By default, all
48//errors (including E_STRICT) are reported.
50
51//This tells PHP to auto-load classes using Slim's autoloader; this will
52//only auto-load a class file located in the same directory as Slim.php
53//whose file name (excluding the final dot and extension) is the same
54//as its class name (case-sensitive). For example, "View.php" will be
55//loaded when Slim uses the "View" class for the first time.
renderer.php https://bitbucket.org/ngmares/moodle.git | PHP | 999 lines
1<?php
2
69
70        if (!is_null($url) and !is_null($label)) {
71            $o .= $this->output->single_button($url, $label, 'get');
184            $userpic            = $this->output->user_picture($author, array('courseid' => $this->page->course->id, 'size' => 35));
185            $userurl            = new moodle_url('/user/view.php',
186                                            array('id' => $author->id, 'course' => $this->page->course->id));
225        $content = format_text($example->content, $example->contentformat, array('overflowdiv'=>true));
226        $content = file_rewrite_pluginfile_urls($content, 'pluginfile.php', $this->page->context->id,
227                                                        'mod_workshop', 'submission_content', $example->id);
493                    $cell->attributes['class'] = 'receivedgrade';
494                    if (is_null($assessment) or is_null($assessment->grade)) {
495                        $cell->attributes['class'] .= ' null';
517                    $cell->attributes['class'] = 'givengrade';
518                    if (is_null($assessment) or is_null($assessment->grade)) {
519                        $cell->attributes['class'] .= ' null';
Table.php https://bitbucket.org/netglue/zf-1.12-release.git | PHP | 931 lines
1<?php
2/**
35 */
36require_once 'Zend/Service/WindowsAzure/Storage/TableEntityQuery.php';
37
40 */
41require_once 'Zend/Service/WindowsAzure/Storage/DynamicTableEntity.php';
42
45 */
46require_once 'Zend/Service/WindowsAzure/Credentials/SharedKeyLite.php';
47
548		// Add continuation querystring parameters?
549		if (!is_null($nextPartitionKey) && !is_null($nextRowKey)) {
550		    if ($queryString !== '') {
629			// More entities?
630		    if (!is_null($response->getHeader('x-ms-continuation-NextPartitionKey')) && !is_null($response->getHeader('x-ms-continuation-NextRowKey'))) {
631		        if (strpos($queryString, '$top') === false) {
Queue.php https://bitbucket.org/netglue/zf-1.12-release.git | PHP | 592 lines
1<?php
2/**
25 */
26require_once 'Zend/Service/WindowsAzure/Storage.php';
27
30 */
31require_once 'Zend/Service/WindowsAzure/Storage/QueueInstance.php';
32
35 */
36require_once 'Zend/Service/WindowsAzure/Storage/QueueMessage.php';
37
82		if ($queueName === '') {
83			require_once 'Zend/Service/WindowsAzure/Exception.php';
84			throw new Zend_Service_WindowsAzure_Exception('Queue name is not specified.');
86		if (!self::isValidQueueName($queueName)) {
87			require_once 'Zend/Service/WindowsAzure/Exception.php';
88		    throw new Zend_Service_WindowsAzure_Exception('Queue name does not adhere to queue naming conventions. See http://msdn.microsoft.com/en-us/library/dd179349.aspx for more information.');
em_core_helper.php https://bitbucket.org/machaven/limesurvey.git | PHP | 3,533 lines
155        $this->RDP_ValidFunctions = array(
156'abs' => array('abs', 'Math.abs', $this->gT('Absolute value'), 'number abs(number)', 'http://www.php.net/manual/en/function.checkdate.php', 1),
157'acos' => array('acos', 'Math.acos', $this->gT('Arc cosine'), 'number acos(number)', 'http://www.php.net/manual/en/function.acos.php', 1),
184'is_nan' => array('is_nan', 'isNaN', $this->gT('Finds whether a value is not a number'), 'bool is_nan(var)', 'http://www.php.net/manual/en/function.is-nan.php', 1),
185'is_null' => array('is_null', 'LEMis_null', $this->gT('Finds whether a variable is NULL'), 'bool is_null(var)', 'http://www.php.net/manual/en/function.is-null.php', 1),
186'is_numeric' => array('is_numeric', 'LEMis_numeric', $this->gT('Finds whether a variable is a number or a numeric string'), 'bool is_numeric(var)', 'http://www.php.net/manual/en/function.is-numeric.php', 1),
214'strcmp' => array('strcmp', 'strcmp', $this->gT('Binary safe string comparison'), 'int strcmp(str1, str2)', 'http://www.php.net/manual/en/function.strcmp.php', 2),
215'strip_tags' => array('strip_tags', 'strip_tags', $this->gT('Strip HTML and PHP tags from a string'), 'string strip_tags(str, allowable_tags)', 'http://www.php.net/manual/en/function.strip-tags.php', 1,2),
216'stripos' => array('stripos', 'stripos', $this->gT('Find position of first occurrence of a case-insensitive string'), 'int stripos(haystack, needle [, offset=0])', 'http://www.php.net/manual/en/function.stripos.php', 2,3),
227'sumifop' => array('exprmgr_sumifop', 'LEMsumifop', $this->gT('Sum the values of answered questions in the list which pass the critiera (arg op value)'), 'number sumifop(op, value, arg1, arg2, ... argN)', '', -3),
228'tan' => array('tan', 'Math.tan', $this->gT('Tangent'), 'number tan(arg)', 'http://www.php.net/manual/en/function.tan.php', 1),
229'time' => array('time', 'time', $this->gT('Return current UNIX timestamp'), 'number time()', 'http://www.php.net/manual/en/function.time.php', 0),
229'time' => array('time', 'time', $this->gT('Return current UNIX timestamp'), 'number time()', 'http://www.php.net/manual/en/function.time.php', 0),
230'trim' => array('trim', 'trim', $this->gT('Strip whitespace (or other characters) from the beginning and end of a string'), 'string trim(string [, charlist])', 'http://www.php.net/manual/en/function.trim.php', 1,2),
231'ucwords' => array('ucwords', 'ucwords', $this->gT('Uppercase the first character of each word in a string'), 'string ucwords(string)', 'http://www.php.net/manual/en/function.ucwords.php', 1),
limonade.php https://bitbucket.org/cpoppema/stockpiler.git | PHP | 2,585 lines
1052
1053      if($request_uri."index.php" == $base_path) $request_uri .= "index.php";
1054      $uri = str_replace($base_path, '', $request_uri);
1205 *   a function, an object method, a static method or a closure.
1206 *   See {@link http://php.net/manual/en/language.pseudo-types.php#language.types.callback php documentation}
1207 *   to learn more about callbacks.
1829 *   or an object and the name of a method within the object
1830 *   See {@link http://php.net/manual/en/language.pseudo-types.php#language.types.callback php documentation}
1831 *   to learn more about callbacks.
2532   * For PHP 5 < 5.3.0 (backward compatibility)
2533   * (from {@link http://www.php.net/manual/fr/function.array-replace.php#92549 this php doc. note})
2534   * 
2567 * This implementation no longer requires 
2568 * {@link http://www.php.net/manual/en/book.filter.php the filter extenstion}, 
2569 * so it will improve compatibility with older PHP versions.
Document.php https://bitbucket.org/byildirim/mongo-blog.git | PHP | 1,353 lines
1<?php
2require_once 'Shanty/Mongo/Exception.php';
2require_once 'Shanty/Mongo/Exception.php';
3require_once 'Shanty/Mongo/Collection.php';
4require_once 'Shanty/Mongo/Iterator/Default.php';
156	{
157		return !is_null($this->getId());
158	}
207	{
208		return (!is_null($this->getConfigAttribute('connectionGroup')) && !is_null($this->getConfigAttribute('db')) && !is_null($this->getConfigAttribute('collection')));
209	}
259	{
260		return is_null($this->getPathToDocument());
261	}
311	{
312		if (is_null($property)) return $this->_config['criteria'];
313		
config.class.php https://bitbucket.org/malathisuji/nrcfoss-au-tamil-computing-activities | PHP | 1,042 lines
1<?php
2/**
13    var $_name = 'conf';           // name of the config variable found in the files (overridden by $config['varname'])
14    var $_format = 'php';          // format of the config file, supported formats - php (overridden by $config['format'])
15    var $_heading = '';            // heading string written at top of config file - don't include comment indicators
154        if(@file_exists($file)){
155            $contents = @php_strip_whitespace($file);
156        }else{
181      $out = '';
182      if ($this->_format == 'php') {
183          $out .= '<'.'?php'."\n".
196      $out = '';
197      if ($this->_format == 'php') {
198 #         if ($this->_protected_file) {
949/**
950 *  Provide php_strip_whitespace (php5 function) functionality
951 *
Yahoo.inc https://bitbucket.org/rbonesource1234/no2co2 | Pascal | 2,010 lines
1<?php
2
7 *  @author      Yahoo! Developer Network
8 *  @example     http://developer.yahoo.com/social/sdk/php/
9 *
10 *  @copyright   Copyright (c) 2009 Yahoo! Inc. All rights reserved.
11 *  @license     BSD License (http://www.opensource.org/licenses/bsd-license.php)
12 *
46 *
47 *  Documentation: http://developer.yahoo.com/social/sdk/php/
48 */
1837        $sdkVersion = "1.2";
1838        $agent = sprintf("YosPhpSdk/%s php/%s", $sdkVersion, phpversion());
1839        curl_setopt($ch, CURLOPT_USERAGENT, $agent);
1990// version of PHP. Include fake versions of json_encode/json_decode that
1991// are backed by the native PHP php-json library, which is available in PEAR.
1992if(!function_exists("json_decode")) {
Document.php https://bitbucket.org/ilyabazhenov/speakplace | PHP | 1,263 lines
1<?php
2require_once 'Shanty/Mongo/Exception.php';
2require_once 'Shanty/Mongo/Exception.php';
3require_once 'Shanty/Mongo/Collection.php';
4require_once 'Shanty/Mongo/Iterator/Default.php';
143	{
144		return !is_null($this->getId());
145	}
194	{
195		return (!is_null($this->getConfigAttribute('connectionGroup')) && !is_null($this->getConfigAttribute('db')) && !is_null($this->getConfigAttribute('collection')));
196	}
246	{
247		return is_null($this->getPathToDocument());
248	}
298	{
299		if (is_null($property)) return $this->_config['criteria'];
300		
limonade.php https://github.com/artisonian/limonade-mongo-starter.git | PHP | 2,449 lines
1035
1036      if($request_uri."index.php" == $base_path) $request_uri .= "index.php";
1037  	  $uri = str_replace($base_path, '', $request_uri);
1186 *   a function, an object method, a static method or a closure.
1187 *   See {@link http://php.net/manual/en/language.pseudo-types.php#language.types.callback php documentation}
1188 *   to learn more about callbacks.
1724  static $_name = null;
1725  if(is_null($name) && !is_null($_name))
1726  {
1786 *   or an object and the name of a method within the object
1787 *   See {@link http://php.net/manual/en/language.pseudo-types.php#language.types.callback php documentation}
1788 *   to learn more about callbacks.
2411   * For PHP 5 < 5.3.0 (backward compatibility)
2412   * (from {@link http://www.php.net/manual/fr/function.array-replace.php#92549 this php doc. note})
2413   * 
limonade.php https://github.com/masroore/limonade.git | PHP | 2,612 lines
1207 *   a function, an object method, a static method or a closure.
1208 *   See {@link http://php.net/manual/en/language.pseudo-types.php#language.types.callback php documentation}
1209 *   to learn more about callbacks.
1832 *   or an object and the name of a method within the object
1833 *   See {@link http://php.net/manual/en/language.pseudo-types.php#language.types.callback php documentation}
1834 *   to learn more about callbacks.
2536   * For PHP 5 < 5.3.0 (backward compatibility)
2537   * (from {@link http://www.php.net/manual/fr/function.array-replace.php#92549 this php doc. note})
2538   * 
2571 * This implementation no longer requires 
2572 * {@link http://www.php.net/manual/en/book.filter.php the filter extenstion}, 
2573 * so it will improve compatibility with older PHP versions.
2587 * For PHP 5 < 5.1.0 (backward compatibility)
2588 * (from {@link http://www.php.net/manual/en/function.htmlspecialchars-decode.php#82133})
2589 * 
limonade.php https://github.com/s-aska/php-openid-with-ld.git | PHP | 2,665 lines
1216 *   a function, an object method, a static method or a closure.
1217 *   See {@link http://php.net/manual/en/language.pseudo-types.php#language.types.callback php documentation}
1218 *   to learn more about callbacks.
1862 *   or an object and the name of a method within the object
1863 *   See {@link http://php.net/manual/en/language.pseudo-types.php#language.types.callback php documentation}
1864 *   to learn more about callbacks.
2566   * For PHP 5 < 5.3.0 (backward compatibility)
2567   * (from {@link http://www.php.net/manual/fr/function.array-replace.php#92549 this php doc. note})
2568   * 
2601 * This implementation no longer requires 
2602 * {@link http://www.php.net/manual/en/book.filter.php the filter extenstion}, 
2603 * so it will improve compatibility with older PHP versions.
2617 * For PHP 5 < 5.1.0 (backward compatibility)
2618 * (from {@link http://www.php.net/manual/en/function.htmlspecialchars-decode.php#82133})
2619 * 
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21