PageRenderTime 330ms queryTime 34ms sortTime 7ms getByIdsTime 99ms findMatchingLines 130ms

100+ results results for 'php is_bool repo:magedeveloper/frosted-mysql-library' (330 ms)

Not the results you expected?
Unit_test.php https://gitlab.com/ricoru21/py_incidencia | PHP | 383 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
92
                    
93		if (in_array($expected, array('is_object', 'is_string', 'is_bool', 'is_true', 'is_false', 'is_int', 'is_numeric', 'is_float', 'is_double', 'is_array', 'is_null'), TRUE))
                    
94		{
                    
373{
                    
374	return (is_bool($test) AND $test === TRUE) ? TRUE : FALSE;
                    
375}
                    
377{
                    
378	return (is_bool($test) AND $test === FALSE) ? TRUE : FALSE;
                    
379}
                    
381
                    
382/* End of file Unit_test.php */
                    
383/* Location: ./system/libraries/Unit_test.php */
                    
                
Font.php https://bitbucket.org/ite/on-track-code-base.git | PHP | 640 lines
                    
22 * @package	PHPExcel_Style
                    
23 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license	http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
33 * @package	PHPExcel_Style
                    
34 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
35 */
                    
36class PHPExcel_Style_Font implements PHPExcel_IComparable
                    
37{
                    
153			$this->_strikethrough	= NULL;
                    
154			$this->_color			= new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor, $isConditional);
                    
155		} else {
                    
155		} else {
                    
156			$this->_color	= new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor);
                    
157		}
                    
                
Grammar.php https://gitlab.com/madwanz64/laravel | PHP | 286 lines
                    
1<?php
                    
2
                    
245
                    
246        return is_bool($value)
                    
247                    ? "'".(int) $value."'"
                    
                
arrayhelper.php https://github.com/nikosdion/Akeeba-Example.git | PHP | 461 lines
                    
1<?php
                    
2/**
                    
400
                    
401			if ((is_bool($va) or is_numeric($va)) and (is_bool($vb) or is_numeric($vb)))
                    
402			{
                    
436	 *
                    
437	 * @see     http://php.net/manual/en/function.array-unique.php
                    
438	 * @since   11.2
                    
                
XmlDescriptor.php https://bitbucket.org/esnaute/laravel.git | PHP | 212 lines
                    
1<?php
                    
2
                    
41        $objectXML->appendChild($defaultsXML = $dom->createElement('defaults'));
                    
42        $defaults = is_array($argument->getDefault()) ? $argument->getDefault() : (is_bool($argument->getDefault()) ? array(var_export($argument->getDefault(), true)) : ($argument->getDefault() ? array($argument->getDefault()) : array()));
                    
43        foreach ($defaults as $default) {
                    
73        if ($option->acceptValue()) {
                    
74            $defaults = is_array($option->getDefault()) ? $option->getDefault() : (is_bool($option->getDefault()) ? array(var_export($option->getDefault(), true)) : ($option->getDefault() ? array($option->getDefault()) : array()));
                    
75            $objectXML->appendChild($defaultsXML = $dom->createElement('defaults'));
                    
                
Serializer.php https://github.com/evert/SabreAMF.git | PHP | 269 lines
                    
1<?php
                    
2
                    
32               if (!$type && is_null($data))    $type = SabreAMF_AMF3_Const::DT_NULL;
                    
33               if (!$type && is_bool($data))    {
                    
34                    $type = $data?SabreAMF_AMF3_Const::DT_BOOL_TRUE:SabreAMF_AMF3_Const::DT_BOOL_FALSE;
                    
                
actions.class.php https://github.com/appflower/appflower_studio.git | PHP | 240 lines
                    
1<?php
                    
2/**
                    
116        
                    
117        if (is_bool($validate) && $validate === true && empty($aErrors)) {
                    
118            // if password has been setted encoding using rule
                    
                
XmlDescriptor.php https://gitlab.com/jjpa2018/dashboard | PHP | 247 lines
                    
1<?php
                    
2
                    
193        $objectXML->appendChild($defaultsXML = $dom->createElement('defaults'));
                    
194        $defaults = \is_array($argument->getDefault()) ? $argument->getDefault() : (\is_bool($argument->getDefault()) ? [var_export($argument->getDefault(), true)] : ($argument->getDefault() ? [$argument->getDefault()] : []));
                    
195        foreach ($defaults as $default) {
                    
222        if ($option->acceptValue()) {
                    
223            $defaults = \is_array($option->getDefault()) ? $option->getDefault() : (\is_bool($option->getDefault()) ? [var_export($option->getDefault(), true)] : ($option->getDefault() ? [$option->getDefault()] : []));
                    
224            $objectXML->appendChild($defaultsXML = $dom->createElement('defaults'));
                    
                
Attribute.php https://gitlab.com/reasonat/test8 | PHP | 345 lines
                    
1<?php
                    
2
                    
131    }
                    
132    elseif (is_bool($value)) {
                    
133      $value = new AttributeBoolean($name, $value);
                    
                
Xml.php https://github.com/relaxnow/DbPatch.git | PHP | 286 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: Xml.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Config.php';
                    
26
                    
70        if (empty($xml)) {
                    
71            require_once 'Zend/Config/Exception.php';
                    
72            throw new Zend_Config_Exception('Filename is not set');
                    
75        $allowModifications = false;
                    
76        if (is_bool($options)) {
                    
77            $allowModifications = $options;
                    
96        if ($this->_loadFileErrorStr !== null) {
                    
97            require_once 'Zend/Config/Exception.php';
                    
98            throw new Zend_Config_Exception($this->_loadFileErrorStr);
                    
                
notificationmail.class.php https://github.com/ardowz/Thesis-SideB.git | PHP | 250 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * @version $Id: notificationmail.class.php 14684 2011-06-11 06:32:40Z remi $
                    
4 -------------------------------------------------------------------------
                    
39
                    
40require_once(GLPI_PHPMAILER_DIR . "/class.phpmailer.php");
                    
41
                    
42/**
                    
43 *  NotificationMail class extends phpmail and implements the NotificationInterface
                    
44**/
                    
44**/
                    
45class NotificationMail extends phpmailer implements NotificationInterface {
                    
46
                    
72      // Comes from config
                    
73      $this->SetLanguage("en", GLPI_PHPMAILER_DIR . "/language/");
                    
74
                    
                
Properties.php https://github.com/tmccormi/openemr.git | PHP | 629 lines
                    
1<?php
                    
2
                    
2
                    
3namespace PhpOffice\PhpSpreadsheet\Document;
                    
4
                    
470                $propertyType = self::PROPERTY_TYPE_INTEGER;
                    
471            } elseif (is_bool($propertyValue)) {
                    
472                $propertyType = self::PROPERTY_TYPE_BOOLEAN;
                    
486    /**
                    
487     * Implement PHP __clone to create a deep clone, not just a shallow copy.
                    
488     */
                    
                
yaf_config.c https://gitlab.com/oytunistrator/yaf | C | 405 lines
                    
7  | available through the world-wide-web at the following url:           |
                    
8  | http://www.php.net/license/3_01.txt                                  |
                    
9  | If you did not receive a copy of the PHP license and are unable to   |
                    
10  | obtain it through the world-wide-web, please send a note to          |
                    
11  | license@php.net so we can mail you a copy immediately.               |
                    
12  +----------------------------------------------------------------------+
                    
12  +----------------------------------------------------------------------+
                    
13  | Author: Xinchen Hui  <laruence@php.net>                              |
                    
14  +----------------------------------------------------------------------+
                    
23#include "php_ini.h"
                    
24#include "standard/php_filestat.h" /* for php_stat */
                    
25
                    
25
                    
26#include "php_yaf.h"
                    
27#include "yaf_namespace.h"
                    
                
UrlGenerator.php https://gitlab.com/reasonat/test8 | PHP | 341 lines
                    
1<?php
                    
2
                    
52     *
                    
53     * PHP's rawurlencode() encodes all chars except "a-zA-Z0-9-._~" according to RFC 3986. But we want to allow some chars
                    
54     * to be used in their literal form (reasons below). Other chars inside the path must of course be encoded, e.g.
                    
145    {
                    
146        if (is_bool($referenceType) || is_string($referenceType)) {
                    
147            @trigger_error('The hardcoded value you are using for the $referenceType argument of the '.__CLASS__.'::generate method is deprecated since version 2.8 and will not be supported anymore in 3.0. Use the constants defined in the UrlGeneratorInterface instead.', E_USER_DEPRECATED);
                    
                
Serializer.php https://bitbucket.org/acidel/buykoala.git | PHP | 362 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Serializer.php 21968 2010-04-22 03:53:34Z matthew $
                    
21 */
                    
23/** Zend_Amf_Constants */
                    
24#require_once 'Zend/Amf/Constants.php';
                    
25
                    
26/** @see Zend_Amf_Parse_Serializer */
                    
27#require_once 'Zend/Amf/Parse/Serializer.php';
                    
28
                    
29/**
                    
30 * Serializer PHP misc types back to there corresponding AMF0 Type Marker.
                    
31 *
                    
65    {
                    
66        // Workaround for PHP5 with E_STRICT enabled complaining about "Only 
                    
67        // variables should be passed by reference" 
                    
                
Xml.php https://bitbucket.org/code_noodle/cakephp.git | PHP | 370 lines
                    
1<?php
                    
2/**
                    
6 *
                    
7 * PHP 5
                    
8 *
                    
8 *
                    
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
10 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @link          http://cakephp.org CakePHP(tm) Project
                    
17 * @package       Cake.Utility
                    
17 * @package       Cake.Utility
                    
18 * @since         CakePHP v .0.10.3.1400
                    
19 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
233							// http://www.w3.org/TR/REC-xml/#syntax
                    
234							// https://bugs.php.net/bug.php?id=36795
                    
235							$child = $dom->createElement($key, '');
                    
                
Serializer.php https://github.com/Riges/KawaiViewModel.git | PHP | 362 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Serializer.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
23/** Zend_Amf_Constants */
                    
24require_once 'Zend/Amf/Constants.php';
                    
25
                    
26/** @see Zend_Amf_Parse_Serializer */
                    
27require_once 'Zend/Amf/Parse/Serializer.php';
                    
28
                    
29/**
                    
30 * Serializer PHP misc types back to there corresponding AMF0 Type Marker.
                    
31 *
                    
65    {
                    
66        // Workaround for PHP5 with E_STRICT enabled complaining about "Only
                    
67        // variables should be passed by reference"
                    
                
Service.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 473 lines
                    
1<?php
                    
2/**
                    
23 */
                    
24#require_once 'Zend/Json/Server/Smd.php';
                    
25
                    
30 * @subpackage Server
                    
31 * @version    $Id: Service.php 12510 2008-11-10 16:29:34Z matthew $
                    
32 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
                    
68        'name'        => 'is_string',
                    
69        'optional'    => 'is_bool',
                    
70        'default'     => null,
                    
132        if (null == $this->getName()) {
                    
133            #require_once 'Zend/Json/Server/Exception.php';
                    
134            throw new Zend_Json_Server_Exception('SMD service description requires a name; none provided');
                    
169        if (!preg_match($this->_nameRegex, $name)) {
                    
170            #require_once 'Zend/Json/Server/Exception.php';
                    
171            throw new Zend_Json_Server_Exception(sprintf('Invalid name "%s" provided for service; must follow PHP method naming conventions', $name));
                    
                
pdo_mysql_prepare_native.php https://gitlab.com/iranjith4/hhvm | PHP | 332 lines
                    
1<?php
                    
2	require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
                    
45
                    
46			if (!is_bool($ret))
                    
47				printf("[%03d] PDO::execute() should return a boolean value, got %s/%s\n",
                    
327?>
                    
328<?php
                    
329require dirname(__FILE__) . '/mysql_pdo_test.inc';
                    
                
Serializer.php https://gitlab.com/devtoannh/cafe | PHP | 362 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Serializer.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
23/** Zend_Amf_Constants */
                    
24require_once 'Zend/Amf/Constants.php';
                    
25
                    
26/** @see Zend_Amf_Parse_Serializer */
                    
27require_once 'Zend/Amf/Parse/Serializer.php';
                    
28
                    
29/**
                    
30 * Serializer PHP misc types back to there corresponding AMF0 Type Marker.
                    
31 *
                    
65    {
                    
66        // Workaround for PHP5 with E_STRICT enabled complaining about "Only
                    
67        // variables should be passed by reference"
                    
                
Logical.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 288 lines
                    
22 * @package		PHPExcel_Calculation
                    
23 * @copyright	Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license		http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
28
                    
29/** PHPExcel root directory */
                    
30if (!defined('PHPEXCEL_ROOT')) {
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
43 * @package		PHPExcel_Calculation
                    
44 * @copyright	Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
45 */
                    
119					$arg = TRUE;
                    
120				} elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {
                    
121					$arg = FALSE;
                    
                
Xml.php https://bitbucket.org/hmancvs/farmis.git | PHP | 296 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: Xml.php,v 1.1 2011/11/03 08:29:27 smusoke Exp $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Config.php';
                    
26
                    
80        if (empty($xml)) {
                    
81            require_once 'Zend/Config/Exception.php';
                    
82            throw new Zend_Config_Exception('Filename is not set');
                    
85        $allowModifications = false;
                    
86        if (is_bool($options)) {
                    
87            $allowModifications = $options;
                    
106        if ($this->_loadFileErrorStr !== null) {
                    
107            require_once 'Zend/Config/Exception.php';
                    
108            throw new Zend_Config_Exception($this->_loadFileErrorStr);
                    
                
PhpFormBuilder.php https://gitlab.com/em645jn/brochure | PHP | 539 lines
                    
1<?php
                    
2
                    
4
                    
5class PhpFormBuilder {
                    
6
                    
110			case 'add_submit':
                    
111				if ( ! is_bool( $val ) ) {
                    
112					return false;
                    
116			case 'add_nonce':
                    
117				if ( ! is_string( $val ) && ! is_bool( $val ) ) {
                    
118					return false;
                    
                
Logical.php https://gitlab.com/ptisky/API_prestashop | PHP | 288 lines
                    
22 * @package		PHPExcel_Calculation
                    
23 * @copyright	Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license		http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
28
                    
29/** PHPExcel root directory */
                    
30if (!defined('PHPEXCEL_ROOT')) {
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
43 * @package		PHPExcel_Calculation
                    
44 * @copyright	Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
45 */
                    
119					$arg = TRUE;
                    
120				} elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {
                    
121					$arg = FALSE;
                    
                
Service.php https://github.com/tuteke/isaved.git | PHP | 473 lines
                    
1<?php
                    
2/**
                    
23 */
                    
24#require_once 'Zend/Json/Server/Smd.php';
                    
25
                    
30 * @subpackage Server
                    
31 * @version    $Id: Service.php 16214 2009-06-21 19:34:03Z thomas $
                    
32 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
                    
68        'name'        => 'is_string',
                    
69        'optional'    => 'is_bool',
                    
70        'default'     => null,
                    
132        if (null == $this->getName()) {
                    
133            #require_once 'Zend/Json/Server/Exception.php';
                    
134            throw new Zend_Json_Server_Exception('SMD service description requires a name; none provided');
                    
169        if (!preg_match($this->_nameRegex, $name)) {
                    
170            #require_once 'Zend/Json/Server/Exception.php';
                    
171            throw new Zend_Json_Server_Exception(sprintf('Invalid name "%s" provided for service; must follow PHP method naming conventions', $name));
                    
                
DbTable.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 445 lines
                    
1<?php
                    
2/**
                    
187            $this->ambiguityIdentity = (1 === $flag ? true : false);
                    
188        } elseif (is_bool($flag)) {
                    
189            $this->ambiguityIdentity = $flag;
                    
                
Service.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 494 lines
                    
1<?php
                    
2/**
                    
23 */
                    
24require_once 'Zend/Json/Server/Smd.php';
                    
25
                    
30 * @subpackage Server
                    
31 * @version    $Id: Service.php 24593 2012-01-05 20:35:02Z matthew $
                    
32 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
                    
68        'name'        => 'is_string',
                    
69        'optional'    => 'is_bool',
                    
70        'default'     => null,
                    
133        if (null == $this->getName()) {
                    
134            require_once 'Zend/Json/Server/Exception.php';
                    
135            throw new Zend_Json_Server_Exception( 'SMD service description requires a name; none provided' );
                    
173        if (!preg_match($this->_nameRegex, $name)) {
                    
174            require_once 'Zend/Json/Server/Exception.php';
                    
175            throw new Zend_Json_Server_Exception( sprintf('Invalid name "%s" provided for service; must follow PHP method naming conventions', $name) );
                    
                
main.php https://gitlab.com/dali99/shimmie2-Material-Theme | PHP | 371 lines
                    
1<?php
                    
2/*
                    
122	public function __construct(Image $image, $locked) {
                    
123		assert(is_bool($locked));
                    
124		$this->image = $image;
                    
                
Logical.php https://gitlab.com/0sajib0/NECI | PHP | 288 lines
                    
22 * @package		PHPExcel_Calculation
                    
23 * @copyright	Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license		http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
28
                    
29/** PHPExcel root directory */
                    
30if (!defined('PHPEXCEL_ROOT')) {
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
43 * @package		PHPExcel_Calculation
                    
44 * @copyright	Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
45 */
                    
119					$arg = TRUE;
                    
120				} elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {
                    
121					$arg = FALSE;
                    
                
Item.php https://github.com/rockerest/capstone.git | PHP | 339 lines
                    
1<?php
                    
2	require_once('connect.php');
                    
2	require_once('connect.php');
                    
3	require_once('Ingredient.php');
                    
4	require_once('Characteristic.php');
                    
4	require_once('Characteristic.php');
                    
5	require_once('Rating.php');
                    
6	require_once('View.php');
                    
6	require_once('View.php');
                    
7	require_once('Category.php');
                    
8	require_once('Search.php');
                    
276			
                    
277			$chars = is_array($this->characteristics) ? $this->characteristics : (is_bool($this->characteristics) ? array() : array($this->characteristics));
                    
278			$recs = is_array($this->recommendations) ? $this->recommendations : (is_bool($this->recommendations) ? array() : array($this->recommendations));
                    
278			$recs = is_array($this->recommendations) ? $this->recommendations : (is_bool($this->recommendations) ? array() : array($this->recommendations));
                    
279			$ings = is_array($this->ingredients) ? $this->ingredients : (is_bool($this->ingredients) ? array() : array($this->ingredients));
                    
280			
                    
                
Logical.php https://github.com/andrerezende/SIE.git | PHP | 290 lines
                    
22 * @package		PHPExcel_Calculation
                    
23 * @copyright	Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license		http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
28
                    
29/** PHPExcel root directory */
                    
30if (!defined('PHPEXCEL_ROOT')) {
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
43 * @package		PHPExcel_Calculation
                    
44 * @copyright	Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
45 */
                    
119					$arg = true;
                    
120				} elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {
                    
121					$arg = false;
                    
                
Logical.php https://github.com/testlinkjp/testlink-japanese-localization.git | PHP | 290 lines
                    
22 * @package		PHPExcel_Calculation
                    
23 * @copyright	Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license		http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
28
                    
29/** PHPExcel root directory */
                    
30if (!defined('PHPEXCEL_ROOT')) {
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
43 * @package		PHPExcel_Calculation
                    
44 * @copyright	Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
45 */
                    
119					$arg = true;
                    
120				} elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {
                    
121					$arg = false;
                    
                
EventQuery.php https://github.com/Exercise/zf2.git | PHP | 485 lines
                    
1<?php
                    
2/**
                    
393        if ($value !== null) {
                    
394            if (is_bool($value)) {
                    
395                $this->_params['singleevents'] = ($value?'true':'false');
                    
440        if ($value !== null) {
                    
441            if (is_bool($value)) {
                    
442                $this->_params['futureevents'] = ($value?'true':'false');
                    
                
Serializer.php https://github.com/Exercise/zf2.git | PHP | 365 lines
                    
1<?php
                    
2/**
                    
33/**
                    
34 * Serializer PHP misc types back to there corresponding AMF0 Type Marker.
                    
35 *
                    
73    {
                    
74        // Workaround for PHP5 with E_STRICT enabled complaining about "Only 
                    
75        // variables should be passed by reference" 
                    
133                    break;
                    
134                case (is_bool($data)):
                    
135                    $markerType = Amf\Constants::AMF0_BOOLEAN;
                    
202    {
                    
203        // Workaround for PHP5 with E_STRICT enabled complaining about "Only 
                    
204        // variables should be passed by reference"
                    
227    /**
                    
228     * Write a PHP array with string or mixed keys.
                    
229     *
                    
                
axis_label_centered.php https://gitlab.com/OnBlox/OnBlox-Template | PHP | 282 lines
                    
1<?php
                    
2/**
                    
74            case 'showZeroValue':
                    
75                if ( !is_bool( $propertyValue ) )
                    
76                {
                    
                
Serializer.php https://github.com/Spavacz/NPG.git | PHP | 362 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Serializer.php 21969 2010-04-22 03:54:59Z matthew $
                    
21 */
                    
23/** Zend_Amf_Constants */
                    
24require_once 'Zend/Amf/Constants.php';
                    
25
                    
26/** @see Zend_Amf_Parse_Serializer */
                    
27require_once 'Zend/Amf/Parse/Serializer.php';
                    
28
                    
29/**
                    
30 * Serializer PHP misc types back to there corresponding AMF0 Type Marker.
                    
31 *
                    
65    {
                    
66        // Workaround for PHP5 with E_STRICT enabled complaining about "Only 
                    
67        // variables should be passed by reference" 
                    
                
Yaml.php https://github.com/kervin/kyzstudio.git | PHP | 382 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: Yaml.php 23294 2010-11-05 00:27:34Z ramon $
                    
20 */
                    
24 */
                    
25#require_once 'Zend/Config.php';
                    
26
                    
101        if (!is_callable($yamlDecoder)) {
                    
102            #require_once 'Zend/Config/Exception.php';
                    
103            throw new Zend_Config_Exception('Invalid parameter to setYamlDecoder() - must be callable');
                    
133        if (empty($yaml)) {
                    
134            #require_once 'Zend/Config/Exception.php';
                    
135            throw new Zend_Config_Exception('Filename is not set');
                    
139        $allowModifications = false;
                    
140        if (is_bool($options)) {
                    
141            $allowModifications = $options;
                    
                
HtmlBuilder.php https://gitlab.com/alamgircsejnu/AMS-Project-Laravel | PHP | 568 lines
                    
1<?php
                    
2
                    
80
                    
81        return $this->toHtmlString('<script' . $this->attributes($attributes) . '></script>' . PHP_EOL);
                    
82    }
                    
100
                    
101        return $this->toHtmlString('<link' . $this->attributes($attributes) . '>' . PHP_EOL);
                    
102    }
                    
138
                    
139        return $this->toHtmlString('<link' . $this->attributes($attributes) . '>' . PHP_EOL);
                    
140    }
                    
451        // Treat boolean attributes as HTML properties
                    
452        if (is_bool($value)) {
                    
453            return $value ? $key : '';
                    
526        $content = is_array($content) ? implode(PHP_EOL, $content) : $content;
                    
527        return $this->toHtmlString('<' . $tag . $this->attributes($attributes) . '>' . PHP_EOL . $this->toHtmlString($content) . PHP_EOL . '</' . $tag . '>' . PHP_EOL);
                    
528    }
                    
                
Serializer.php https://github.com/basdog22/Qool.git | PHP | 362 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Serializer.php 24594 2012-01-05 21:27:01Z matthew $
                    
21 */
                    
23/** Zend_Amf_Constants */
                    
24require_once 'Zend/Amf/Constants.php';
                    
25
                    
26/** @see Zend_Amf_Parse_Serializer */
                    
27require_once 'Zend/Amf/Parse/Serializer.php';
                    
28
                    
29/**
                    
30 * Serializer PHP misc types back to there corresponding AMF0 Type Marker.
                    
31 *
                    
65    {
                    
66        // Workaround for PHP5 with E_STRICT enabled complaining about "Only
                    
67        // variables should be passed by reference"
                    
                
Ini.php https://gitlab.com/Ltaimao/wecenter | PHP | 309 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26//require_once 'Zend/Config.php';
                    
27
                    
106             */
                    
107            //require_once 'Zend/Config/Exception.php';
                    
108            throw new Zend_Config_Exception('Filename is not set');
                    
111        $allowModifications = false;
                    
112        if (is_bool($options)) {
                    
113            $allowModifications = $options;
                    
149                     */
                    
150                    //require_once 'Zend/Config/Exception.php';
                    
151                    throw new Zend_Config_Exception("Section '$sectionName' cannot be found in $filename");
                    
180             */
                    
181            //require_once 'Zend/Config/Exception.php';
                    
182            throw new Zend_Config_Exception($this->_loadFileErrorStr);
                    
                
containable.php https://github.com/jasoneh/SMS-Can-.git | PHP | 441 lines
                    
1<?php
                    
2/* SVN FILE: $Id$ */
                    
8 *
                    
9 * PHP versions 4 and 5
                    
10 *
                    
10 *
                    
11 * CakePHP(tm) :  Rapid Development Framework (http://www.cakephp.org)
                    
12 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
                    
18 * @copyright     Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
                    
19 * @link          http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
                    
20 * @package       cake
                    
21 * @subpackage    cake.cake.console.libs
                    
22 * @since         CakePHP(tm) v 1.2.0.5669
                    
23 * @version       $Revision$
                    
118		}
                    
119		if ((isset($contain[0]) && is_bool($contain[0])) || is_bool(end($contain))) {
                    
120			$reset = is_bool(end($contain))
                    
                
Grammar.php https://gitlab.com/Sigpot/AirSpot | PHP | 459 lines
                    
1<?php
                    
2
                    
248
                    
249        if (is_bool($value)) {
                    
250            return "'".(int) $value."'";
                    
                
Logger.php https://gitlab.com/hoanghung.dev/phunuvadoisong.com | PHP | 456 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Logger.php
                    
4 *
                    
362			// Convert true/false to string
                    
363			if (is_bool($arg)) {
                    
364				$arg = $arg ? "true" : "false";
                    
                
Util.php https://gitlab.com/oytunistrator/92five | PHP | 265 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * PHP_CodeCoverage
                    
4 *
                    
4 *
                    
5 * Copyright (c) 2009-2014, Sebastian Bergmann <sebastian@phpunit.de>.
                    
6 * All rights reserved.
                    
36 *
                    
37 * @category   PHP
                    
38 * @package    CodeCoverage
                    
38 * @package    CodeCoverage
                    
39 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
40 * @copyright  2009-2014 Sebastian Bergmann <sebastian@phpunit.de>
                    
41 * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License
                    
42 * @link       http://github.com/sebastianbergmann/php-code-coverage
                    
43 * @since      File available since Release 1.0.0
                    
                
soundcloud.php https://gitlab.com/Gashler/sg | PHP | 261 lines
                    
1<?php
                    
2/*
                    
146function soundcloud_booleanize( $value ) {
                    
147	return is_bool( $value ) ? $value : $value === 'true' ? true : false;
                    
148}
                    
242		foreach ( $matches as $match ) {
                    
243			$args = parse_url( html_entity_decode( $match[1] ), PHP_URL_QUERY );
                    
244			$args = wp_parse_args( $args );
                    
251			$content = preg_replace( $replace_regex, sprintf( "\n\n%s\n\n", $shortcode ), $content );
                    
252			/** This action is documented in modules/shortcodes/youtube.php */
                    
253			do_action( 'jetpack_embed_to_shortcode', 'soundcloud', $url_matches[0] );
                    
                
IsFloat.php https://gitlab.com/yousafsyed/easternglamor | PHP | 253 lines
                    
1<?php
                    
2/**
                    
59            throw new I18nException\ExtensionNotLoadedException(
                    
60                sprintf('%s component requires the intl PHP extension', __NAMESPACE__)
                    
61            );
                    
103     * Returns true if and only if $value is a floating-point value. Uses the formal definition of a float as described
                    
104     * in the PHP manual: {@link http://www.php.net/float}
                    
105     *
                    
111    {
                    
112        if (!is_scalar($value) || is_bool($value)) {
                    
113            $this->error(self::INVALID);
                    
216         *       of the string - i.e. 10,6 is not valid for en-US.
                    
217         * @see http://www.php.net/float
                    
218         */
                    
                
Yaml.php https://github.com/StefanRHRO/SCRM.git | PHP | 381 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: Yaml.php 24092 2011-05-31 02:43:28Z adamlundrigan $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Config.php';
                    
26
                    
101        if (!is_callable($yamlDecoder)) {
                    
102            require_once 'Zend/Config/Exception.php';
                    
103            throw new Zend_Config_Exception('Invalid parameter to setYamlDecoder() - must be callable');
                    
133        if (empty($yaml)) {
                    
134            require_once 'Zend/Config/Exception.php';
                    
135            throw new Zend_Config_Exception('Filename is not set');
                    
139        $allowModifications = false;
                    
140        if (is_bool($options)) {
                    
141            $allowModifications = $options;
                    
                
Ini.php https://github.com/hansdubois/Docblox.git | PHP | 293 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Ini.php 16201 2009-06-21 18:51:15Z thomas $
                    
20 */
                    
25 */
                    
26require_once 'Zend/Config.php';
                    
27
                    
105             */
                    
106            require_once 'Zend/Config/Exception.php';
                    
107            throw new Zend_Config_Exception('Filename is not set');
                    
110        $allowModifications = false;
                    
111        if (is_bool($options)) {
                    
112            $allowModifications = $options;
                    
148                     */
                    
149                    require_once 'Zend/Config/Exception.php';
                    
150                    throw new Zend_Config_Exception("Section '$sectionName' cannot be found in $filename");
                    
                
theme.php https://gitlab.com/dali99/shimmie2-Material-Theme | PHP | 323 lines
                    
1<?php
                    
2class CommentListTheme extends Themelet {
                    
30
                    
31		// aaaaaaargh php
                    
32		assert(is_array($images));
                    
34		assert(is_numeric($total_pages));
                    
35		assert(is_bool($can_post));
                    
36
                    
                
Database.php https://github.com/drawrof/hullowrld.git | PHP | 689 lines
                    
1<?php defined('ROOT') OR die('No direct access allowed.');
                    
2/**
                    
4 *
                    
5 * $Id: Database.php 3917 2009-01-21 03:06:22Z zombor $
                    
6 *
                    
9 * @copyright  (c) 2007-2008 Kohana Team
                    
10 * @license    http://kohanaphp.com/license.html
                    
11 */
                    
160			}
                    
161			elseif (is_bool($value))
                    
162			{
                    
                
PHPArray.php https://github.com/rogerwu99/punch_bantana.git | PHP | 258 lines
                    
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: PHPArray.php 306488 2010-12-20 08:45:09Z cweiske $
                    
19
                    
20/**
                    
21* Config parser for common PHP configuration array
                    
22* such as found in the horde project.
                    
                
functions.php https://github.com/foxluck/otdelstroy.git | PHP | 502 lines
                    
1<?php
                    
2/*****************************************************************************
                    
7*****************************************************************************/
                    
8?><?php
                    
9//frequently used functions
                    
28
                    
29	fputs( $f, "<?php\n");
                    
30	fputs( $f, "\n");
                    
159}
                    
160//functions from xml_installer.php
                    
161function GetXmlTableNodeArray( $fileName )
                    
182		$columnSql=GetColumnSQL($xmlColumn, $isComplexPrimaryKey);
                    
183		if ( is_bool($columnSql) )
                    
184			return false;
                    
411{
                    
412	if ( is_bool($defaultValue) )
                    
413		return "";
                    
                
PaymentMethodGateway.php https://github.com/strangerstudios/paid-memberships-pro.git | PHP | 363 lines
                    
1<?php
                    
2namespace Braintree;
                    
108    {
                    
109        if (is_bool($attribs) === true) {
                    
110            $attribs = ['allow_vaulting' => $attribs];
                    
                
Yaml.php https://github.com/ianbogda/FileZ.git | PHP | 382 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: Yaml.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Config.php';
                    
26
                    
101        if (!is_callable($yamlDecoder)) {
                    
102            require_once 'Zend/Config/Exception.php';
                    
103            throw new Zend_Config_Exception('Invalid parameter to setYamlDecoder() - must be callable');
                    
133        if (empty($yaml)) {
                    
134            require_once 'Zend/Config/Exception.php';
                    
135            throw new Zend_Config_Exception('Filename is not set');
                    
139        $allowModifications = false;
                    
140        if (is_bool($options)) {
                    
141            $allowModifications = $options;
                    
                
DB_utility.php https://gitlab.com/billyprice1/Stikked | PHP | 423 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
183			$res = $this->db->query(sprintf($this->_optimize_table, $this->db->escape_identifiers($table_name)));
                    
184			if (is_bool($res))
                    
185			{
                    
217		$query = $this->db->query(sprintf($this->_repair_table, $this->db->escape_identifiers($table_name)));
                    
218		if (is_bool($query))
                    
219		{
                    
                
JsHelper.php https://github.com/gustavor/lore.git | PHP | 422 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP 5
                    
6 *
                    
6 *
                    
7 * CakePHP :  Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright 2005-2011, Cake Software Foundation, Inc.
                    
13 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://cakephp.org CakePHP(tm) Project
                    
15 * @package       Cake.View.Helper
                    
15 * @package       Cake.View.Helper
                    
16 * @since         CakePHP(tm) v 1.2
                    
17 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
128				$lastParam = $params[count($params) - 1];
                    
129				$hasBufferParam = (is_bool($lastParam) || is_array($lastParam) && isset($lastParam['buffer']));
                    
130				if ($hasBufferParam && is_bool($lastParam)) {
                    
                
Pdo.php https://github.com/ntulip/piwik.git | PHP | 439 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Pdo.php 18079 2009-09-11 17:46:45Z ralph $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Db/Statement.php';
                    
27
                    
59        } catch (PDOException $e) {
                    
60            require_once 'Zend/Db/Statement/Exception.php';
                    
61            throw new Zend_Db_Statement_Exception($e->getMessage(), $e->getCode(), $e);
                    
65    /**
                    
66     * Bind a column of the statement result set to a PHP variable.
                    
67     *
                    
69     *                       position or by name.
                    
70     * @param mixed  $param  Reference to the PHP variable containing the value.
                    
71     * @param mixed  $type   OPTIONAL
                    
                
zlib_arginfo.h https://github.com/php/php-src.git | C Header | 231 lines
                    
1/* This is a generated file, edit the .stub.php file instead.
                    
2 * Stub hash: 508af4dd8892e7d2e70d16f2365c21a0921922d8 */
                    
70
                    
71ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gzrewind, 0, 1, _IS_BOOL, 0)
                    
72	ZEND_ARG_INFO(0, stream)
                    
                
Yaml.php https://github.com/oveach/tuto-zf-doctrine2.git | PHP | 381 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: Yaml.php 24594 2012-01-05 21:27:01Z matthew $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Config.php';
                    
26
                    
101        if (!is_callable($yamlDecoder)) {
                    
102            require_once 'Zend/Config/Exception.php';
                    
103            throw new Zend_Config_Exception('Invalid parameter to setYamlDecoder() - must be callable');
                    
133        if (empty($yaml)) {
                    
134            require_once 'Zend/Config/Exception.php';
                    
135            throw new Zend_Config_Exception('Filename is not set');
                    
139        $allowModifications = false;
                    
140        if (is_bool($options)) {
                    
141            $allowModifications = $options;
                    
                
shBrushPhp.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 91 lines
                    
29 */
                    
30SyntaxHighlighter.brushes.Php = function()
                    
31{
                    
55					'gettimeofday gettype glob gmdate gmmktime ini_alter ini_get ini_get_all ini_restore ini_set '+
                    
56					'interface_exists intval ip2long is_a is_array is_bool is_callable is_dir is_double '+
                    
57					'is_executable is_file is_finite is_float is_infinite is_int is_integer is_link is_long '+
                    
86
                    
87	this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
                    
88};
                    
90SyntaxHighlighter.brushes.Php.prototype	= new SyntaxHighlighter.Highlighter();
                    
91SyntaxHighlighter.brushes.Php.aliases	= ['php'];
                    
92
                    
                
Yaml.php https://bitbucket.org/hmancvs/farmis.git | PHP | 381 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: Yaml.php,v 1.1 2011/11/03 08:29:27 smusoke Exp $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Config.php';
                    
26
                    
101        if (!is_callable($yamlDecoder)) {
                    
102            require_once 'Zend/Config/Exception.php';
                    
103            throw new Zend_Config_Exception('Invalid parameter to setYamlDecoder() - must be callable');
                    
133        if (empty($yaml)) {
                    
134            require_once 'Zend/Config/Exception.php';
                    
135            throw new Zend_Config_Exception('Filename is not set');
                    
139        $allowModifications = false;
                    
140        if (is_bool($options)) {
                    
141            $allowModifications = $options;
                    
                
agent.php https://bitbucket.org/codeyash/bootstrap.git | PHP | 537 lines
                    
1<?php
                    
2/**
                    
9 * @copyright  2010 - 2013 Fuel Development Team
                    
10 * @link       http://fuelphp.com
                    
11 */
                    
17 *
                    
18 * This class uses PHP's get_browser() to get details from the browsers user agent
                    
19 * string. If not available, it can use a coded alternative using the php_browscap.ini
                    
98			'enabled' => true,
                    
99			'url' => 'http://browsers.garykeith.com/stream.asp?Lite_PHP_BrowsCapINI',
                    
100			'method' => 'wrapper',
                    
438				curl_setopt($curl, CURLOPT_HEADER, 0);
                    
439				curl_setopt($curl, CURLOPT_USERAGENT, 'Fuel PHP framework - Agent class (http://fuelphp.com)');
                    
440				curl_setopt($curl, CURLOPT_URL, static::$config['browscap']['url']);
                    
445			case 'wrapper':
                    
446				ini_set('user_agent', 'Fuel PHP framework - Agent class (http://fuelphp.com)');
                    
447				try
                    
                
Output.php https://github.com/ikhattab/pyrocms.git | PHP | 450 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 *
                    
156	{
                    
157		$this->enable_profiler = (is_bool($val)) ? $val : TRUE;
                    
158	}
                    
448
                    
449/* End of file Output.php */
                    
450/* Location: ./system/core/Output.php */
                    
                
Dijit.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 356 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Dijit.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
23/** Zend_View_Helper_HtmlElement */
                    
24require_once 'Zend/View/Helper/HtmlElement.php';
                    
25
                    
244            if (array_key_exists($param, $params)) {
                    
245                require_once 'Zend/Json.php';
                    
246
                    
309    {
                    
310        if (!is_bool($item)) {
                    
311            return;
                    
                
renderer.php https://github.com/fusenigk/mantisbt-1.git | PHP | 248 lines
                    
1<?php
                    
2/**
                    
23 * <code>
                    
24 *   $wikidata = include 'tutorial_wikipedia_data.php';
                    
25 *   
                    
50 * - ezcGraphLineChartOptions
                    
51 * - ezcGraphPieChartOptions
                    
52 * - ezcGraphRadarChartOptions
                    
217            case 'shortAxis':
                    
218                if ( !is_bool( $propertyValue ) )
                    
219                {
                    
                
odbc_arginfo.h https://github.com/php/php-src.git | C Header | 377 lines
                    
1/* This is a generated file, edit the .stub.php file instead.
                    
2 * Stub hash: 27a50ba79ed632721ee458527ef543e4b44ee897 */
                    
6
                    
7ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_odbc_binmode, 0, 2, _IS_BOOL, 0)
                    
8	ZEND_ARG_INFO(0, statement)
                    
11
                    
12ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_odbc_longreadlen, 0, 2, _IS_BOOL, 0)
                    
13	ZEND_ARG_INFO(0, statement)
                    
21
                    
22ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_odbc_execute, 0, 1, _IS_BOOL, 0)
                    
23	ZEND_ARG_INFO(0, statement)
                    
41
                    
42#if defined(PHP_ODBC_HAVE_FETCH_HASH)
                    
43ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_odbc_fetch_object, 0, 1, stdClass, MAY_BE_FALSE)
                    
48
                    
49#if defined(PHP_ODBC_HAVE_FETCH_HASH)
                    
50ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_odbc_fetch_array, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
                    
                
SpecialSurvey.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 372 lines
                    
1<?php
                    
2
                    
7 * 
                    
8 * @file SpecialSurvey.php
                    
9 * @ingroup Survey
                    
342		foreach ( $this->mParams['options'] as $name => $value ) {
                    
343			if ( is_bool( $value ) ) {
                    
344				$value = $value ? '1' : '0';
                    
                
font.php https://github.com/fusenigk/mantisbt-1.git | PHP | 312 lines
                    
1<?php
                    
2/**
                    
23 * <code>
                    
24 *  $graph = new ezcGraphPieChart();
                    
25 *  $graph->title = 'Access statistics';
                    
214            case 'textShadow':
                    
215                if ( !is_bool( $propertyValue ) )
                    
216                {
                    
                
Ini.php https://github.com/taste/zf2.git | PHP | 193 lines
                    
1<?php
                    
2/**
                    
155            return $value;
                    
156        } elseif (is_bool($value)) {
                    
157            return ($value ? 'true' : 'false');
                    
                
Yaml.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 415 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: Yaml.php 25169 2012-12-22 12:23:11Z rob $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Config.php';
                    
26
                    
101        if (!is_callable($yamlDecoder)) {
                    
102            require_once 'Zend/Config/Exception.php';
                    
103            throw new Zend_Config_Exception('Invalid parameter to setYamlDecoder() - must be callable');
                    
133        if (empty($yaml)) {
                    
134            require_once 'Zend/Config/Exception.php';
                    
135            throw new Zend_Config_Exception('Filename is not set');
                    
139        $allowModifications = false;
                    
140        if (is_bool($options)) {
                    
141            $allowModifications = $options;
                    
                
ext_std_variable.cpp https://gitlab.com/0072016/0072016-PHP.LLC | C++ | 516 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   +----------------------------------------------------------------------+
                    
                
Ini.php https://github.com/orchestra-io/sample-openx.git | PHP | 293 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Ini.php 14667 2009-04-05 09:18:21Z rob $
                    
20 */
                    
25 */
                    
26require_once 'Zend/Config.php';
                    
27
                    
105             */
                    
106            require_once 'Zend/Config/Exception.php';
                    
107            throw new Zend_Config_Exception('Filename is not set');
                    
110        $allowModifications = false;
                    
111        if (is_bool($options)) {
                    
112            $allowModifications = $options;
                    
148                     */
                    
149                    require_once 'Zend/Config/Exception.php';
                    
150                    throw new Zend_Config_Exception("Section '$sectionName' cannot be found in $filename");
                    
                
Model.php https://github.com/rudiedirkx/Rudie-on-wheels.git | PHP | 502 lines
                    
1<?php
                    
2
                    
103			// allow reverse arguments: justFirst in $params
                    
104			$justFirst = is_bool($params) ? $params : false;
                    
105			$params = $_jf;
                    
                
Service.php https://bitbucket.org/netglue/zf-1.12-release.git | PHP | 473 lines
                    
1<?php
                    
2/**
                    
23 */
                    
24require_once 'Zend/Json/Server/Smd.php';
                    
25
                    
68        'name'        => 'is_string',
                    
69        'optional'    => 'is_bool',
                    
70        'default'     => null,
                    
132        if (null == $this->getName()) {
                    
133            require_once 'Zend/Json/Server/Exception.php';
                    
134            throw new Zend_Json_Server_Exception('SMD service description requires a name; none provided');
                    
169        if (!preg_match($this->_nameRegex, $name)) {
                    
170            require_once 'Zend/Json/Server/Exception.php';
                    
171            throw new Zend_Json_Server_Exception(sprintf('Invalid name "%s" provided for service; must follow PHP method naming conventions', $name));
                    
197        if (!in_array($transport, $this->_transportTypes)) {
                    
198            require_once 'Zend/Json/Server/Exception.php';
                    
199            throw new Zend_Json_Server_Exception(sprintf('Invalid transport "%s"; please select one of (%s)', $transport, implode(', ', $this->_transportTypes)));
                    
                
TinySrc.php https://gitlab.com/devtoannh/cafe | PHP | 317 lines
                    
1<?php
                    
2/**
                    
22/** Zend_View_Helper_HtmlElement */
                    
23require_once 'Zend/View/Helper/HtmlElement.php';
                    
24
                    
188        if (!in_array($format, array('png', 'jpeg'))) {
                    
189            require_once 'Zend/View/Exception.php';
                    
190            throw new Zend_View_Exception('Invalid format; must be one of "jpeg" or "png"');
                    
215        if (!$this->_validateDimension($width)) {
                    
216            require_once 'Zend/View/Exception.php';
                    
217            throw new Zend_View_Exception('Invalid dimension; must be an integer, optionally preceded by "-" or "x"');
                    
225        if (!$this->_validateDimension($height)) {
                    
226            require_once 'Zend/View/Exception.php';
                    
227            throw new Zend_View_Exception('Invalid dimension; must be an integer, optionally preceded by "-" or "x"');
                    
264    {
                    
265        if (!is_scalar($dim) || is_bool($dim)) {
                    
266            return false;
                    
                
Serializer.php https://github.com/iulianmanole/dcms.git | PHP | 342 lines
                    
1<?php
                    
2/**
                    
22/** Zend_Amf_Parse_Serializer */
                    
23require_once 'Zend/Amf/Parse/Serializer.php';
                    
24
                    
25/** Zend_Amf_Parse_TypeLoader */
                    
26require_once 'Zend/Amf/Parse/TypeLoader.php';
                    
27
                    
28/**
                    
29 * Detect PHP object type and convert it to a corresponding AMF3 object type
                    
30 *
                    
38    /**
                    
39     * Serialize PHP types to AMF3 and write to stream
                    
40     *
                    
42     * auto negotiates the type or use the user defined markerType to
                    
43     * serialize the data from php back to AMF3
                    
44     *
                    
                
SqlServerGrammar.php https://gitlab.com/nmhieucoder/laravel_tintuc | PHP | 532 lines
                    
1<?php
                    
2
                    
142    {
                    
143        return is_bool($binding) ? json_encode($binding) : $binding;
                    
144    }
                    
                
generic-helper.class.php https://gitlab.com/haque.mdmanzurul/soundkreationsfinal | PHP | 367 lines
                    
1<?php
                    
2/**
                    
157			$output = "";
                    
158			if($print) $output .=  "\n<script type='text/javascript' class='av-php-sent-to-frontend'>/* <![CDATA[ */ \n";
                    
159			
                    
177				{
                    
178					if(!is_numeric($object) && !is_bool($object)) $object = json_encode($object);
                    
179					if(empty($object)) $object = "false";
                    
                
Output.php https://gitlab.com/sittipongwork/impro_dashboard | PHP | 575 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
97		// Get mime types for later
                    
98		if (defined('ENVIRONMENT') AND file_exists(APPPATH.'config/'.ENVIRONMENT.'/mimes.php'))
                    
99		{
                    
99		{
                    
100		    include APPPATH.'config/'.ENVIRONMENT.'/mimes.php';
                    
101		}
                    
103		{
                    
104			include APPPATH.'config/mimes.php';
                    
105		}
                    
265	{
                    
266		$this->enable_profiler = (is_bool($val)) ? $val : TRUE;
                    
267
                    
                
Converter.php https://gitlab.com/devtoannh/cafe | PHP | 397 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Converter.php 24354 2011-08-05 07:36:38Z sgehrig $
                    
20 */
                    
38     *
                    
39     * @see Net_LDAP2_Util::asc2hex32() from Benedikt Hallinger <beni@php.net>
                    
40     * @link http://pear.php.net/package/Net_LDAP2
                    
40     * @link http://pear.php.net/package/Net_LDAP2
                    
41     * @author Benedikt Hallinger <beni@php.net>
                    
42     *
                    
61     *
                    
62     * @see Net_LDAP2_Util::hex2asc() from Benedikt Hallinger <beni@php.net>,
                    
63     * heavily based on work from DavidSmith@byu.net
                    
63     * heavily based on work from DavidSmith@byu.net
                    
64     * @link http://pear.php.net/package/Net_LDAP2
                    
65     * @author Benedikt Hallinger <beni@php.net>, heavily based on work from DavidSmith@byu.net
                    
                
Debugtoolbar.php https://github.com/smgladkovskiy/debug-toolbar.git | PHP | 483 lines
                    
317	/**
                    
318	 * Add toolbar data to FirePHP console
                    
319	 *
                    
322	{
                    
323		$firephp = FirePHP::getInstance(TRUE);
                    
324		$firephp->fb('KOHANA DEBUG TOOLBAR:');
                    
350
                    
351			$firephp->fb(array($message, $table), FirePHP::TABLE);
                    
352		}
                    
381
                    
382		$firephp->fb(array($message, $table), FirePHP::TABLE);
                    
383
                    
412
                    
413		$firephp->fb(array($message, $table), FirePHP::TABLE);
                    
414	}
                    
                
Validator.php https://github.com/zikula-modules/KnowledgeBase.git | PHP | 399 lines
                    
1<?php
                    
2/**
                    
43    {
                    
44        return (is_bool($this->entity[$fieldName]));
                    
45    }
                    
                
Yaml.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 426 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: Yaml.php 24807 2012-05-15 12:10:42Z adamlundrigan $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Config.php';
                    
26
                    
103        if (!is_callable($yamlDecoder)) {
                    
104            require_once 'Zend/Config/Exception.php';
                    
105            throw new Zend_Config_Exception( 'Invalid parameter to setYamlDecoder() - must be callable' );
                    
136        if (empty( $yaml )) {
                    
137            require_once 'Zend/Config/Exception.php';
                    
138            throw new Zend_Config_Exception( 'Filename is not set' );
                    
142        $allowModifications = false;
                    
143        if (is_bool($options)) {
                    
144            $allowModifications = $options;
                    
                
Ftp.php https://gitlab.com/puntodos/ean-landings | PHP | 448 lines
                    
1<?php
                    
2
                    
116    {
                    
117        if (is_bool($this->ignorePassiveAddress) && defined('FTP_USEPASVADDRESS')) {
                    
118            ftp_set_option($this->connection, FTP_USEPASVADDRESS, ! $this->ignorePassiveAddress);
                    
186    {
                    
187        $stream = fopen('php://temp', 'w+b');
                    
188        fwrite($stream, $contents);
                    
397    {
                    
398        $stream = fopen('php://temp', 'w+');
                    
399        $result = ftp_fget($this->getConnection(), $stream, $path, $this->transferMode);
                    
                
Ini.php https://bitbucket.org/baruffaldi/cms-php-bfcms.git | PHP | 254 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Ini.php 11209 2008-09-03 14:42:23Z ralph $
                    
20 */
                    
25 */
                    
26require_once 'Zend/Config.php';
                    
27
                    
91             */
                    
92            require_once 'Zend/Config/Exception.php';
                    
93            throw new Zend_Config_Exception('Filename is not set');
                    
96        $allowModifications = false;
                    
97        if (is_bool($options)) {
                    
98            $allowModifications = $options;
                    
115             */
                    
116            require_once 'Zend/Config/Exception.php';
                    
117            throw new Zend_Config_Exception($this->_loadFileErrorStr);
                    
                
Ini.php https://bitbucket.org/baruffaldi/website-2008-computer-shopping-3.git | PHP | 254 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Ini.php 11206 2008-09-03 14:36:32Z ralph $
                    
20 */
                    
25 */
                    
26require_once 'Zend/Config.php';
                    
27
                    
91             */
                    
92            require_once 'Zend/Config/Exception.php';
                    
93            throw new Zend_Config_Exception('Filename is not set');
                    
96        $allowModifications = false;
                    
97        if (is_bool($options)) {
                    
98            $allowModifications = $options;
                    
115             */
                    
116            require_once 'Zend/Config/Exception.php';
                    
117            throw new Zend_Config_Exception($this->_loadFileErrorStr);
                    
                
Form.class.php https://github.com/drbowen/openemr.git | PHP | 210 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * @package PhpMyAdmin
                    
7 */
                    
12 *
                    
13 * @package PhpMyAdmin
                    
14 */
                    
105                }
                    
106                $keys[] = is_bool($value[$i]) ? (int)$value[$i] : $value[$i];
                    
107            }
                    
118     * array_walk callback function, reads path of form fields from
                    
119     * array (see file comment in setup.forms.php or user_preferences.forms.inc)
                    
120     *
                    
                
Yaml.php https://bitbucket.org/haichau59/manga.git | PHP | 381 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: Yaml.php 24594 2012-01-05 21:27:01Z matthew $
                    
20 */
                    
24 */
                    
25//require_once 'Zend/Config.php';
                    
26
                    
101        if (!is_callable($yamlDecoder)) {
                    
102            //require_once 'Zend/Config/Exception.php';
                    
103            throw new Zend_Config_Exception('Invalid parameter to setYamlDecoder() - must be callable');
                    
133        if (empty($yaml)) {
                    
134            //require_once 'Zend/Config/Exception.php';
                    
135            throw new Zend_Config_Exception('Filename is not set');
                    
139        $allowModifications = false;
                    
140        if (is_bool($options)) {
                    
141            $allowModifications = $options;
                    
                
Client.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 297 lines
                    
1<?php
                    
2
                    
35* @license    http://www.gnu.org/copyleft/lesser.html  LGPL License 2.1
                    
36* @version    CVS: $Id: Client.php,v 1.14 2008/09/10 18:50:31 sergiosgc Exp $
                    
37* @link       http://pear.php.net/package/XML_RPC2
                    
42// dependencies {{{
                    
43require_once 'XML/RPC2/Exception.php';
                    
44require_once 'XML/RPC2/Backend.php';
                    
54 * <code>
                    
55 *  require_once 'XML_RPC2/Client.php';
                    
56 * 
                    
69 * @license    http://www.gnu.org/copyleft/lesser.html  LGPL License 2.1
                    
70 * @link       http://pear.php.net/package/XML_RPC2
                    
71 */
                    
122    /**
                    
123     * ugly hack flag to avoid http://bugs.php.net/bug.php?id=21949
                    
124     * 
                    
                
Database.php https://github.com/steamboy/ds.git | PHP | 636 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2/**
                    
4 *
                    
5 * $Id: Database.php 4134 2009-03-28 04:37:54Z zombor $
                    
6 *
                    
9 * @copyright  (c) 2007-2008 Kohana Team
                    
10 * @license    http://kohanaphp.com/license.html
                    
11 */
                    
115			}
                    
116			elseif (is_bool($value))
                    
117			{
                    
399			'Unknown field type: '.$type.'. '.
                    
400			'Please report this: http://trac.kohanaphp.com/newticket'
                    
401		);
                    
                
Descriptor.php https://gitlab.com/pr0055/symfonypizza | PHP | 312 lines
                    
1<?php
                    
2
                    
228    {
                    
229        if (is_bool($value) || is_array($value) || (null === $value)) {
                    
230            $jsonString = json_encode($value);
                    
                
Ini.php https://gitlab.com/devtoannh/cafe | PHP | 309 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Ini.php 24045 2011-05-23 12:45:11Z rob $
                    
20 */
                    
25 */
                    
26require_once 'Zend/Config.php';
                    
27
                    
106             */
                    
107            require_once 'Zend/Config/Exception.php';
                    
108            throw new Zend_Config_Exception('Filename is not set');
                    
111        $allowModifications = false;
                    
112        if (is_bool($options)) {
                    
113            $allowModifications = $options;
                    
149                     */
                    
150                    require_once 'Zend/Config/Exception.php';
                    
151                    throw new Zend_Config_Exception("Section '$sectionName' cannot be found in $filename");
                    
                
_25000003_discuz_database_b62f87.bak.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 458 lines
                    
1<?php
                    
2
                    
6 *
                    
7 *      $Id: discuz_database.php 31468 2012-08-31 02:27:23Z zhangguosheng $
                    
8 */
                    
192
                    
193		if (is_bool($str))
                    
194			return $str ? '1' : '0';
                    
                
Serializer.php https://github.com/luisbraschi/ursp.git | PHP | 362 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Serializer.php 21969 2010-04-22 03:54:59Z matthew $
                    
21 */
                    
23/** Zend_Amf_Constants */
                    
24#require_once 'Zend/Amf/Constants.php';
                    
25
                    
26/** @see Zend_Amf_Parse_Serializer */
                    
27#require_once 'Zend/Amf/Parse/Serializer.php';
                    
28
                    
29/**
                    
30 * Serializer PHP misc types back to there corresponding AMF0 Type Marker.
                    
31 *
                    
65    {
                    
66        // Workaround for PHP5 with E_STRICT enabled complaining about "Only 
                    
67        // variables should be passed by reference" 
                    
                
Yaml.php https://github.com/ParveenArora/AddressHunter.git | PHP | 382 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: Yaml.php 23808 2011-03-16 21:26:56Z matthew $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Config.php';
                    
26
                    
101        if (!is_callable($yamlDecoder)) {
                    
102            require_once 'Zend/Config/Exception.php';
                    
103            throw new Zend_Config_Exception('Invalid parameter to setYamlDecoder() - must be callable');
                    
133        if (empty($yaml)) {
                    
134            require_once 'Zend/Config/Exception.php';
                    
135            throw new Zend_Config_Exception('Filename is not set');
                    
139        $allowModifications = false;
                    
140        if (is_bool($options)) {
                    
141            $allowModifications = $options;
                    
                
Ini.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 200 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Ini.php 24593 2012-01-05 20:35:02Z matthew $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Config/Writer/FileAbstract.php';
                    
26
                    
158            return $value;
                    
159        } elseif (is_bool($value)) {
                    
160            return ( $value ? 'true' : 'false' );
                    
164            /** @see Zend_Config_Exception */
                    
165            require_once 'Zend/Config/Exception.php';
                    
166            throw new Zend_Config_Exception( 'Value can not contain double quotes "' );
                    
                
debug.php https://github.com/bermi/akelos.git | PHP | 319 lines
                    
1<?php
                    
2
                    
21        list($default_file, $default_line, $default_method) = self::getLastFileAndLineAndMethod();
                    
22        $default_method = is_bool($text) || empty($text)  ? 'var_dump' : $default_method;
                    
23        $line = is_null($line) ? $default_line : $line;
                    
46            $text = $formatted;
                    
47        }elseif (is_bool($text) || empty($text)){
                    
48            $text = '<pre style="margin:10px;">'.$html_entities_function(self::dump($text, $default_method)).'</pre>';
                    
69    /**
                    
70     * Returns a string representation of one of these PHP methods var_dump, var_export, or print_r
                    
71     */
                    
116    /**
                    
117    * Outputs debug info given a PHP resource (vars, objects,
                    
118    * arrays...)
                    
212    * WARNING: Inherited methods are not returned by this
                    
213    * function. You can fetch them by using PHP native function
                    
214    * get_class_methods
                    
                
ConsoleInputDefinition.php https://github.com/Proudio-Interactive/phpUnderControl.git | PHP | 414 lines
                    
6 *
                    
7 * Copyright (c) 2007-2010, Manuel Pichler <mapi@phpundercontrol.org>.
                    
8 * All rights reserved.
                    
40 * @package   Console
                    
41 * @author    Manuel Pichler <mapi@phpundercontrol.org>
                    
42 * @copyright 2007-2010 Manuel Pichler. All rights reserved.
                    
42 * @copyright 2007-2010 Manuel Pichler. All rights reserved.
                    
43 * @license   http://www.opensource.org/licenses/bsd-license.php  BSD License
                    
44 * @version   SVN: $Id$
                    
173        {
                    
174            throw new phpucErrorException(
                    
175                "An argument '{$arg}' for command '{$cmd}' already exists."
                    
371    {
                    
372        $files = new phpucPhpFileFilterIterator(
                    
373            new DirectoryIterator( PHPUC_INSTALL_DIR . '/Commands' )
                    
                
Serializer.php https://github.com/tanduy/zf.git | PHP | 349 lines
                    
1<?php
                    
2/**
                    
23/** Zend_Amf_Constants */
                    
24require_once 'Zend/Amf/Constants.php';
                    
25
                    
26/** @see Zend_Amf_Parse_Serializer */
                    
27require_once 'Zend/Amf/Parse/Serializer.php';
                    
28
                    
29/**
                    
30 * Serializer php misc types back to there corresponding AMF0 Type Marker.
                    
31 *
                    
109                    default:
                    
110                        require_once 'Zend/Amf/Exception.php';
                    
111                        throw new Zend_Amf_Exception("Unknown Type Marker: " . $markerType);
                    
121                    break;
                    
122                case (is_bool($data)):
                    
123                    $markerType = Zend_Amf_Constants::AMF0_BOOLEAN;
                    
                
Converter.php https://gitlab.com/xibalba/ocelote | PHP | 322 lines
                    
1<?php
                    
2/**
                    
3 * @copyright 2014 - 2019 Xibalba Lab.
                    
4 * @license   http://opensource.org/licenses/bsd-license.php
                    
5 * @link      https://gitlab.com/xibalba/ocelote
                    
43			else return (int) $value;
                    
44		} else if (is_bool($value)) return (bool) $value;
                    
45		else if ($value === 'true' || $value === 'false') return ($value === 'true');
                    
56	public static function unbox($value) : string {
                    
57		if (is_bool($value)) return $value ? 'true' : 'false';
                    
58		return (string) $value;
                    
261	 *
                    
262	 * @see http://php.net/manual/en/function.parse-str.php `parse_str()` official documentation.
                    
263	 *
                    
                
Test.php https://github.com/sunnysujan/wikireader.git | PHP | 496 lines
                    
78
                    
79    # See http://www.php.net/manual/en/language.operators.comparison.php
                    
80    switch ($op)
                    
368
                    
369Test.php - TAP test framework for PHP with a L<Test::More>-like interface
                    
370
                    
372
                    
373    #!/usr/bin/env php
                    
374    <?php  
                    
374    <?php  
                    
375    require 'Test.php';
                    
376  
                    
427
                    
428F<Test.php> is an implementation of Perl's L<Test::More> for PHP. Like
                    
429Test::More it produces language agnostic TAP output (see L<TAP>) which
                    
                
helpers.php https://gitlab.com/jjpa2018/dashboard | PHP | 379 lines
                    
1<?php
                    
2
                    
49
                    
50        if (is_numeric($value) || is_bool($value)) {
                    
51            return false;
                    
362    {
                    
363        return PHP_OS_FAMILY === 'Windows';
                    
364    }
                    
                
mysqlnd_bt.c https://github.com/Doap/php-src.git | C | 483 lines
                    
2  +----------------------------------------------------------------------+
                    
3  | PHP Version 5                                                        |
                    
4  +----------------------------------------------------------------------+
                    
4  +----------------------------------------------------------------------+
                    
5  | Copyright (c) 2006-2011 The PHP Group                                |
                    
6  +----------------------------------------------------------------------+
                    
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  +----------------------------------------------------------------------+
                    
                
Csv.php https://bitbucket.org/moodle/moodle.git | PHP | 404 lines
                    
1<?php
                    
2
                    
2
                    
3namespace PhpOffice\PhpSpreadsheet\Writer;
                    
4
                    
4
                    
5use PhpOffice\PhpSpreadsheet\Calculation\Calculation;
                    
6use PhpOffice\PhpSpreadsheet\Spreadsheet;
                    
10    /**
                    
11     * PhpSpreadsheet object.
                    
12     *
                    
35     */
                    
36    private $lineEnding = PHP_EOL;
                    
37
                    
84    /**
                    
85     * Save PhpSpreadsheet to file.
                    
86     *
                    
                
CellQuery.php https://github.com/jacknicole/sugarcrm_dev.git | PHP | 417 lines
                    
1<?php
                    
2
                    
26 */
                    
27require_once('Zend/Gdata/App/Util.php');
                    
28
                    
31 */
                    
32require_once('Zend/Gdata/Query.php');
                    
33
                    
333    {
                    
334        if (is_bool($value)) {
                    
335            $this->_params['return-empty'] = ($value?'true':'false');
                    
370            } else {
                    
371                require_once 'Zend/Gdata/App/Exception.php';
                    
372                throw new Zend_Gdata_App_Exception('A spreadsheet key must be provided for cell queries.');
                    
377            } else {
                    
378                require_once 'Zend/Gdata/App/Exception.php';
                    
379                throw new Zend_Gdata_App_Exception('A worksheet id must be provided for cell queries.');
                    
                
 

Source

Language