PageRenderTime 228ms queryTime 38ms sortTime 5ms getByIdsTime 65ms findMatchingLines 61ms

100+ results results for 'php var_export' (228 ms)

Not the results you expected?
XmlDescriptor.php https://gitlab.com/madwanz64/laravel | PHP | 231 lines
                    
1<?php
                    
2
                    
188        $objectXML->appendChild($defaultsXML = $dom->createElement('defaults'));
                    
189        $defaults = \is_array($argument->getDefault()) ? $argument->getDefault() : (\is_bool($argument->getDefault()) ? [var_export($argument->getDefault(), true)] : ($argument->getDefault() ? [$argument->getDefault()] : []));
                    
190        foreach ($defaults as $default) {
                    
217        if ($option->acceptValue()) {
                    
218            $defaults = \is_array($option->getDefault()) ? $option->getDefault() : (\is_bool($option->getDefault()) ? [var_export($option->getDefault(), true)] : ($option->getDefault() ? [$option->getDefault()] : []));
                    
219            $objectXML->appendChild($defaultsXML = $dom->createElement('defaults'));
                    
                
ImageSizeTest.php https://github.com/adaykin/zf2.git | PHP | 205 lines
                    
1<?php
                    
2/**
                    
37 */
                    
38class ImageSizeTest extends \PHPUnit_Framework_TestCase
                    
39{
                    
62                $validator->isValid(__DIR__ . '/_files/picture.jpg'),
                    
63                "Tested with " . var_export($element, 1)
                    
64            );
                    
                
http-messages.rst https://gitlab.com/x33n/respond | ReStructuredText | 483 lines
                    
75data and downloading data. Guzzle will, by default, store the body of a message
                    
76in a stream that uses PHP temp streams. When the size of the body exceeds
                    
772 MB, the stream will automatically switch to storing data on disk rather than
                    
135
                    
136.. code-block:: php
                    
137
                    
243This method returns a ``GuzzleHttp\Query`` object. A Query object can be
                    
244accessed like a PHP array, iterated in a foreach statement like a PHP array,
                    
245and cast to a string.
                    
264
                    
265    var_export($request->getQuery()['bam']);
                    
266    // array('test' => 'abc')
                    
280convert the complex structure into a string. Query objects will use
                    
281`PHP style query strings <http://www.php.net/http_build_query>`_ when complex
                    
282query string parameters are converted to a string. You can customize how
                    
                
MimeTypeTest.php https://github.com/bate/zf2.git | PHP | 259 lines
                    
1<?php
                    
2/**
                    
23 */
                    
24class MimeTypeTest extends \PHPUnit_Framework_TestCase
                    
25{
                    
62                $validator->isValid($filetest, $files),
                    
63                "Test expected " . var_export($expected, 1) . " with " . var_export($options, 1)
                    
64                . "\nMessages: " . var_export($validator->getMessages(), 1)
                    
134        if (!extension_loaded('fileinfo')) {
                    
135            $this->markTestSkipped('This PHP Version has no finfo installed');
                    
136        }
                    
195                $validator->isValid($filetest, $files),
                    
196                "Test expected " . var_export($expected, 1) . " with " . var_export($options, 1)
                    
197                . "\nMessages: " . var_export($validator->getMessages(), 1)
                    
204                $validator->isValid($filetest, $files),
                    
205                "Test expected " . var_export($expected, 1) . " with " . var_export($options, 1)
                    
206                . "\nMessages: " . var_export($validator->getMessages(), 1)
                    
                
Think.class.php https://gitlab.com/fangfangchen/xianpipa | PHP | 344 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
13/**
                    
14 * ThinkPHP 引导类
                    
15 */
                    
39
                    
40      $runtimefile  = RUNTIME_PATH.APP_MODE.'~runtime.php';
                    
41      if(!APP_DEBUG && Storage::has($runtimefile)){
                    
47          // 读取应用模式
                    
48          $mode   =   include is_file(CONF_PATH.'core.php')?CONF_PATH.'core.php':MODE_PATH.APP_MODE.'.php';
                    
49          // 加载核心文件
                    
89              $content  .=  "\nnamespace { Think\\Think::addMap(".var_export(self::$_map,true).");";
                    
90              $content  .=  "\nL(".var_export(L(),true).");\nC(".var_export(C(),true).');Think\Hook::import('.var_export(Hook::get(),true).');}';
                    
91              Storage::put($runtimefile,strip_whitespace('<?php '.$content));
                    
299            if(IS_CLI){
                    
300                exit(iconv('UTF-8','gbk',$e['message']).PHP_EOL.'FILE: '.$e['file'].'('.$e['line'].')'.PHP_EOL.$e['trace']);
                    
301            }
                    
                
ErrorHandler.php https://gitlab.com/grlopez90/servipro | PHP | 345 lines
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @link          http://cakephp.org CakePHP(tm) Project
                    
16 * @package       Cake.Error
                    
73 *
                    
74 * Error handler also provides the built in features for handling php errors (trigger_error).
                    
75 * While in debug mode, errors will be output to the screen using debugger. While in production mode,
                    
113 * @return void
                    
114 * @see http://php.net/manual/en/function.set-exception-handler.php
                    
115 */
                    
329		if (!empty($errorConfig['trace'])) {
                    
330			// https://bugs.php.net/bug.php?id=65322
                    
331			if (version_compare(PHP_VERSION, '5.4.21', '<')) {
                    
                
Think.class.php https://gitlab.com/xuebutayan/yshop | PHP | 344 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
13/**
                    
14 * ThinkPHP 引导类
                    
15 */
                    
39
                    
40      $runtimefile  = RUNTIME_PATH.APP_MODE.'~runtime.php';
                    
41      if(!APP_DEBUG && Storage::has($runtimefile)){
                    
47          // 读取应用模式
                    
48          $mode   =   include is_file(CONF_PATH.'core.php')?CONF_PATH.'core.php':MODE_PATH.APP_MODE.'.php';
                    
49          // 加载核心文件
                    
89              $content  .=  "\nnamespace { Think\Think::addMap(".var_export(self::$_map,true).");";
                    
90              $content  .=  "\nL(".var_export(L(),true).");\nC(".var_export(C(),true).');Think\Hook::import('.var_export(Hook::get(),true).');}';
                    
91              Storage::put($runtimefile,strip_whitespace('<?php '.$content));
                    
299            if(IS_CLI){
                    
300                exit(iconv('UTF-8','gbk',$e['message']).PHP_EOL.'FILE: '.$e['file'].'('.$e['line'].')'.PHP_EOL.$e['trace']);
                    
301            }
                    
                
WebBrowser.php https://github.com/wzs/Scrappr.git | PHP | 405 lines
                    
5 */
                    
6class phpQueryObjectPlugin_WebBrowser {
                    
7	/**
                    
15	 *
                    
16	 * @param phpQueryObject $self
                    
17	 * @todo support 'reset' event
                    
29		else {
                    
30			$self->bind('click', array($location, $callback), array('phpQueryPlugin_WebBrowser', 'hadleClick'));
                    
31			$self->bind('submit', array($location, $callback), array('phpQueryPlugin_WebBrowser', 'handleSubmit'));
                    
173		self::authorizeHost($ajaxSettings['url']);
                    
174		$xhr = phpQuery::ajax(
                    
175			self::ajaxSettingsPrepare($ajaxSettings)
                    
323 * @return unknown
                    
324 * @link http://www.php.net/manual/en/function.parse-url.php
                    
325 * @author stevenlewis at hotmail dot com
                    
                
Translator.php https://gitlab.com/jjpa2018/dashboard | PHP | 494 lines
                    
1<?php
                    
2
                    
316        $content = sprintf(<<<EOF
                    
317<?php
                    
318
                    
328            $locale,
                    
329            var_export($this->getAllMessages($this->catalogues[$locale]), true),
                    
330            $fallbackContent
                    
354                $fallback,
                    
355                var_export($this->getAllMessages($fallbackCatalogue), true),
                    
356                $currentSuffix,
                    
367    {
                    
368        return $this->cacheDir.'/catalogue.'.$locale.'.'.strtr(substr(base64_encode(hash('sha256', serialize($this->cacheVary), true)), 0, 7), '/', '_').'.php';
                    
369    }
                    
                
mysqlnduhpreparedstatement.execute.html https://bitbucket.org/stillzhl/manuals.git | HTML | 113 lines
                    
11 <div class="up"><a href="class.mysqlnduhpreparedstatement.html">MysqlndUhPreparedStatement</a></div>
                    
12 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
13</div><hr /><div id="mysqlnduhpreparedstatement.execute" class="refentry">
                    
70<div class="phpcode"><code><span style="color: #000000">
                    
71<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">class&nbsp;</span><span style="color: #0000BB">stmt_proxy&nbsp;</span><span style="color: #007700">extends&nbsp;</span><span style="color: #0000BB">MysqlndUhPreparedStatement&nbsp;</span><span style="color: #007700">{<br />&nbsp;public&nbsp;function&nbsp;</span><span style="color: #0000BB">execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$res</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;</span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"%s("</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">__METHOD__</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$res</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">")\n"</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$ret&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">parent</span><span style="color: #007700">::</span><span style="color: #0000BB">execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$res</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"%s&nbsp;returns&nbsp;%s\n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">__METHOD__</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">var_export</span><span style="color: #007700">(</span><span style="color: #0000BB">$ret</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">));<br />&nbsp;&nbsp;</span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$ret</span><span style="color: #007700">);<br />&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">$ret</span><span style="color: #007700">;<br />&nbsp;}<br />}<br /></span><span style="color: #0000BB">mysqlnd_uh_set_statement_proxy</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">stmt_proxy</span><span style="color: #007700">());<br /><br /></span><span style="color: #0000BB">$mysqli&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">mysqli</span><span style="color: #007700">(</span><span style="color: #DD0000">"localhost"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"root"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">""</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"test"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$stmt&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$mysqli</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT&nbsp;'Labskaus'&nbsp;AS&nbsp;_msg&nbsp;FROM&nbsp;DUAL"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$stmt</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">execute</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$msg&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">NULL</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$stmt</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">bind_result</span><span style="color: #007700">(</span><span style="color: #0000BB">$msg</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$stmt</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fetch</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$msg</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span>
                    
72</span>
                    
111 <div class="up"><a href="class.mysqlnduhpreparedstatement.html">MysqlndUhPreparedStatement</a></div>
                    
112 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
113</div></body></html>
                    
                
index.php https://github.com/srahn/kvwmap.git | PHP | 350 lines
                    
1<?php
                    
2
                    
2
                    
3include_once(CLASSPATH . 'PgObject.php');
                    
4include_once(CLASSPATH . 'Layer.php');
                    
4include_once(CLASSPATH . 'Layer.php');
                    
5// include('funktionen/input_check_functions.php');
                    
6include_once(PLUGINS . 'wasserrecht/config/config.php');
                    
6include_once(PLUGINS . 'wasserrecht/config/config.php');
                    
7include(PLUGINS . 'wasserrecht/helper/Log.php');
                    
8include(PLUGINS . 'wasserrecht/helper/CommonClassTrait.php');
                    
8include(PLUGINS . 'wasserrecht/helper/CommonClassTrait.php');
                    
9include(PLUGINS . 'wasserrecht/helper/DateHelper.php');
                    
10// include(PLUGINS . 'wasserrecht/helper/LayerNames.php');
                    
10// include(PLUGINS . 'wasserrecht/helper/LayerNames.php');
                    
11include(PLUGINS . 'wasserrecht/model/FestsetzungsSammelbescheidDaten.php');
                    
12include(PLUGINS . 'wasserrecht/model/AufforderungsBescheidDaten.php');
                    
                
Serializer.php https://bitbucket.org/hill2steve/mobileroom.git | PHP | 291 lines
                    
1<?php
                    
2
                    
130        }
                    
131        throw new UnexpectedValueException('An unexpected value could not be normalized: '.var_export($data, true));
                    
132    }
                    
                
TestCase.php https://github.com/shevron/zf2.git | PHP | 330 lines
                    
1<?php
                    
2/**
                    
15use Zend\Cloud\QueueService\Factory,
                    
16    PHPUnit_Framework_TestCase as PHPUnitTestCase;
                    
17
                    
25 */
                    
26abstract class TestCase extends PHPUnitTestCase
                    
27{
                    
92                $messages = $this->_commonQueue->receiveMessages($queueURL);
                    
93                $this->fail('An exception should have been thrown if the queue has been deleted; received ' . var_export($messages, 1));
                    
94            } catch (\Zend\Cloud\QueueService\Exception\ExceptionInterface $e) {
                    
132
                    
133            // PHPUnit does an identical comparison for assertContains(), so we just
                    
134            // use assertTrue and in_array()
                    
                
dmllib.php https://github.com/pauln/moodle.git | PHP | 380 lines
                    
1<?php
                    
2
                    
44// Require the essential
                    
45require_once($CFG->libdir.'/dml/moodle_database.php');
                    
46
                    
64    /**
                    
65     * @param string $errorcode The name of the string from error.php to print.
                    
66     * @param string $a Extra words and phrases that might be required in the error string.
                    
121class dml_read_exception extends dml_exception {
                    
122    /** @var string The name of the string from error.php to print.*/
                    
123    public $error;
                    
130     * Constructor
                    
131     * @param string $error The name of the string from error.php to print.
                    
132     * @param string $sql The SQL that ran just before this read error.
                    
138        $this->params = $params;
                    
139        $errorinfo = $error."\n".$sql."\n[".var_export($params, true).']';
                    
140        parent::__construct('dmlreadexception', NULL, $errorinfo);
                    
                
TestCase.php https://github.com/pavlakis/phergie.git | PHP | 336 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP version 5
                    
6 *
                    
199    {
                    
200        // Ugly hack to get around an issue in PHPUnit
                    
201        // @link http://github.com/sebastianbergmann/phpunit-mock-objects/issues/issue/5#issue/5/comment/343524
                    
205            && $type == "' . $type . '"
                    
206            && $args == "' . var_export($args, true) . '") {
                    
207                trigger_error("Instance of ' . $this->pluginClass
                    
                
smarty_internal_compile_foreach.php https://github.com/usualoma/movabletype.git | PHP | 343 lines
                    
1<?php
                    
2/**
                    
199        // generate output code
                    
200        $output = "<?php\n";
                    
201        $output .= "\$_from = \$_smarty_tpl->smarty->ext->_foreach->init(\$_smarty_tpl, $from, " .
                    
201        $output .= "\$_from = \$_smarty_tpl->smarty->ext->_foreach->init(\$_smarty_tpl, $from, " .
                    
202                   var_export($item, true);
                    
203        if ($name || $needTotal || $key) {
                    
203        if ($name || $needTotal || $key) {
                    
204            $output .= ', ' . var_export($needTotal, true);
                    
205        }
                    
206        if ($name || $key) {
                    
207            $output .= ', ' . var_export($key, true);
                    
208        }
                    
209        if ($name) {
                    
210            $output .= ', ' . var_export($name, true) . ', ' . var_export($namedAttr, true);
                    
211        }
                    
                
Escaper.php https://github.com/padraic/php-framework-benchmarks.git | PHP | 373 lines
                    
1<?php
                    
2
                    
31    /**
                    
32     * The escaper (a PHP callable) that is going to be applied to the value and its
                    
33     * children.
                    
48     *
                    
49     * @param string $callable A PHP callable
                    
50     * @param string $value    Escaping value
                    
62    /**
                    
63     * Decorates a PHP variable with something that will escape any data obtained
                    
64     * from it.
                    
74     *    - The value implements the Traversable interface (either an Iterator, an
                    
75     *      IteratorAggregate or an internal PHP class that implements
                    
76     *      Traversable): decorated much like the array.
                    
79     *
                    
80     * The escaping method is actually a PHP callable. This class hosts a set
                    
81     * of standard escaping strategies.
                    
                
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   +----------------------------------------------------------------------+
                    
                
LoggerOptionConverter.php https://bitbucket.org/frchico/chamilo_openshift.git | PHP | 322 lines
                    
1<?php
                    
2/**
                    
17 *
                    
18 * @package log4php
                    
19 */
                    
24 * @version $Revision: 822464 $ 
                    
25 * @package log4php
                    
26 * @subpackage helpers
                    
94		
                    
95		trigger_error("Could not convert ".var_export($value,1)." to boolean!", E_USER_WARNING);
                    
96		return $default;
                    
119	 * where <i>full_file_classname</i> means the class filename with path
                    
120	 * but without php extension, then the specified class' <i>toLevel()</i> method
                    
121	 * is called to process the specified level string; if no '#'
                    
                
Db.php https://gitlab.com/rsilveira1987/Expresso | PHP | 276 lines
                    
1<?php
                    
2
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Db.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
                    
21 */
                    
96     * }
                    
97     * var_export($const);
                    
98     */
                    
218             */
                    
219            require_once 'Zend/Db/Exception.php';
                    
220            throw new Zend_Db_Exception('Adapter parameters must be in an array or a Zend_Config object');
                    
229             */
                    
230            require_once 'Zend/Db/Exception.php';
                    
231            throw new Zend_Db_Exception('Adapter name must be specified in a string');
                    
251        if (!class_exists($adapterName)) {
                    
252            require_once 'Zend/Loader.php';
                    
253            Zend_Loader::loadClass($adapterName);
                    
                
Translator.php https://gitlab.com/leon0399/damnit-engine | PHP | 438 lines
                    
1<?php
                    
2
                    
308        $content = sprintf(<<<EOF
                    
309<?php
                    
310
                    
320            $locale,
                    
321            var_export($this->catalogues[$locale]->all(), true),
                    
322            $fallbackContent
                    
346                $fallback,
                    
347                var_export($fallbackCatalogue->all(), true),
                    
348                $currentSuffix,
                    
359    {
                    
360        return $this->cacheDir.'/catalogue.'.$locale.'.'.sha1(serialize($this->fallbackLocales)).'.php';
                    
361    }
                    
                
class-ecwid-oauth.php https://gitlab.com/oresticouci/ablSportsConsulting | PHP | 351 lines
                    
2
                    
3include ECWID_PLUGIN_DIR . "lib/phpseclib/AES.php";
                    
4require_once ECWID_PLUGIN_DIR . 'lib/ecwid_api_v3.php';
                    
29		$ecwid_oauth = $this;
                    
30		require_once(ECWID_PLUGIN_DIR . 'templates/reconnect.php');
                    
31	}
                    
52
                    
53		$redirect_uri = 'admin-post.php?action=' . $action;
                    
54
                    
62	{
                    
63		$redirect_uri = 'admin-post.php?action=ecwid_oauth_reconnect';
                    
64
                    
87
                    
88			wp_redirect('admin.php?page=ecwid&connection_error' . ($reconnect ? '&reconnect' : ''));
                    
89			exit;
                    
                
Db.php https://github.com/quarkness/piwik.git | PHP | 286 lines
                    
1<?php
                    
2
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Db.php 24417 2011-08-28 10:15:47Z padraic $
                    
21 */
                    
101     * }
                    
102     * var_export($const);
                    
103     */
                    
226             */
                    
227            // require_once 'Zend/Db/Exception.php';
                    
228            throw new Zend_Db_Exception('Adapter parameters must be in an array or a Zend_Config object');
                    
237             */
                    
238            // require_once 'Zend/Db/Exception.php';
                    
239            throw new Zend_Db_Exception('Adapter name must be specified in a string');
                    
261        if (!class_exists($adapterName)) {
                    
262            // require_once 'Zend/Loader.php';
                    
263            Zend_Loader::loadClass($adapterName);
                    
                
BaseFctrainm.php https://github.com/cidesa/siga-universitario.git | PHP | 593 lines
                    
1<?php
                    
2
                    
73            $ts = adodb_strtotime($this->fectra);
                    
74      if ($ts === -1 || $ts === false) {         throw new PropelException("Unable to parse value of [fectra] as date/time value: " . var_export($this->fectra, true));
                    
75      }
                    
155      $ts = adodb_strtotime($v);
                    
156      if ($ts === -1 || $ts === false) {         throw new PropelException("Unable to parse date/time value for [fectra] from input: " . var_export($v, true));
                    
157      }
                    
392	
                    
393	public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
                    
394	{
                    
435	
                    
436	public function toArray($keyType = BasePeer::TYPE_PHPNAME)
                    
437	{
                    
453	
                    
454	public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)
                    
455	{
                    
                
FormErrorsTest.php https://github.com/Exercise/zf2.git | PHP | 296 lines
                    
1<?php
                    
2/**
                    
39 */
                    
40class FormErrorsTest extends \PHPUnit_Framework_TestCase
                    
41{
                    
125                if (is_string($message)) {
                    
126                    $this->assertContains($message, $test, var_export($messages, 1));
                    
127                } else {
                    
128                    foreach ($message as $m) {
                    
129                        $this->assertContains($m, $test, var_export($messages, 1));
                    
130                    }
                    
152
                    
153    public function testRenderSeparatesContentAndErrorsWithPhpEolByDefault()
                    
154    {
                    
157        $test = $this->decorator->render($content);
                    
158        $this->assertContains($content . PHP_EOL . '<ul', $test);
                    
159    }
                    
                
teilgewaesserbenutzungen.php https://github.com/srahn/kvwmap.git | PHP | 352 lines
                    
1<?php
                    
2class Teilgewaesserbenutzungen extends WrPgObject {
                    
185	    
                    
186	    $this->log->log_debug('artBenutzungId: ' . var_export($artBenutzungId, true));
                    
187	    $this->log->log_debug('befreit: ' . var_export($befreit, true));
                    
187	    $this->log->log_debug('befreit: ' . var_export($befreit, true));
                    
188	    $this->log->log_debug('zugelassen: ' . var_export($zugelassen, true));
                    
189	    $this->log->log_debug('ermaessigt: ' . var_export($ermaessigt, true));
                    
284// 	        print_r($teilgewaesserbenutzung_value_array);
                    
285	        $this->log->log_debug('teilgewaesserbenutzung_value_array: ' . var_export($teilgewaesserbenutzung_value_array, true));
                    
286	        
                    
306// // 	        print_r($teilgewaesserbenutzung_value_array);
                    
307// 	        $this->log->log_debug('teilgewaesserbenutzung_value_array: ' . var_export($teilgewaesserbenutzung_value_array, true));
                    
308	        
                    
325	    
                    
326	    $this->log->log_debug('kvp update: ' . var_export($this->getKVP(), true));
                    
327	    
                    
                
ErrorHandler.php https://bitbucket.org/projectangelfaces/project-angel-faces.git | PHP | 283 lines
                    
1<?php
                    
2/**
                    
8 *
                    
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
10 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
17 * @link          http://cakephp.org CakePHP(tm) Project
                    
18 * @package       Cake.Error
                    
18 * @package       Cake.Error
                    
19 * @since         CakePHP(tm) v 0.10.5.1732
                    
20 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
49 * This gives you full control over the exception handling process. The class you choose should be
                    
50 * loaded in your app/Config/bootstrap.php, so its available to handle any exceptions. You can
                    
51 * define the handler as any callback type. Using Exception.handler overrides all other exception
                    
108 * @return void
                    
109 * @see http://php.net/manual/en/function.set-exception-handler.php
                    
110 */
                    
                
Module.php https://gitlab.com/arthur_quiroga/dystawork | PHP | 444 lines
                    
1<?php
                    
2
                    
71        if (!$this->getAttribute('index')) {
                    
72            $compiler->write('<?php');
                    
73        }
                    
145            ->write("\n\n")
                    
146            // if the template name contains */, add a blank to avoid a PHP parse error
                    
147            ->write('/* '.str_replace('*/', '* /', $this->source->getName())." */\n")
                    
404            ->indent()
                    
405            ->write(sprintf("return %s;\n", str_replace("\n", '', var_export(array_reverse($compiler->getDebugInfo(), true), true))))
                    
406            ->outdent()
                    
                
FormErrorsTest.php https://github.com/mfairchild365/zf2.git | PHP | 295 lines
                    
1<?php
                    
2/**
                    
26    Zend\Form\SubForm,
                    
27    Zend\View\PhpRenderer as View;
                    
28
                    
38 */
                    
39class FormErrorsTest extends \PHPUnit_Framework_TestCase
                    
40{
                    
124                if (is_string($message)) {
                    
125                    $this->assertContains($message, $test, var_export($messages, 1));
                    
126                } else {
                    
127                    foreach ($message as $m) {
                    
128                        $this->assertContains($m, $test, var_export($messages, 1));
                    
129                    }
                    
151
                    
152    public function testRenderSeparatesContentAndErrorsWithPhpEolByDefault()
                    
153    {
                    
                
mysqlnduhconnection.setserveroption.html https://bitbucket.org/thncr/manuals.git | HTML | 130 lines
                    
11 <div class="up"><a href="class.mysqlnduhconnection.html">MysqlndUhConnection</a></div>
                    
12 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
13</div><hr /><div id="mysqlnduhconnection.setserveroption" class="refentry">
                    
82<div class="phpcode"><code><span style="color: #000000">
                    
83<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">function&nbsp;</span><span style="color: #0000BB">server_option_to_string</span><span style="color: #007700">(</span><span style="color: #0000BB">$option</span><span style="color: #007700">)&nbsp;{<br />&nbsp;</span><span style="color: #0000BB">$ret&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'unknown'</span><span style="color: #007700">;<br />&nbsp;switch&nbsp;(</span><span style="color: #0000BB">$option</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;case&nbsp;</span><span style="color: #0000BB">MYSQLND_UH_SERVER_OPTION_MULTI_STATEMENTS_ON</span><span style="color: #007700">:<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$ret&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'MYSQLND_UH_SERVER_OPTION_MULTI_STATEMENTS_ON'</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;break;<br />&nbsp;&nbsp;case&nbsp;</span><span style="color: #0000BB">MYSQLND_UH_SERVER_OPTION_MULTI_STATEMENTS_OFF</span><span style="color: #007700">:<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$ret&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'MYSQLND_UH_SERVER_OPTION_MULTI_STATEMENTS_ON'</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;break;<br />&nbsp;}<br />&nbsp;return&nbsp;</span><span style="color: #0000BB">$ret</span><span style="color: #007700">;<br />}<br /><br />class&nbsp;</span><span style="color: #0000BB">proxy&nbsp;</span><span style="color: #007700">extends&nbsp;</span><span style="color: #0000BB">MysqlndUhConnection&nbsp;</span><span style="color: #007700">{<br />&nbsp;public&nbsp;function&nbsp;</span><span style="color: #0000BB">setServerOption</span><span style="color: #007700">(</span><span style="color: #0000BB">$res</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$option</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;</span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"%s(%s)\n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">__METHOD__</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">var_export</span><span style="color: #007700">(</span><span style="color: #0000BB">func_get_args</span><span style="color: #007700">(),&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">));<br />&nbsp;&nbsp;</span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"Option&nbsp;'%s'&nbsp;set\n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">server_option_to_string</span><span style="color: #007700">(</span><span style="color: #0000BB">$option</span><span style="color: #007700">));<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$ret&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">parent</span><span style="color: #007700">::</span><span style="color: #0000BB">setServerOption</span><span style="color: #007700">(</span><span style="color: #0000BB">$res</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$option</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"%s&nbsp;returns&nbsp;%s\n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">__METHOD__</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">var_export</span><span style="color: #007700">(</span><span style="color: #0000BB">$ret</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">));<br />&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">$ret</span><span style="color: #007700">;<br />&nbsp;}<br />}<br /></span><span style="color: #0000BB">mysqlnd_uh_set_connection_proxy</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">proxy</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">$mysqli&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">mysqli</span><span style="color: #007700">(</span><span style="color: #DD0000">"localhost"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"root"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">""</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"test"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$mysqli</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">multi_query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT&nbsp;1;&nbsp;SELECT&nbsp;2"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span>
                    
84</span>
                    
128 <div class="up"><a href="class.mysqlnduhconnection.html">MysqlndUhConnection</a></div>
                    
129 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
130</div></body></html>
                    
                
BaseFcsoldet2.php https://github.com/cidesa/siga-universitario.git | PHP | 615 lines
                    
1<?php
                    
2
                    
87            $ts = adodb_strtotime($this->fecven);
                    
88      if ($ts === -1 || $ts === false) {         throw new PropelException("Unable to parse value of [fecven] as date/time value: " . var_export($this->fecven, true));
                    
89      }
                    
123            $ts = adodb_strtotime($this->fecultpag);
                    
124      if ($ts === -1 || $ts === false) {         throw new PropelException("Unable to parse value of [fecultpag] as date/time value: " . var_export($this->fecultpag, true));
                    
125      }
                    
190      $ts = adodb_strtotime($v);
                    
191      if ($ts === -1 || $ts === false) {         throw new PropelException("Unable to parse date/time value for [fecven] from input: " . var_export($v, true));
                    
192      }
                    
227      $ts = adodb_strtotime($v);
                    
228      if ($ts === -1 || $ts === false) {         throw new PropelException("Unable to parse date/time value for [fecultpag] from input: " . var_export($v, true));
                    
229      }
                    
414	
                    
415	public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
                    
416	{
                    
                
BrandSettingsController.php https://gitlab.com/hyandi.work/lovebrand_test_work | PHP | 319 lines
                    
1<?php
                    
2/**
                    
110
                    
111        //error_log(var_export($img, true));
                    
112
                    
                
RequestTest.php https://github.com/EvanDotPro/zf2.git | PHP | 343 lines
                    
1<?php
                    
2/**
                    
18 */
                    
19class RequestTest extends \PHPUnit_Framework_TestCase
                    
20{
                    
109        $type  = 'dateTime.iso8601';
                    
110        $this->assertTrue(isset($param->{$type}), var_export($param, 1));
                    
111        $this->assertEquals($time, strtotime((string) $param->{$type}));
                    
                
BaseReportAnswer.php https://github.com/mori-dev/emacs-symfony.git | PHP | 488 lines
                    
1<?php
                    
2
                    
58						$ts = strtotime($this->created_at);
                    
59			if ($ts === -1 || $ts === false) { 				throw new PropelException("Unable to parse value of [created_at] as date/time value: " . var_export($this->created_at, true));
                    
60			}
                    
106			$ts = strtotime($v);
                    
107			if ($ts === -1 || $ts === false) { 				throw new PropelException("Unable to parse date/time value for [created_at] from input: " . var_export($v, true));
                    
108			}
                    
283	
                    
284	public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
                    
285	{
                    
308	
                    
309	public function toArray($keyType = BasePeer::TYPE_PHPNAME)
                    
310	{
                    
320	
                    
321	public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)
                    
322	{
                    
                
PHP5TableMapBuilder.php https://gitlab.com/Isaki/le331.fr | PHP | 376 lines
                    
49    {
                    
50        return $this->getTable()->getPhpName() . 'TableMap';
                    
51    }
                    
62    /**
                    
63     * Adds class phpdoc comment and opening of class.
                    
64     *
                    
173        \$this->setName('" . $table->getName() . "');
                    
174        \$this->setPhpName('" . $table->getPhpName() . "');
                    
175        \$this->setClassname('" . addslashes($this->getStubObjectBuilder()->getFullyQualifiedClassname()) . "');
                    
224                    $script .= "
                    
225        \$this->addPrimaryKey('$cup', '$cfc', '" . $col->getType() . "', " . var_export($col->isNotNull(), true) . ", " . $size . ", $default);";
                    
226                }
                    
234                    $script .= "
                    
235        \$this->addColumn('$cup', '$cfc', '" . $col->getType() . "', " . var_export($col->isNotNull(), true) . ", " . $size . ", $default);";
                    
236                }
                    
                
BaseVarDumper.php https://gitlab.com/afzalpotenza/YII_salon | PHP | 272 lines
                    
57            $result = highlight_string("<?php\n" . self::$_output, true);
                    
58            self::$_output = preg_replace('/&lt;\\?php<br \\/>/', '', $result, 1);
                    
59        }
                    
119                    self::$_output .= "$className#$id\n" . $spaces . '(';
                    
120                    if ('__PHP_Incomplete_Class' !== get_class($var) && method_exists($var, '__debugInfo')) {
                    
121                        $dumpValues = $var->__debugInfo();
                    
141     *
                    
142     * The string is a valid PHP expression that can be evaluated by PHP parser
                    
143     * and the evaluation result will give back the variable value.
                    
144     *
                    
145     * This method is similar to `var_export()`. The main difference is that
                    
146     * it generates more compact string representation using short array syntax.
                    
147     *
                    
148     * It also handles objects by using the PHP functions serialize() and unserialize().
                    
149     *
                    
                
Translator.php https://gitlab.com/techniconline/kmc | PHP | 440 lines
                    
1<?php
                    
2
                    
343                    $fallback,
                    
344                    var_export($this->catalogues[$fallback]->all(), true),
                    
345                    $currentSuffix,
                    
351            $content = sprintf(<<<EOF
                    
352<?php
                    
353
                    
363                $locale,
                    
364                var_export($this->catalogues[$locale]->all(), true),
                    
365                $fallbackContent
                    
377    {
                    
378        return $this->cacheDir . '/catalogue.' . $locale . '.' . sha1(serialize($this->fallbackLocales)) . '.php';
                    
379    }
                    
                
MethodScanner.php https://github.com/sidealice/zf2.git | PHP | 332 lines
                    
1<?php
                    
2
                    
328        $this->scan();
                    
329        return var_export($this, true);
                    
330    }
                    
                
ImageSizeTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 243 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: ImageSizeTest.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
23// Call Zend_Validate_File_ImageSizeTest::main() if this source file is executed directly.
                    
24if (!defined("PHPUnit_MAIN_METHOD")) {
                    
25    define("PHPUnit_MAIN_METHOD", "Zend_Validate_File_ImageSizeTest::main");
                    
30 */
                    
31require_once 'Zend/Validate/File/ImageSize.php';
                    
32
                    
40 */
                    
41class Zend_Validate_File_ImageSizeTest extends PHPUnit_Framework_TestCase
                    
42{
                    
49    {
                    
50        $suite  = new PHPUnit_Framework_TestSuite("Zend_Validate_File_ImageSizeTest");
                    
51        $result = PHPUnit_TextUI_TestRunner::run($suite);
                    
                
OpenID_detect.php https://gitlab.com/r.collas/site_central | PHP | 511 lines
                    
169
                    
170		$gmp_lnk = $r->link('http://www.php.net/manual/en/ref.gmp.php', 'GMP');
                    
171		$bc_lnk = $r->link('http://www.php.net/manual/en/ref.bc.php', 'bcmath');
                    
189								'You may want to look into installing the GMP extension.');
                    
190				$lnk = $r->link('http://www.php.net/manual/en/ref.gmp.php');
                    
191				$out .= $r->p('See ' . $lnk . ' for more information ' .
                    
331	if (gettype($basedir_str) == 'string') {
                    
332		$url = 'http://www.php.net/manual/en/features.safe-mode.php' .
                    
333						'#ini.open-basedir';
                    
400						'The OpenID library will use an fsockopen()-based fetcher.');
                    
401		$lnk = $r->link('http://us3.php.net/manual/en/ref.curl.php');
                    
402		$out .= $r->p('See ' . $lnk . ' about enabling the libcurl support ' .
                    
474					'Cannot find the OpenID library. It must be in your PHP include ' .
                    
475					'path. Your PHP include path is currently:');
                    
476	$body .= $r->pre($path);
                    
                
SearchService.php https://gitlab.com/contextualcode/symfony-ez5-search-bundle | PHP | 428 lines
                    
1<?php
                    
2namespace ThinkCreative\SearchBundle\Services;
                    
223                                    if ($facetField->field()) {
                    
224                                        $facetField->param("f." . $facetField->field() . ".facet.{$ffKey}", var_export($ffValue, true));
                    
225                                    } else {
                    
225                                    } else {
                    
226                                        $facetField->param("facet.{$ffKey}", var_export($ffValue, true));    
                    
227                                    }
                    
                
CoreMacros.php https://bitbucket.org/iiic/iszp.git | PHP | 413 lines
                    
1<?php
                    
2
                    
17	Nette\Latte\MacroNode,
                    
18	Nette\Latte\PhpWriter;
                    
19
                    
32 * - {!=expression} echo without escaping
                    
33 * - {?expression} evaluate PHP statement
                    
34 * - {_expression} echo translation with escaping
                    
73		$me->addMacro('debugbreak', array($me, 'macroDebugbreak'));
                    
74		$me->addMacro('l', '?>{<?php');
                    
75		$me->addMacro('r', '?>}<?php');
                    
98		return array('list($_l, $_g) = Nette\Latte\Macros\CoreMacros::initRuntime($template, '
                    
99			. var_export($this->getCompiler()->getTemplateId(), TRUE) . ')');
                    
100	}
                    
110	 */
                    
111	public function macroIf(MacroNode $node, PhpWriter $writer)
                    
112	{
                    
                
Method.php https://gitlab.com/Sigpot/AirSpot | PHP | 220 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * This file is part of phpDocumentor.
                    
4 *
                    
7 *
                    
8 * @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
                    
9 * @license   http://www.opensource.org/licenses/mit-license.php MIT
                    
9 * @license   http://www.opensource.org/licenses/mit-license.php MIT
                    
10 * @link      http://phpdoc.org
                    
11 */
                    
12
                    
13namespace phpDocumentor\Reflection\DocBlock\Tags;
                    
14
                    
14
                    
15use phpDocumentor\Reflection\DocBlock\Description;
                    
16use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
                    
                
State.php https://bitbucket.org/sahkoinenaanestys/sahkoinenaanestys.git | PHP | 349 lines
                    
1<?php
                    
2
                    
27 * @author Olav Morken, UNINETT AS.
                    
28 * @package simpleSAMLphp
                    
29 * @version $Id$
                    
165
                    
166		SimpleSAML_Logger::debug('Saved state: ' . var_export($return, TRUE));
                    
167
                    
186
                    
187			SimpleSAML_Logger::debug('Cloned state: ' . var_export($state[self::ID], TRUE));
                    
188		} else {
                    
211		assert('is_bool($allowMissing)');
                    
212		SimpleSAML_Logger::debug('Loading state: ' . var_export($id, TRUE));
                    
213
                    
280
                    
281		SimpleSAML_Logger::debug('Deleting state: ' . var_export($state[self::ID], TRUE));
                    
282
                    
                
Descriptor.php https://gitlab.com/pr0055/symfonypizza | PHP | 312 lines
                    
1<?php
                    
2
                    
216
                    
217        return preg_replace("/\n\s*/s", '', var_export($value, true));
                    
218    }
                    
                
SplPriorityQueue.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 506 lines
                    
1<?php
                    
2/**
                    
20
                    
21if (version_compare(PHP_VERSION, '5.3.0', '<')) {
                    
22    /**
                    
24     *
                    
25     * PHP 5.2.X userland implementation of PHP's SplPriorityQueue
                    
26     */
                    
84         * Unused internally, and only included in order to retain the same
                    
85         * interface as PHP's SplPriorityQueue.
                    
86         *
                    
130                    "Queue was prepared, but is empty?\n    PreparedQueue: %s\n    Internal Queue: %s\n",
                    
131                    var_export($this->preparedQueue, 1),
                    
132                    var_export($this->queue, 1)
                    
410    {
                    
411        $this->isPhp53 = version_compare(PHP_VERSION, '5.3', '>=');
                    
412    }
                    
                
ActionTest.php https://github.com/mfairchild365/zf2.git | PHP | 310 lines
                    
1<?php
                    
2/**
                    
42 */
                    
43class ActionTest extends \PHPUnit_Framework_TestCase
                    
44{
                    
56            'SCRIPT_FILENAME' => __FILE__,
                    
57            'PHP_SELF'        => __FILE__,
                    
58        );
                    
69
                    
70        $this->view   = new \Zend\View\PhpRenderer();
                    
71        $this->helper = new Helper\Action();
                    
165        $value = $this->helper->direct('baz', 'action-foo', null, array('bat' => 'This is my message'));
                    
166        $this->assertNotContains('BOGUS', $value, var_export($this->helper->request->getUserParams(), 1));
                    
167        $this->assertContains('This is my message', $value);
                    
                
AbstractController.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 291 lines
                    
1<?php
                    
2/**
                    
16/**
                    
17 * @SuppressWarnings(PHPMD.NumberOfChildren)
                    
18 */
                    
18 */
                    
19abstract class AbstractController extends \PHPUnit_Framework_TestCase
                    
20{
                    
141     * @param string $valueRegex
                    
142     * @throws \PHPUnit_Framework_AssertionFailedError when header not found
                    
143     */
                    
154        if (!$headerFound) {
                    
155            $this->fail("Header '{$headerName}' was not found. Headers dump:\n" . var_export($headers, 1));
                    
156        }
                    
167     *
                    
168     * @param \PHPUnit_Framework_Constraint|null $urlConstraint
                    
169     */
                    
                
rsscloudnotifier.php https://gitlab.com/BeS/io.schiessle.org | PHP | 234 lines
                    
1<?php
                    
2/**
                    
6 *
                    
7 * PHP version 5
                    
8 *
                    
91                           $endpoint);
                    
92                common_debug('body = ' . var_export($body, true));
                    
93                return false;
                    
98                       ' - got HTTP ' . $status);
                    
99            common_debug('body = ' . var_export($body, true));
                    
100            return false;
                    
                
IniTest.php https://github.com/mrbanzai/zf2.git | PHP | 225 lines
                    
1<?php
                    
2/**
                    
34/**
                    
35 * PHPUnit test case
                    
36 */
                    
45 */
                    
46class IniTest extends \PHPUnit_Framework_TestCase
                    
47{
                    
79        $this->assertEquals('Küchen Möbel (en)', $adapter->translate('Cooking_furniture'));
                    
80        if (version_compare(PHP_VERSION, '5.3.0', '<>')) {
                    
81            $this->assertEquals('Cooking furniture (en)', $adapter->translate('Küchen_Möbel'), var_export($adapter->getMessages('en'), 1));
                    
82        } else {
                    
83            $this->markTestSkipped('PHP 5.3.0 cannot utilize non-ASCII characters for INI option keys. This PHP bug has been fixed with PHP 5.3.1');
                    
84        }
                    
211    /**
                    
212     * Ignores a raised PHP error when in effect, but throws a flag to indicate an error occurred
                    
213     *
                    
                
mysqlnduhconnection.nextresult.html https://bitbucket.org/stillzhl/manuals.git | HTML | 119 lines
                    
11 <div class="up"><a href="class.mysqlnduhconnection.html">MysqlndUhConnection</a></div>
                    
12 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
13</div><hr /><div id="mysqlnduhconnection.nextresult" class="refentry">
                    
69<div class="phpcode"><code><span style="color: #000000">
                    
70<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">class&nbsp;</span><span style="color: #0000BB">proxy&nbsp;</span><span style="color: #007700">extends&nbsp;</span><span style="color: #0000BB">MysqlndUhConnection&nbsp;</span><span style="color: #007700">{<br />&nbsp;public&nbsp;function&nbsp;</span><span style="color: #0000BB">nextResult</span><span style="color: #007700">(</span><span style="color: #0000BB">$res</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;</span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"%s(%s)\n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">__METHOD__</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">var_export</span><span style="color: #007700">(</span><span style="color: #0000BB">func_get_args</span><span style="color: #007700">(),&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">));<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$ret&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">parent</span><span style="color: #007700">::</span><span style="color: #0000BB">nextResult</span><span style="color: #007700">(</span><span style="color: #0000BB">$res</span><span style="color: #007700">);<br />&nbsp;&nbsp;</span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"%s&nbsp;returns&nbsp;%s\n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">__METHOD__</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">var_export</span><span style="color: #007700">(</span><span style="color: #0000BB">$ret</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">));<br />&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">$ret</span><span style="color: #007700">;<br />&nbsp;}<br />}<br /></span><span style="color: #0000BB">mysqlnd_uh_set_connection_proxy</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">proxy</span><span style="color: #007700">());<br /><br /></span><span style="color: #0000BB">$mysqli&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">mysqli</span><span style="color: #007700">(</span><span style="color: #DD0000">"localhost"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"root"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">""</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"test"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$mysqli</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">multi_query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT&nbsp;1&nbsp;AS&nbsp;_one;&nbsp;SELECT&nbsp;2&nbsp;AS&nbsp;_two"</span><span style="color: #007700">);<br />do&nbsp;{<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$res&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$mysqli</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">store_result</span><span style="color: #007700">();<br />&nbsp;&nbsp;</span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$res</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fetch_assoc</span><span style="color: #007700">());<br />&nbsp;&nbsp;</span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"%s\n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">str_repeat</span><span style="color: #007700">(</span><span style="color: #DD0000">"-"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">40</span><span style="color: #007700">));<br />}&nbsp;while&nbsp;(</span><span style="color: #0000BB">$mysqli</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">more_results</span><span style="color: #007700">()&nbsp;&amp;&amp;&nbsp;</span><span style="color: #0000BB">$mysqli</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">next_result</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">?&gt;</span>
                    
71</span>
                    
117 <div class="up"><a href="class.mysqlnduhconnection.html">MysqlndUhConnection</a></div>
                    
118 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
119</div></body></html>
                    
                
JSMin.php https://github.com/jthamrick/devbox.git | PHP | 314 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * jsmin.php - PHP implementation of Douglas Crockford's JSMin.
                    
4 *
                    
4 *
                    
5 * This is a direct port of jsmin.c to PHP with a few PHP performance tweaks and
                    
6 * modifications to preserve some comments (see below). Also, rather than using
                    
13 *
                    
14 * PHP 5 or higher is required.
                    
15 *
                    
43 * @package JSMin
                    
44 * @author Ryan Grove <ryan@wonko.com> (PHP port)
                    
45 * @author Steve Clay <steve@mrclay.org> (modifications + cleanup)
                    
47 * @copyright 2002 Douglas Crockford <douglas@crockford.com> (jsmin.c)
                    
48 * @copyright 2008 Ryan Grove <ryan@wonko.com> (PHP port)
                    
49 * @license http://opensource.org/licenses/mit-license.php MIT License
                    
                
Db.php https://github.com/m4n3z40/WeLearn.git | PHP | 273 lines
                    
1<?php
                    
2
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Db.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
98     * }
                    
99     * var_export($const);
                    
100     */
                    
213             */
                    
214            require_once 'Zend/Db/Exception.php';
                    
215            throw new Zend_Db_Exception('Adapter parameters must be in an array or a Zend_Config object');
                    
224             */
                    
225            require_once 'Zend/Db/Exception.php';
                    
226            throw new Zend_Db_Exception('Adapter name must be specified in a string');
                    
248        if (!class_exists($adapterName)) {
                    
249            require_once 'Zend/Loader.php';
                    
250            Zend_Loader::loadClass($adapterName);
                    
                
Writer.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 311 lines
                    
1<?php namespace Illuminate\Log;
                    
2
                    
297			{
                    
298				$parameters[0] = var_export($parameters[0], true);
                    
299			}
                    
305			{
                    
306				$parameters[0] = var_export($parameters[0]->toArray(), true);
                    
307			}
                    
                
text.php https://github.com/t73biz/BaseApp.git | PHP | 334 lines
                    
1<?php
                    
2/**
                    
6 *
                    
7 * PHP versions 4 and 5
                    
8 *
                    
8 *
                    
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
10 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @link          http://cakephp.org CakePHP(tm) Project
                    
17 * @package       cake
                    
18 * @subpackage    cake.cake.libs.view.helpers
                    
19 * @since         CakePHP(tm) v 0.10.0.1076
                    
20 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
118		foreach ($options as $option => $value) {
                    
119			$value = var_export($value, true);
                    
120			$linkOptions .= "'$option' => $value, ";
                    
                
Serializer.php https://gitlab.com/pr0055/symfonypizza | PHP | 285 lines
                    
1<?php
                    
2
                    
165
                    
166        throw new UnexpectedValueException(sprintf('An unexpected value could not be normalized: %s', var_export($data, true)));
                    
167    }
                    
                
RouterDebugCommand.php https://github.com/nattaphat/hgis.git | PHP | 192 lines
                    
1<?php
                    
2
                    
56
                    
57  <info>php %command.full_name%</info>
                    
58EOF
                    
178
                    
179        return preg_replace("/\n\s*/s", '', var_export($value, true));
                    
180    }
                    
                
NullTest.php https://bitbucket.org/pcelta/zf2.git | PHP | 294 lines
                    
1<?php
                    
2/**
                    
20 */
                    
21class NullTest extends \PHPUnit_Framework_TestCase
                    
22{
                    
61                '%s (%s) is not filtered as %s; type = %s',
                    
62                var_export($value, true),
                    
63                gettype($value),
                    
63                gettype($value),
                    
64                var_export($expected, true),
                    
65                $type
                    
83                    '%s (%s) is not filtered as %s; type = %s',
                    
84                    var_export($value, true),
                    
85                    gettype($value),
                    
85                    gettype($value),
                    
86                    var_export($expected, true),
                    
87                    var_export($type, true)
                    
                
sjcycle.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 129 lines
                    
1<?php 
                    
2include_spip('sjcycle_fonctions');
                    
56		    if ($oldval != $valeurs[$name]) {
                    
57		    	$log_modif .= $name . ':' . var_export($oldval, true) . '/' . var_export($valeurs[$name], true) .', ';
                    
58		    }
                    
                
class.csstidy_csst.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 135 lines
                    
1<?php
                    
2
                    
2
                    
3require_once 'class.Text_Diff_Renderer_parallel.php';
                    
4
                    
21    
                    
22    /** Expected var_export() output of $css->css[41] (no at block) */
                    
23    var $expect = '';
                    
124						array(
                    
125								explode("\n", $this->print?$this->expect:var_export($this->expect,true)),
                    
126								explode("\n", $this->print?$this->actual:var_export($this->actual,true))
                    
                
ObjectRegistry.php https://gitlab.com/vannh/portal_training | PHP | 318 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://cakephp.org CakePHP(tm) Project
                    
12 * @since         3.0.0
                    
12 * @since         3.0.0
                    
13 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
14 */
                    
23 * Provides registry & factory functionality for object types. Used
                    
24 * as a super class for various composition based re-use features in CakePHP.
                    
25 *
                    
136            $msg .= ' with the following config: ';
                    
137            $msg .= var_export($existingConfig, true);
                    
138            $msg .= ' which differs from ' . var_export($config, true);
                    
                
CaptchaTest.php https://github.com/Exercise/zf2.git | PHP | 156 lines
                    
1<?php
                    
2/**
                    
37 */
                    
38class CaptchaTest extends \PHPUnit_Framework_TestCase
                    
39{
                    
121        $valid = $this->form->isValid($data);
                    
122        $this->assertTrue($valid, var_export($this->form->getMessages(), 1));
                    
123    }
                    
131        $this->assertTrue(is_array($decorators));
                    
132        $this->assertTrue(array_key_exists('Zend\Form\Decorator\Errors', $decorators), 'Missing Errors decorator' . var_export(array_keys($decorators), 1));
                    
133        $this->assertTrue(array_key_exists('Zend\Form\Decorator\Description', $decorators), 'Missing Description decorator' . var_export(array_keys($decorators), 1));
                    
133        $this->assertTrue(array_key_exists('Zend\Form\Decorator\Description', $decorators), 'Missing Description decorator' . var_export(array_keys($decorators), 1));
                    
134        $this->assertTrue(array_key_exists('Zend\Form\Decorator\HtmlTag', $decorators), 'Missing HtmlTag decorator' . var_export(array_keys($decorators), 1));
                    
135        $this->assertTrue(array_key_exists('Zend\Form\Decorator\Label', $decorators), 'Missing Label decorator' . var_export(array_keys($decorators), 1));
                    
                
BlockMacros.php https://gitlab.com/adam.kvita/MI-VMM-SIFT | PHP | 407 lines
                    
75				$functions[$name] = $this->generateMethodName($name),
                    
76				'?>' . $compiler->expandTokens($code) . '<?php',
                    
77				'$_args'
                    
139	 */
                    
140	public function macroIncludeBlock(MacroNode $node, PhpWriter $writer)
                    
141	{
                    
239				$this->checkExtraArgs($node);
                    
240				return $writer->write("?>\n<$tag id=\"<?php echo htmlSpecialChars(\$this->global->snippetDriver->getHtmlId({$writer->formatWord($name)})) ?>\"><?php " . $enterCode);
                    
241
                    
295			$this->checkExtraArgs($node);
                    
296			return $writer->write("?>\n<$tag id=\"<?php echo htmlSpecialChars(\$this->global->snippetDriver->getHtmlId(%var)) ?>\"><?php $include ?>\n</$tag><?php ",
                    
297				(string) substr($name, 1), $name
                    
376	 */
                    
377	public function macroIfset(MacroNode $node, PhpWriter $writer)
                    
378	{
                    
                
shared.php https://github.com/rjdjohnston/core.git | PHP | 220 lines
                    
1<?php
                    
2
                    
27
                    
28		// Check the level of php available
                    
29		public static function PHP ( $required ) {
                    
29		public static function PHP ( $required ) {
                    
30			if( 1 == version_compare( $required, phpversion() ) )
                    
31				Check::bad( "Your PHP version is too low, the minimum required is $required." );
                    
32			else
                    
33				Check::good( "PHP Version " . phpversion() . " meets requirement." );
                    
34		}
                    
37			if( $expected != ini_get( $setting ) )
                    
38				Check::bad( "PHP Setting '$setting' should be '". var_export( $expected, true ) . "'." );
                    
39			else
                    
39			else
                    
40				Check::good( "PHP Setting '$setting' is '" . var_export( $expected, true ) ."'." );
                    
41		}
                    
                
Row.php https://github.com/quarkness/piwik.git | PHP | 490 lines
                    
1<?php
                    
2/**
                    
51	/**
                    
52	 * Efficient load of the Row structure from a well structured php array
                    
53	 * 
                    
112			if(is_string($value)) $value = "'$value'";
                    
113			elseif(is_array($value)) $value = var_export($value, true);
                    
114			$columns[] = "'$column' => $value";
                    
120			if(is_string($value)) $value = "'$value'";
                    
121			elseif(is_array($value)) $value = var_export($value, true);
                    
122			$metadata[] = "'$name' => $value";
                    
194	 * 					'column1' 	=> VALUE,
                    
195	 * 					'label' 	=> 'www.php.net'
                    
196	 * 					'nb_visits' => 15894,
                    
271	 * @param array array( 
                    
272	 * 					'label' 	=> 'www.php.net'
                    
273	 * 					'nb_visits' => 15894,
                    
                
FileSystemS3.php https://github.com/geraintp/frontend.git | PHP | 175 lines
                    
1<?php
                    
2/**
                    
78    if(!$res->isOK())
                    
79      getLogger()->crit(var_export($res));
                    
80    return $res->isOK();
                    
105      foreach($responses as $resp)
                    
106        getLogger()->crit(var_export($resp, 1));
                    
107    }
                    
137      {
                    
138        getLogger()->crit('Failed initializing file system: ' . var_export($res, 1));
                    
139        return false;
                    
                
pdosqlite3.lib.php https://gitlab.com/paulmfoster/grotworx | PHP | 415 lines
                    
1<?php
                    
2
                    
55		error_log("SQL: $sql\n", 3, 'error.log');
                    
56		$pdo_message = var_export($this->handle->errorInfo()[2], TRUE);
                    
57		error_log("PDO error: $pdo_message\n", 3, 'error.log');
                    
118	 * NOTE: I learned the hard way-- the pragma_table_info() and
                    
119	 * similar functions were added in SQLite version 3.16.0. If PHP's
                    
120	 * version of SQLite is less than this, the query will fail with
                    
120	 * version of SQLite is less than this, the query will fail with
                    
121	 * inscrutable errors. Run phpinfo() to determine your version of
                    
122	 * PHP and the SQLite3 module.
                    
                
1810.php https://gitlab.com/iranjith4/hhvm | PHP | 325 lines
                    
1<?php
                    
2
                    
22function dump($val) {
                    
23    return var_export( $val, true );
                    
24}
                    
                
PhpMatcherDumper.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 398 lines
                    
18/**
                    
19 * PhpMatcherDumper creates a PHP class able to match URLs for a given set of routes.
                    
20 *
                    
29    /**
                    
30     * Dumps a set of routes to a PHP class.
                    
31     *
                    
38     *
                    
39     * @return string A PHP class representing the matcher class
                    
40     */
                    
148    /**
                    
149     * Generates PHP code recursively to match a tree of routes
                    
150     *
                    
235            }
                    
236            $conditions[] = sprintf("preg_match(%s, \$pathinfo, \$matches)", var_export($regex, true));
                    
237
                    
                
features.api.php https://github.com/woeldiche/dev.module.git | PHP | 343 lines
                    
1<?php
                    
2
                    
142 * @return array
                    
143 *   An associative array of rendered PHP code where the key is the name of the
                    
144 *   hook that should wrap the PHP code. The hook should not include the name
                    
150  foreach ($data as $name) {
                    
151    $code[] = "  \$mycomponents['{$name}'] = " . features_var_export(mycomponent_load($name)) .";";
                    
152  }
                    
                
Stream.php https://gitlab.com/ealexis.t/trends | PHP | 245 lines
                    
1<?php
                    
2namespace GuzzleHttp\Psr7;
                    
6/**
                    
7 * PHP stream implementation.
                    
8 *
                    
200            throw new \RuntimeException('Unable to seek to stream position '
                    
201                . $offset . ' with whence ' . var_export($whence, true));
                    
202        }
                    
                
Vault.php https://gitlab.com/yousafsyed/easternglamor | PHP | 394 lines
                    
1<?php
                    
2/**
                    
16 *
                    
17 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
18 */
                    
89     * @param \Magento\Directory\Model\ResourceModel\Country\CollectionFactory $countryFactory
                    
90     * @SuppressWarnings(PHPMD.ExcessiveParameterList)
                    
91     */
                    
243     * @throws LocalizedException
                    
244     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
245     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
336        if ($this->config->isDebugEnabled() && !empty($debugData)) {
                    
337            $this->logger->debug(var_export($debugData, true));
                    
338        }
                    
                
sfFactoryConfigHandler.class.php https://github.com/IDCI-Consulting/WebsiteEval.git | PHP | 256 lines
                    
97        case 'response':
                    
98          $instances[] = sprintf("  \$class = sfConfig::get('sf_factory_response', '%s');\n  \$this->factories['response'] = new \$class(\$this->dispatcher, sfConfig::get('sf_factory_response_parameters', array_merge(array('http_protocol' => isset(\$_SERVER['SERVER_PROTOCOL']) ? \$_SERVER['SERVER_PROTOCOL'] : null), %s)));", $class, var_export($parameters, true));
                    
99          // TODO: this is a bit ugly, as it only works for sfWebRequest & sfWebResponse combination. see #3397
                    
111
                    
112          $instances[] = sprintf("  \$class = sfConfig::get('sf_factory_storage', '%s');\n  \$this->factories['storage'] = new \$class(array_merge(array(\n%s\n), sfConfig::get('sf_factory_storage_parameters', %s)));", $class, implode("\n", $defaultParameters), var_export($parameters, true));
                    
113          break;
                    
128                             "  }\n",
                    
129                             $class, var_export($parameters, true), $config['view_cache_manager']['class'], var_export($config['view_cache_manager']['param'], true));
                    
130          break;
                    
148                     "  }\n"
                    
149                     , $class, $cache, var_export($parameters, true)
                    
150                     );
                    
155          {
                    
156            $cache = sprintf("    \$cache = new %s(%s);\n", $parameters['cache']['class'], var_export($parameters['cache']['param'], true));
                    
157            unset($parameters['cache']);
                    
                
PropelMigrationManager.php https://gitlab.com/Isaki/le331.fr | PHP | 369 lines
                    
1<?php
                    
2
                    
10
                    
11require_once dirname(__FILE__) . '/../model/Table.php';
                    
12require_once dirname(__FILE__) . '/../model/Column.php';
                    
12require_once dirname(__FILE__) . '/../model/Column.php';
                    
13require_once dirname(__FILE__) . '/PropelSQLParser.php';
                    
14require_once dirname(__FILE__) . '/../../../runtime/lib/Propel.php';
                    
75        $adapterClass = ucfirst($adapter) . 'Platform';
                    
76        require_once sprintf('%s/../platform/%s.php',
                    
77            dirname(__FILE__),
                    
214            foreach ($files as $file) {
                    
215                if (preg_match('/^PropelMigration_(\d+)\.php$/', $file, $matches)) {
                    
216                    $migrationTimestamps[] = (integer) $matches[1];
                    
278        $className = $this->getMigrationClassName($timestamp);
                    
279        require_once sprintf('%s/%s.php',
                    
280            $this->getMigrationDir(),
                    
                
ajax.php https://github.com/josesanch/wimpy.git | PHP | 267 lines
                    
1<?php
                    
2
                    
82                web::log("$action, $id, $field");
                    
83                web::log(var_export($_FILES, true));
                    
84                if (isset($id)) {
                    
                
ImageSizeTest.php https://github.com/Exercise/zf2.git | PHP | 253 lines
                    
1<?php
                    
2/**
                    
30// Call Zend_Validate_File_ImageSizeTest::main() if this source file is executed directly.
                    
31if (!defined("PHPUnit_MAIN_METHOD")) {
                    
32    define("PHPUnit_MAIN_METHOD", "Zend_Validate_File_ImageSizeTest::main");
                    
50 */
                    
51class ImageSizeTest extends \PHPUnit_Framework_TestCase
                    
52{
                    
59    {
                    
60        $suite  = new \PHPUnit_Framework_TestSuite("Zend_Validate_File_ImageSizeTest");
                    
61        $result = \PHPUnit_TextUI_TestRunner::run($suite);
                    
86                $validator->isValid(__DIR__ . '/_files/picture.jpg'),
                    
87                "Tested with " . var_export($element, 1)
                    
88            );
                    
                
Helpers.php https://github.com/premiumcombination/nts.git | PHP | 206 lines
                    
1<?php
                    
2
                    
76		if (is_bool($var)) {
                    
77			return '<span class="php-bool">' . ($var ? 'TRUE' : 'FALSE') . "</span>\n";
                    
78
                    
79		} elseif ($var === NULL) {
                    
80			return "<span class=\"php-null\">NULL</span>\n";
                    
81
                    
82		} elseif (is_int($var)) {
                    
83			return "<span class=\"php-int\">$var</span>\n";
                    
84
                    
85		} elseif (is_float($var)) {
                    
86			$var = var_export($var, TRUE);
                    
87			if (strpos($var, '.') === FALSE) {
                    
89			}
                    
90			return "<span class=\"php-float\">$var</span>\n";
                    
91
                    
                
App.class.php https://github.com/cdjflxk/ecshop_flxk.git | PHP | 225 lines
                    
39            // 运行模式无需载入项目编译缓存
                    
40        }elseif(is_file(RUNTIME_PATH.'~app.php')  && (!is_file(CONFIG_PATH.'config.php') || filemtime(RUNTIME_PATH.'~app.php')>filemtime(CONFIG_PATH.'config.php'))) {
                    
41            // 直接读取编译后的项目文件
                    
88        if(is_file(COMMON_PATH.'common.php')) {
                    
89            include COMMON_PATH.'common.php';
                    
90            if(!$debug) { // 编译文件
                    
94        // 加载项目编译文件列表
                    
95        if(is_file(CONFIG_PATH.'app.php')) {
                    
96            $list   =  include CONFIG_PATH.'app.php';
                    
121                $content .= $common."\nreturn ".var_export(C(),true).';';
                    
122                file_put_contents(RUNTIME_PATH.'~allinone.php',strip_whitespace('<?php '.$content));
                    
123            }else{
                    
123            }else{
                    
124                $content  = "<?php ".$common."\nreturn ".var_export(C(),true).";\n?>";
                    
125                file_put_contents(RUNTIME_PATH.'~app.php',strip_whitespace($content));
                    
                
FilesSizeTest.php https://github.com/mrbanzai/zf2.git | PHP | 202 lines
                    
1<?php
                    
2/**
                    
36 */
                    
37class FilesSizeTest extends \PHPUnit_Framework_TestCase
                    
38{
                    
65                $validator->isValid(__DIR__ . '/_files/testsize.mo'),
                    
66                "Tested with " . var_export($element, 1)
                    
67            );
                    
70                $validator->isValid(__DIR__ . '/_files/testsize2.mo'),
                    
71                "Tested with " . var_export($element, 1)
                    
72            );
                    
75                $validator->isValid(__DIR__ . '/_files/testsize3.mo'),
                    
76                "Tested with " . var_export($element, 1)
                    
77            );
                    
                
ActionTest.php https://github.com/alab1001101/zf2.git | PHP | 313 lines
                    
1<?php
                    
2/**
                    
43 */
                    
44class ActionTest extends \PHPUnit_Framework_TestCase
                    
45{
                    
57            'SCRIPT_FILENAME' => __FILE__,
                    
58            'PHP_SELF'        => __FILE__,
                    
59        );
                    
172        $value = $this->helper->direct('baz', 'action-foo', null, array('bat' => 'This is my message'));
                    
173        $this->assertNotContains('BOGUS', $value, var_export($this->helper->request->getUserParams(), 1));
                    
174        $this->assertContains('This is my message', $value);
                    
                
ExportPhparray.php https://gitlab.com/luyxtran264/myproject | PHP | 242 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
19/**
                    
20 * Handles the export for the PHP Array class
                    
21 *
                    
21 *
                    
22 * @package    PhpMyAdmin-Export
                    
23 * @subpackage PHP
                    
42        $exportPluginProperties = new ExportPluginProperties();
                    
43        $exportPluginProperties->setText('PHP array');
                    
44        $exportPluginProperties->setExtension('php');
                    
77            . '/**' . $GLOBALS['crlf']
                    
78            . ' * Export to PHP Array plugin for PHPMyAdmin' . $GLOBALS['crlf']
                    
79            . ' * @version 0.2b' . $GLOBALS['crlf']
                    
184        // fix variable names (based on
                    
185        // http://www.php.net/manual/language.variables.basics.php)
                    
186        if (!preg_match(
                    
                
Db.php https://gitlab.com/devtoannh/cafe | PHP | 286 lines
                    
1<?php
                    
2
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Db.php 24417 2011-08-28 10:15:47Z padraic $
                    
21 */
                    
101     * }
                    
102     * var_export($const);
                    
103     */
                    
226             */
                    
227            require_once 'Zend/Db/Exception.php';
                    
228            throw new Zend_Db_Exception('Adapter parameters must be in an array or a Zend_Config object');
                    
237             */
                    
238            require_once 'Zend/Db/Exception.php';
                    
239            throw new Zend_Db_Exception('Adapter name must be specified in a string');
                    
261        if (!class_exists($adapterName)) {
                    
262            require_once 'Zend/Loader.php';
                    
263            Zend_Loader::loadClass($adapterName);
                    
                
Tester.php git://github.com/atk4/atk4.git | PHP | 364 lines
                    
1<?php
                    
2/**
                    
319                    $row[$key.'_res'] = '<font color="red">'.htmlspecialchars($result).'</font><br/>'.
                    
320                        var_export($this->proper_responses[$k], true);
                    
321                }
                    
322
                    
323                $this->responses[] = '"'.$k.'"'.'=>'.var_export($result, true);
                    
324            }
                    
                
ApiShell.php https://bitbucket.org/luobailiang/cake.git | PHP | 232 lines
                    
4 *
                    
5 * Implementation of a Cake Shell to show CakePHP core method signatures.
                    
6 *
                    
8 *
                    
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
10 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @link          http://cakephp.org CakePHP(tm) Project
                    
17 * @since         CakePHP(tm) v 1.2.0.5012
                    
144		))->addArgument('className', array(
                    
145			'help' => __d('cake_console', 'A CakePHP core class name (e.g: Component, HtmlHelper).')
                    
146		))->addOption('method', array(
                    
148			'help' => __d('cake_console', 'The specific method you want help on.')
                    
149		))->description(__d('cake_console', 'Lookup doc block comments for classes in CakePHP.'));
                    
150		return $parser;
                    
                
rich.php https://gitlab.com/Drulenium-bot/devel | PHP | 319 lines
                    
1<?php
                    
2
                    
75						. ' variables: '
                    
76						. htmlspecialchars( var_export( $kintVar->_alternatives, true ), ENT_QUOTES )
                    
77					);
                    
111			} else {
                    
112				$output .= 'PHP internal call';
                    
113			}
                    
                
Client.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 427 lines
                    
1<?php
                    
2
                    
134        $curlVersion = curl_version();
                    
135        return $this->userAgentPrefix . 'MaxMind-WS-API/' . Client::VERSION . ' PHP/' . PHP_VERSION .
                    
136           ' curl/' . $curlVersion['version'];
                    
407                    "Could not copy $cert to $newCert: "
                    
408                    . var_export(error_get_last(), true)
                    
409                );
                    
                
RequestHandler.php https://github.com/neopba/silverstripe-book.git | PHP | 225 lines
                    
1<?php
                    
2
                    
17 *  - Director will determine that admin/crm is controlled by a new ModelAdmin object, and pass control to that.
                    
18 *    Matching Director Rule: "admin/crm" => "ModelAdmin" (defined in mysite/_config.php)
                    
19 *  - ModelAdmin will determine that SearchForm is controlled by a Form object returned by $this->SearchForm(), and pass control to that.
                    
93					if(isset($_REQUEST['debug_request'])) {
                    
94						Debug::message("Rule '$rule' matched to action '$action' on $this->class.  Latest request params: " . var_export($request->latestParams(), true));
                    
95					}
                    
104						} else if(!is_string($action)) {
                    
105							user_error("Non-string method name: " . var_export($action, true), E_USER_ERROR);
                    
106						} 
                    
                
CacheClearCommand.php https://github.com/sellingsource/symfony.git | PHP | 172 lines
                    
1<?php
                    
2
                    
44
                    
45<info>php app/console cache:clear --env=dev</info>
                    
46<info>php app/console cache:clear --env=prod --no-debug</info>
                    
64        $kernel = $this->getContainer()->get('kernel');
                    
65        $output->writeln(sprintf('Clearing the cache for the <info>%s</info> environment with debug <info>%s</info>', $kernel->getEnvironment(), var_export($kernel->isDebug(), true)));
                    
66
                    
140        $code = <<<EOF
                    
141<?php
                    
142
                    
                
IniTest.php https://github.com/tanduy/zf.git | PHP | 221 lines
                    
25 */
                    
26require_once 'Zend/Translate/Adapter/Ini.php';
                    
27
                    
28/**
                    
29 * PHPUnit test case
                    
30 */
                    
30 */
                    
31require_once 'PHPUnit/Framework/TestCase.php';
                    
32
                    
40 */
                    
41class Zend_Translate_Adapter_IniTest extends PHPUnit_Framework_TestCase
                    
42{
                    
50        $suite  = new PHPUnit_Framework_TestSuite("Zend_Translate_Adapter_IniTest");
                    
51        $result = PHPUnit_TextUI_TestRunner::run($suite);
                    
52    }
                    
                
AbstractTest.php https://github.com/EvanDotPro/zf2.git | PHP | 313 lines
                    
1<?php
                    
2/**
                    
19 */
                    
20class AbstractTest extends \PHPUnit_Framework_TestCase
                    
21{
                    
88        $this->assertTrue(array_key_exists('fooMessage', $messages));
                    
89        $this->assertContains('bar', $messages['fooMessage'], var_export($messages, 1));
                    
90        $this->assertContains('This is the translated message for ', $messages['fooMessage']);
                    
110        $this->assertTrue(array_key_exists('fooMessage', $messages));
                    
111        $this->assertContains('bar', $messages['fooMessage'], var_export($messages, 1));
                    
112        $this->assertContains('This is the translated message for ', $messages['fooMessage']);
                    
299    /**
                    
300     * Ignores a raised PHP error when in effect, but throws a flag to indicate an error occurred
                    
301     *
                    
                
Module.php https://bitbucket.org/mrblackus/micro-muffin.git | PHP | 383 lines
                    
1<?php
                    
2
                    
31    /**
                    
32     * Compiles the node to PHP.
                    
33     *
                    
49        {
                    
50            $compiler->write('<?php');
                    
51        }
                    
132            ->write("\n\n")
                    
133            // if the filename contains */, add a blank to avoid a PHP parse error
                    
134            ->write("/* " . str_replace('*/', '* /', $this->getAttribute('filename')) . " */\n")
                    
354            ->indent()
                    
355            ->write(sprintf("return %s;\n", str_replace("\n", '', var_export(array_reverse($compiler->getDebugInfo(), true), true))))
                    
356            ->outdent()
                    
                
font_info.php https://gitlab.com/techniconline/kmc | PHP | 158 lines
                    
58            font-variant: normal;
                    
59            src: url('<?php echo $fontfile; ?>');
                    
60        }
                    
106  <br/>
                    
107  <a href="make_subset.php?fontfile=<?php echo $fontfile; ?>&amp;name=<?php echo urlencode($font->getFontSubfamilyID()); ?>">Make
                    
108      a subset of this font</a>
                    
118
                    
119            <?php foreach ($font->getTable() as $entry) {
                    
120                $tag = $entry->tag;
                    
125                    <a <?php if (!$data) { ?> style="color: #ccc;" <?php } ?>
                    
126                        href="#tabs-<?php echo preg_replace("/[^a-z0-9]/i", "_", $tag); ?>"><?php echo $tag; ?></a>
                    
127                </li>
                    
132        <div id="tabs-header">
                    
133            <pre><?php echo var_export($font->header->data, true); ?></pre>
                    
134        </div>
                    
                
extendedprofile.php https://gitlab.com/BeS/io.schiessle.org | PHP | 373 lines
                    
1<?php
                    
2/*
                    
41        $this->sections = $this->getSections();
                    
42        //common_debug(var_export($this->sections, true));
                    
43
                    
43
                    
44        //common_debug(var_export($this->fields, true));
                    
45    }
                    
                
debug.php https://github.com/bermi/akelos.git | PHP | 127 lines
                    
1<?php
                    
2
                    
35            $result =   "\n".
                    
36            str_replace("\n"," ",var_export($this->_Model->getAttributes(),true));
                    
37            $result .= "\n";
                    
54        if(!empty($this->_Model->getAdapter()->debug) && !empty($trace_this_on_debug_mode)){
                    
55            $message = !is_scalar($trace_this_on_debug_mode) ? var_export($trace_this_on_debug_mode, true) : (string)$trace_this_on_debug_mode;
                    
56            AkDebug::trace($message);
                    
                
EditorTest.php https://github.com/bobdevelop/testgithubrepository.git | PHP | 270 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: EditorTest.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
23// Call Zend_Dojo_Form_Element_EditorTest::main() if this source file is executed directly.
                    
24if (!defined("PHPUnit_MAIN_METHOD")) {
                    
25    define("PHPUnit_MAIN_METHOD", "Zend_Dojo_Form_Element_EditorTest::main");
                    
28/** Zend_Dojo_Form_Element_Editor */
                    
29require_once 'Zend/Dojo/Form/Element/Editor.php';
                    
30
                    
31/** Zend_View */
                    
32require_once 'Zend/View.php';
                    
33
                    
34/** Zend_Registry */
                    
35require_once 'Zend/Registry.php';
                    
36
                    
                
RequestUtil.php https://gitlab.com/x33n/ampache | PHP | 301 lines
                    
1<?php
                    
2namespace Dropbox;
                    
4if (!function_exists('curl_init')) {
                    
5    throw new \Exception("The Dropbox SDK requires the cURL PHP extension, but it looks like you don't have it (couldn't find function \"curl_init\").  Library: \"" . __FILE__ . "\".");
                    
6}
                    
8if (!function_exists('json_decode')) {
                    
9    throw new \Exception("The Dropbox SDK requires the JSON PHP extension, but it looks like you don't have it (couldn't find function \"json_decode\").  Library: \"" . __FILE__ . "\".");
                    
10}
                    
15if ($mbstring_func_overload & 2 == 2) {
                    
16    throw new \Exception("The Dropbox SDK doesn't work when mbstring.func_overload is set to overload the standard string functions (value = ".var_export($mbstring_func_overload, true).").  Library: \"" . __FILE__ . "\".");
                    
17}
                    
18
                    
19if (strlen((string) PHP_INT_MAX) < 19) {
                    
20    // Looks like we're running on a 32-bit build of PHP.  This could cause problems because some of the numbers
                    
21    // we use (file sizes, quota, etc) can be larger than 32-bit ints can handle.
                    
22    throw new \Exception("The Dropbox SDK uses 64-bit integers, but it looks like we're running on a version of PHP that doesn't support 64-bit integers (PHP_INT_MAX=" . ((string) PHP_INT_MAX) . ").  Library: \"" . __FILE__ . "\"");
                    
23}
                    
                
Debug.php https://github.com/eLod/li3_mailer.git | PHP | 197 lines
                    
1<?php
                    
2
                    
53		$entry = $this->_format($message, $options['format']);
                    
54		$entry = '[' . date('c') . '] ' . $entry . PHP_EOL;
                    
55		$log = $options['log'];
                    
121			'verbose' => function($message) {
                    
122				$properties = var_export(get_object_vars($message), true);
                    
123				return "Mail sent with properties:\n{$properties}";
                    
155			'types' => function($types) { return join(', ', $types); },
                    
156			'headers' => function($headers) { return join(PHP_EOL, $headers); },
                    
157			'body' => function($bodies) {
                    
157			'body' => function($bodies) {
                    
158				return join(PHP_EOL, array_map(function($body) {
                    
159					return join(PHP_EOL, $body);
                    
                
ModuleNode.php https://gitlab.com/remyvianne/krowkaramel | PHP | 199 lines
                    
1<?php
                    
2namespace MailPoetVendor\Twig\Node;
                    
37 if (!$this->getAttribute('index')) {
                    
38 $compiler->write('<?php');
                    
39 }
                    
183 {
                    
184 $compiler->write("public function getDebugInfo()\n", "{\n")->indent()->write(\sprintf("return %s;\n", \str_replace("\n", '', \var_export(\array_reverse($compiler->getDebugInfo(), \true), \true))))->outdent()->write("}\n\n");
                    
185 }
                    
                
Router.php https://github.com/ochoto/framework-benchs.git | PHP | 269 lines
                    
1<?php
                    
2declare(ENCODING = 'utf-8');
                    
27 *
                    
28 * @version $Id: Router.php 3643 2010-01-15 14:38:07Z robert $
                    
29 * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later
                    
233		}
                    
234		$this->systemLogger->log('Router resolve(): No route matched ' . str_replace(chr(10), '', var_export($routeValues, TRUE)) . '.', LOG_NOTICE);
                    
235		return '';
                    
                
reflectionfunction.construct.html https://bitbucket.org/thncr/manuals.git | HTML | 166 lines
                    
11 <div class="up"><a href="class.reflectionfunction.html">ReflectionFunction</a></div>
                    
12 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
13</div><hr /><div id="reflectionfunction.construct" class="refentry">
                    
15  <h1 class="refname">ReflectionFunction::__construct</h1>
                    
16  <p class="verinfo">(PHP 5)</p><p class="refpurpose"><span class="refname">ReflectionFunction::__construct</span> &mdash; <span class="dc-title">Constructs a ReflectionFunction object</span></p>
                    
17
                    
108<div class="phpcode"><code><span style="color: #000000">
                    
109<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">/**<br />&nbsp;*&nbsp;A&nbsp;simple&nbsp;counter<br />&nbsp;*<br />&nbsp;*&nbsp;@return&nbsp;&nbsp;&nbsp;&nbsp;int<br />&nbsp;*/<br /></span><span style="color: #007700">function&nbsp;</span><span style="color: #0000BB">counter1</span><span style="color: #007700">()<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;static&nbsp;</span><span style="color: #0000BB">$c&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;++</span><span style="color: #0000BB">$c</span><span style="color: #007700">;<br />}<br /><br /></span><span style="color: #FF8000">/**<br />&nbsp;*&nbsp;Another&nbsp;simple&nbsp;counter<br />&nbsp;*<br />&nbsp;*&nbsp;@return&nbsp;&nbsp;&nbsp;&nbsp;int<br />&nbsp;*/<br /></span><span style="color: #0000BB">$counter2&nbsp;</span><span style="color: #007700">=&nbsp;function()<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;static&nbsp;</span><span style="color: #0000BB">$d&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;++</span><span style="color: #0000BB">$d</span><span style="color: #007700">;<br /><br />};<br /><br />function&nbsp;</span><span style="color: #0000BB">dumpReflectionFunction</span><span style="color: #007700">(</span><span style="color: #0000BB">$func</span><span style="color: #007700">)<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Print&nbsp;out&nbsp;basic&nbsp;information<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">printf</span><span style="color: #007700">(<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"\n\n===&gt;&nbsp;The&nbsp;%s&nbsp;function&nbsp;'%s'\n"</span><span style="color: #007700">.<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;declared&nbsp;in&nbsp;%s\n"</span><span style="color: #007700">.<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lines&nbsp;%d&nbsp;to&nbsp;%d\n"</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$func</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">isInternal</span><span style="color: #007700">()&nbsp;?&nbsp;</span><span style="color: #DD0000">'internal'&nbsp;</span><span style="color: #007700">:&nbsp;</span><span style="color: #DD0000">'user-defined'</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$func</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getName</span><span style="color: #007700">(),<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$func</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getFileName</span><span style="color: #007700">(),<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$func</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getStartLine</span><span style="color: #007700">(),<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$func</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getEndline</span><span style="color: #007700">()<br />&nbsp;&nbsp;&nbsp;&nbsp;);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Print&nbsp;documentation&nbsp;comment<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"---&gt;&nbsp;Documentation:\n&nbsp;%s\n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">var_export</span><span style="color: #007700">(</span><span style="color: #0000BB">$func</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getDocComment</span><span style="color: #007700">(),&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">));<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Print&nbsp;static&nbsp;variables&nbsp;if&nbsp;existant<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$statics&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$func</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getStaticVariables</span><span style="color: #007700">())<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"---&gt;&nbsp;Static&nbsp;variables:&nbsp;%s\n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">var_export</span><span style="color: #007700">(</span><span style="color: #0000BB">$statics</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">));<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />}<br /><br /></span><span style="color: #FF8000">//&nbsp;Create&nbsp;an&nbsp;instance&nbsp;of&nbsp;the&nbsp;ReflectionFunction&nbsp;class<br /></span><span style="color: #0000BB">dumpReflectionFunction</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">ReflectionFunction</span><span style="color: #007700">(</span><span style="color: #DD0000">'counter1'</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">dumpReflectionFunction</span><span style="color: #007700">(new&nbsp;</span><span style="color: #0000BB">ReflectionFunction</span><span style="color: #007700">(</span><span style="color: #0000BB">$counter2</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span>
                    
110</span>
                    
117===&gt; The user-defined function &#039;counter1&#039;
                    
118     declared in Z:\reflectcounter.php
                    
119     lines 7 to 11
                    
131===&gt; The user-defined function &#039;{closure}&#039;
                    
132     declared in Z:\reflectcounter.php
                    
133     lines 18 to 23
                    
                
class.datagrid_filters.php https://bitbucket.org/briancastellanos/cse360.git | PHP | 326 lines
                    
1<?php
                    
2/**
                    
113        $function = $bt['function'];
                    
114      user_error("DatagridFilter::{$function}() call failed on line {$line} in {$file}. A field name must be provided for the filter. The value provided was: <pre style='display:inline;'>".var_export($field,true)."</pre>",E_USER_WARNING);
                    
115
                    
                
ExistsTest.php https://github.com/Exercise/zf2.git | PHP | 215 lines
                    
1<?php
                    
2/**
                    
29// Call Zend_Validate_File_ExistsTest::main() if this source file is executed directly.
                    
30if (!defined("PHPUnit_MAIN_METHOD")) {
                    
31    define("PHPUnit_MAIN_METHOD", "Zend_Validate_File_ExistsTest::main");
                    
51 */
                    
52class ExistsTest extends \PHPUnit_Framework_TestCase
                    
53{
                    
60    {
                    
61        $suite  = new \PHPUnit_Framework_TestSuite("Zend_Validate_File_ExistsTest");
                    
62        $result = \PHPUnit_TextUI_TestRunner::run($suite);
                    
90                $validator->isValid($element[1]),
                    
91                "Tested with " . var_export($element, 1)
                    
92            );
                    
95                $validator->isValid($element[1], $files),
                    
96                "Tested with " . var_export($element, 1)
                    
97            );
                    
                
ClassCollectionLoader.php https://gitlab.com/guillaumev/alkarama | PHP | 422 lines
                    
38    {
                    
39        // each $name can only be loaded once per PHP process
                    
40        if (isset(self::$loaded[$name])) {
                    
109            '(?:
                    
110               ^<\?php\s.declare.\(.strict_types.=.1.\).;
                    
111               | \b__halt_compiler.\(.\)
                    
136                if (1 >= $i) {
                    
137                    $file = var_export(implode('/', $file), true);
                    
138                } else {
                    
145            } else {
                    
146                $c = preg_replace(array('/^\s*<\?php/', '/\?>\s*$/'), '', $c);
                    
147
                    
235        if (PHP_VERSION_ID >= 70000) {
                    
236            // PHP 7 memory manager will not release after token_get_all(), see https://bugs.php.net/70098
                    
237            unset($tokens, $rawChunk);
                    
                
function.intl-is-failure.html https://bitbucket.org/thncr/manuals.git | HTML | 109 lines
                    
11 <div class="up"><a href="ref.intl.html">intl 函数</a></div>
                    
12 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
13</div><hr /><div id="function.intl-is-failure" class="refentry">
                    
15  <h1 class="refname">intl_is_failure</h1>
                    
16  <p class="verinfo">(PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">intl_is_failure</span> &mdash; <span class="dc-title">Check whether the given error code indicates failure</span></p>
                    
17
                    
74<div class="phpcode"><code><span style="color: #000000">
                    
75<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">function&nbsp;</span><span style="color: #0000BB">check</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">$err_code&nbsp;</span><span style="color: #007700">)<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">var_export</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">intl_is_failure</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">$err_code&nbsp;</span><span style="color: #007700">)&nbsp;);<br />&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br />}<br /><br /></span><span style="color: #0000BB">check</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">U_ZERO_ERROR&nbsp;</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">check</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">U_USING_FALLBACK_WARNING&nbsp;</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">check</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">U_ILLEGAL_ARGUMENT_ERROR&nbsp;</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span>
                    
76</span>
                    
107 <div class="up"><a href="ref.intl.html">intl 函数</a></div>
                    
108 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
109</div></body></html>
                    
                
IsImageTest.php https://bitbucket.org/sasezaki/mirror-zf1-standard-trunk-tests-validate-dir.git | PHP | 196 lines
                    
1<?php
                    
2/**
                    
23// Call Zend_Validate_File_IsImageTest::main() if this source file is executed directly.
                    
24if (!defined("PHPUnit_MAIN_METHOD")) {
                    
25    define("PHPUnit_MAIN_METHOD", "Zend_Validate_File_IsImageTest::main");
                    
30 */
                    
31require_once 'Zend/Validate/File/IsImage.php';
                    
32
                    
42 */
                    
43class Zend_Validate_File_IsImageTest extends PHPUnit_Framework_TestCase
                    
44{
                    
51    {
                    
52        $suite  = new PHPUnit_Framework_TestSuite("Zend_Validate_File_IsImageTest");
                    
53        $result = PHPUnit_TextUI_TestRunner::run($suite);
                    
86                $validator->isValid(dirname(__FILE__) . '/_files/picture.jpg', $files),
                    
87                "Tested with " . var_export($element, 1)
                    
88            );
                    
                
smarty_internal_compile_foreach.php https://gitlab.com/webbroteam/satisfaction-mvc | PHP | 298 lines
                    
1<?php
                    
2/**
                    
168        // generate output code
                    
169        $output = "<?php\n";
                    
170        $output .= "\$_from = \$_smarty_tpl->smarty->ext->_foreach->init(\$_smarty_tpl, $from, " .
                    
170        $output .= "\$_from = \$_smarty_tpl->smarty->ext->_foreach->init(\$_smarty_tpl, $from, " .
                    
171            var_export($item, true);
                    
172        if ($name || $needTotal || $key) {
                    
172        if ($name || $needTotal || $key) {
                    
173            $output .= ', ' . var_export($needTotal, true);
                    
174        }
                    
175        if ($name || $key) {
                    
176            $output .= ', ' . var_export($key, true);
                    
177        }
                    
178        if ($name) {
                    
179            $output .= ', ' . var_export($name, true) . ', ' . var_export($namedAttr, true);
                    
180        }
                    
                
tipafriend_form.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 203 lines
                    
1<?php
                    
2/**
                    
8 * @author 		Piero Wbmstr <http://www.spip-contrib.net/PieroWbmstr>
                    
9 * @license		http://opensource.org/licenses/gpl-license.php GNU Public License
                    
10 * @package		Tip-a-friend
                    
38		echo taf_dbg_block(array(
                    
39			_T('tipafriend:taftest_param_form') => var_export($valeurs,1)
                    
40		));
                    
175			._T('tipafriend:taftest_mail_headers')."&nbsp;:&nbsp;".$header.$sep
                    
176			._T('tipafriend:taftest_mail_retour')."&nbsp;:&nbsp;".var_export($mail,true).$sep
                    
177			.( isset($html_content) ?
                    
193		"Sujet=[".$mel['subject']."]",
                    
194		"Envoi=[".var_export($mail,true)."]",
                    
195		"ContenuBrut[patron=$patron][".strlen($mel['body'])."cars.]",
                    
                
PhpMatcherDumper.php https://github.com/AJenbo/ubuntudanmark.dk.git | PHP | 376 lines
                    
17/**
                    
18 * PhpMatcherDumper creates a PHP class able to match URLs for a given set of routes.
                    
19 *
                    
26    /**
                    
27     * Dumps a set of routes to a PHP class.
                    
28     *
                    
35     *
                    
36     * @return string A PHP class representing the matcher class
                    
37     */
                    
143    /**
                    
144     * Generates PHP code recursively to match a tree of routes.
                    
145     *
                    
230            }
                    
231            $conditions[] = sprintf('preg_match(%s, $pathinfo, $matches)', var_export($regex, true));
                    
232
                    
                
font_metrics.cls.php https://gitlab.com/Ofcadavidm/RentCarApp | PHP | 363 lines
                    
1<?php
                    
2/**
                    
10
                    
11require_once DOMPDF_LIB_DIR . "/class.pdf.php";
                    
12
                    
18 * with Font_Metrics::save_font_families().
                    
19 * This is typically done only from command line with load_font.php on converting
                    
20 * ttf fonts to ufm with php-font-lib.
                    
21 *
                    
22 * Declared here because PHP5 prevents constants from being declared with expressions
                    
23 */
                    
23 */
                    
24define('__DOMPDF_FONT_CACHE_FILE', DOMPDF_FONT_DIR . "dompdf_font_family_cache.php");
                    
25
                    
52   *
                    
53   * Usually cached by the {@link load_font.php} script
                    
54   *
                    
                
 

Source

Language