100+ results for 'php trigger_error'
Not the results you expected?
function.html_select_time.php (https://github.com/cabenitez/factuweb.git) PHP · 364 lines
1 <?php
2 /**
3 * Smarty plugin
10 * @ignore
11 */
12 require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
13 /**
14 * @ignore
15 */
16 require_once(SMARTY_PLUGINS_DIR . 'shared.make_timestamp.php');
18 /**
23 * Purpose: Prints the dropdowns for time selection
24 *
25 * @link http://www.smarty.net/manual/en/language.function.html.select.time.php {html_select_time}
26 * (Smarty online manual)
27 * @author Roberto Berto <roberto@berto.net>
unicode.php (https://github.com/fusenigk/mantisbt-1.git) PHP · 269 lines
1 <?php
2 /**
3 * @version $Id: unicode.php,v 1.2 2006/02/26 13:20:44 harryf Exp $
8 * Portions created by the Initial Developer are Copyright (C) 1998
9 * the Initial Developer. All Rights Reserved.
10 * Ported to PHP by Henri Sivonen (http://hsivonen.iki.fi)
11 * Slight modifications to fit with phputf8 library by Harry Fuecks (hfuecks gmail com)
12 * @see http://lxr.mozilla.org/seamonkey/source/intl/uconv/src/nsUTF8ToUnicode.cpp
13 * @see http://lxr.mozilla.org/seamonkey/source/intl/uconv/src/nsUnicodeToUTF8.cpp
14 * @see http://hsivonen.iki.fi/php-utf8/
15 * @package utf8
16 * @subpackage unicode
24 * are not allowed.
25 * Returns false if the input string isn't a valid UTF-8 octet sequence
26 * and raises a PHP error at level E_USER_WARNING
27 * Note: this function has been modified slightly in this library to
28 * trigger errors on encountering bad bytes
commontypes.php (https://github.com/christeredvartsen/zf2.git) PHP · 636 lines
ClassRegistry.php (https://github.com/a7medkamel/cakephp.git) PHP · 341 lines
1 <?php
2 /**
3 * Class collections.
7 * PHP 5
8 *
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
10 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
11 *
14 *
15 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
16 * @link http://cakephp.org CakePHP(tm) Project
17 * @package Cake.Utility
18 * @since CakePHP(tm) v 0.9.2
19 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
20 */
ImageSize.php (https://github.com/grandison/budo16.git) PHP · 370 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: ImageSize.php 16971 2009-07-22 18:05:45Z mikaelkael $
20 */
23 * @see Zend_Validate_Abstract
24 */
25 // require_once 'Zend/Validate/Abstract.php';
27 /**
133 $options = $options->toArray();
134 } elseif (1 < func_num_args()) {
135 trigger_error('Multiple constructor options are deprecated in favor of a single options array', E_USER_NOTICE);
136 if (!is_array($options)) {
137 $options = array('minwidth' => $options);
LanguageFactory.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 198 lines
1 <?php
3 /**
93 if ($code === false) $code = 'en'; // malformed code becomes English
95 $pcode = str_replace('-', '_', $code); // make valid PHP classname
96 static $depth = 0; // recursion protection
100 } else {
101 $class = 'HTMLPurifier_Language_' . $pcode;
102 $file = $this->dir . '/Language/classes/' . $code . '.php';
103 if (file_exists($file) || class_exists($class, false)) {
104 $lang = new $class($config, $context);
144 // generate filename
145 $filename = $this->dir . '/Language/messages/' . $code . '.php';
147 // default fallback : may be overwritten by the ensuing include
Tmx.php (https://bitbucket.org/khuongduybui/openfisma.git) PHP · 233 lines
1 <?php
2 /**
3 * Zend Framework
23 /** Zend_Locale */
24 // require_once 'Zend/Locale.php';
26 /** Zend_Translate_Adapter */
27 // require_once 'Zend/Translate/Adapter.php';
59 $this->_data = array();
60 if (!is_readable($filename)) {
61 // require_once 'Zend/Translate/Exception.php';
62 throw new Zend_Translate_Exception('Translation file \'' . $filename . '\' is not readable.');
63 }
YamlFileLoader.php (https://gitlab.com/Pasantias/pasantiasASLG) PHP · 236 lines
1 <?php
3 /*
83 }
85 @trigger_error(sprintf('The "pattern" option in file "%s" is deprecated since version 2.2 and will be removed in 3.0. Use the "path" option in the route definition instead.', $path), E_USER_DEPRECATED);
87 $config['path'] = $config['pattern'];
134 unset($requirements['_method']);
135 @trigger_error(sprintf('The "_method" requirement of route "%s" in file "%s" is deprecated since version 2.2 and will be removed in 3.0. Use the "methods" option instead.', $name, $path), E_USER_DEPRECATED);
136 }
143 unset($requirements['_scheme']);
144 @trigger_error(sprintf('The "_scheme" requirement of route "%s" in file "%s" is deprecated since version 2.2 and will be removed in 3.0. Use the "schemes" option instead.', $name, $path), E_USER_DEPRECATED);
145 }
Variables.php (https://github.com/leerbag/zf2.git) PHP · 337 lines
1 <?php
2 /**
3 * Zend Framework
282 if (!$this->offsetExists($key)) {
283 if ($this->isStrict()) {
284 trigger_error(sprintf(
285 'View variable "%s" does not exist', $key
286 ), E_USER_NOTICE);
305 if (!$this->offsetExists($key)) {
306 if ($this->isStrict()) {
307 trigger_error(sprintf(
308 'View variable "%s" does not exist', $key
309 ), E_USER_NOTICE);
ModelFactory.php (https://github.com/drobbins/s3db.git) PHP · 288 lines
1 <?php
2 require_once RDFAPI_INCLUDE_DIR . 'model/DbStore.php';
46 function & getDatasetMem($graphSetId = null)
47 {
48 require_once RDFAPI_INCLUDE_DIR . 'dataset/DatasetMem.php';
49 $m = new DatasetMem($graphSetId);
50 return $m;
61 function & getMemModel($baseURI = null)
62 {
63 require_once RDFAPI_INCLUDE_DIR . 'model/MemModel.php';
64 $m = new MemModel($baseURI);
65 return $m;
68 /**
69 * Returns a DbModel with the database connection
70 * defined in constants.php.
71 * You can supply a base URI. If a model with the given base
72 * URI exists in the DbStore, it'll be opened.
AclComponent.php (https://github.com/kunit/cakephp.git) PHP · 180 lines
1 <?php
2 /**
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
5 *
9 *
10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
11 * @link http://cakephp.org CakePHP(tm) Project
12 * @package Cake.Controller.Component
13 * @since CakePHP(tm) v 0.10.0.1076
14 * @license http://www.opensource.org/licenses/mit-license.php MIT License
15 */
22 *
23 * Uses a strategy pattern to allow custom ACL implementations to be used with the same component interface.
24 * You can define by changing `Configure::write('Acl.classname', 'DbAcl');` in your core.php. Concrete ACL
25 * implementations should extend `AclBase` and implement the methods it defines.
26 *
AclComponent.php (https://bitbucket.org/LeThanhDat/firstdummyapp.git) PHP · 179 lines
1 <?php
2 /**
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
5 *
9 *
10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
11 * @link http://cakephp.org CakePHP(tm) Project
12 * @package Cake.Controller.Component
13 * @since CakePHP(tm) v 0.10.0.1076
14 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
15 */
16 App::uses('Component', 'Controller');
21 *
22 * Uses a strategy pattern to allow custom ACL implementations to be used with the same component interface.
23 * You can define by changing `Configure::write('Acl.classname', 'DbAcl');` in your core.php. Concrete ACL
24 * implementations should extend `AclBase` and implement the methods it defines.
25 *
Config.php (https://github.com/unikent/php-activerecord.git) PHP · 304 lines
1 <?php
2 /**
3 * @package ActiveRecord
268 public function get_date_format()
269 {
270 trigger_error('Use ActiveRecord\Serialization::$DATETIME_FORMAT. Config::get_date_format() has been deprecated.', E_USER_DEPRECATED);
271 return Serialization::$DATETIME_FORMAT;
272 }
277 public function set_date_format($format)
278 {
279 trigger_error('Use ActiveRecord\Serialization::$DATETIME_FORMAT. Config::set_date_format() has been deprecated.', E_USER_DEPRECATED);
280 Serialization::$DATETIME_FORMAT = $format;
281 }
controller.php (https://github.com/Hywan/atoum.git) PHP · 479 lines
1 <?php
3 namespace mageekguy\atoum\mock\streams\fs\file;
100 if (self::checkOpenMode($mode) === false) {
101 if ($reportErrors === true) {
102 trigger_error('Operation timed out', E_USER_WARNING);
103 }
104 } else {
120 if ($isOpened === false) {
121 if ($reportErrors === true) {
122 trigger_error('Permission denied', E_USER_WARNING);
123 }
124 } else {
136 $this->seek(0);
137 } elseif ($reportErrors === true) {
138 trigger_error('No such file or directory', E_USER_WARNING);
139 }
140 break;
Tidy.php (https://github.com/markn86/moodle.git) PHP · 230 lines
1 <?php
3 /**
86 }
87 if ($i == $c) {
88 trigger_error(
89 'Tidy level ' . htmlspecialchars($level) . ' not recognized',
90 E_USER_WARNING
113 }
114 if (!isset($this->fixesForLevel[$this->defaultLevel])) {
115 trigger_error(
116 'Default level ' . $this->defaultLevel . ' does not exist',
117 E_USER_ERROR
147 $e = $this;
148 }
149 // PHP does some weird parsing when I do
150 // $e->$type[$attr], so I have to assign a ref.
151 $f =& $e->$type;
Diff.php (https://github.com/akelos/v1.git) PHP · 371 lines
1 <?php
2 /**
3 * Text_Diff
6 * two sequences of strings.
7 *
8 * The PHP diff code used in this package was originally written by Geoffrey
9 * T. Dairiki and is used with his permission.
10 *
11 * $Horde: framework/Text_Diff/Diff.php,v 1.17 2006/02/06 00:16:09 jan Exp $
12 *
13 * @package Text_Diff
43 $engine = basename($engine);
45 require_once 'Text/Diff/Engine/' . $engine . '.php';
46 $class = 'Text_Diff_Engine_' . $engine;
47 $diff_engine = &new $class();
Cloud.php (https://github.com/grandison/budo16.git) PHP · 410 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Cloud.php 16209 2009-06-21 19:20:34Z thomas $
21 */
24 * @see Zend_Tag_Item
25 */
26 // require_once 'Zend/Tag/Item.php';
28 /**
151 $itemList[] = new Zend_Tag_Item($tag);
152 } else {
153 // require_once 'Zend/Tag/Cloud/Exception.php';
154 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
155 }
Cloud.php (https://bitbucket.org/Ebozavrik/test-application.git) PHP · 427 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Cloud.php 24593 2012-01-05 20:35:02Z matthew $
21 */
24 * @see Zend_Tag_Item
25 */
26 require_once 'Zend/Tag/Item.php';
28 /**
154 $itemList[] = new Zend_Tag_Item( $tag );
155 } else {
156 require_once 'Zend/Tag/Cloud/Exception.php';
157 throw new Zend_Tag_Cloud_Exception( 'Tag must be an instance of Zend_Tag_Taggable or an array' );
158 }
function.html_radios.php (https://gitlab.com/Shenglian/SmartyProject) PHP · 232 lines
1 <?php
2 /**
3 * Smarty plugin
9 /**
10 * Smarty {html_radios} function plugin
11 * File: function.html_radios.php<br>
12 * Type: function<br>
13 * Name: html_radios<br>
32 * </pre>
33 *
34 * @link http://smarty.php.net/manual/en/language.function.html.radios.php {html_radios}
35 * (Smarty online manual)
36 * @author Christopher Kvarme <christopher.kvarme@flashjab.com>
46 function smarty_function_html_radios($params, $template)
47 {
48 require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
50 $name = 'radio';
Tidy.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 207 lines
1 <?php
3 /**
81 }
82 if ($i == $c) {
83 trigger_error(
84 'Tidy level ' . htmlspecialchars($level) . ' not recognized',
85 E_USER_WARNING
104 if (!isset($this->defaultLevel)) return;
105 if (!isset($this->fixesForLevel[$this->defaultLevel])) {
106 trigger_error(
107 'Default level ' . $this->defaultLevel . ' does not exist',
108 E_USER_ERROR
137 $e = $this;
138 }
139 // PHP does some weird parsing when I do
140 // $e->$type[$attr], so I have to assign a ref.
141 $f =& $e->$type;
mail.php (https://gitlab.com/2202Programming/navxmxp) PHP · 406 lines
94 $header .= 'Reply-To: ' . '=?UTF-8?B?' . base64_encode($this->sender) . '?=' . '<' . $this->from . '>' . $this->newline;
95 $header .= 'Return-Path: ' . $this->from . $this->newline;
96 $header .= 'X-Mailer: PHP/' . phpversion() . $this->newline;
97 $header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;
199 if (substr($reply, 0, 3) != 250) {
200 trigger_error('Error: EHLO not accepted from server!');
201 exit();
202 }
233 if (substr($reply, 0, 3) != 334) {
234 trigger_error('Error: Username not accepted from server!');
235 exit();
236 }
hooks.php (https://github.com/iconifyit/SkyBlue-1.1.git) PHP · 215 lines
1 <?php defined('SKYBLUE') or die('Bad file request');
3 /**
5 * @package SkyBlueCanvas
6 * @copyright Copyright (C) 2005 - 2008 Scott Edwin Lewis. All rights reserved.
7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
8 * SkyBlueCanvas is free software. This version may have been modified pursuant
9 * to the GNU General Public License, and as distributed it includes or
137 global $Core;
138 if (!file_exists($file)) {
139 trigger_error(
140 "{$file} does not exist",
141 E_USER_ERROR
185 /**
186 * Encodes an Array or Object as JSON
187 * @param Mixed $data The PHP data structure
188 * @return String
189 */
Filter.php (https://github.com/ftaiolivista/Zend-Framework-Namespaced-.git) PHP · 245 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Filter.php 21096 2010-02-19 20:10:54Z thomas $
20 */
29 * @see Zend_Filter_Interface
30 */
31 require_once 'Zend/Filter/Interface.php';
33 /**
186 public static function get($value, $classBaseName, array $args = array(), $namespaces = array())
187 {
188 trigger_error(
189 'Zend_Filter::get() is deprecated as of 1.9.0; please update your code to utilize Zend_Filter::filterStatic()',
190 E_USER_NOTICE
function.mailto.php (https://github.com/greevex/mzz-framework-blank-application.git) PHP · 157 lines
1 <?php
2 /**
3 * Smarty plugin
26 * </pre>
27 *
28 * @link http://smarty.php.net/manual/en/language.function.mailto.php {mailto}
29 * (Smarty online manual)
30 * @version 1.2
56 if (empty($params['address'])) {
57 trigger_error("mailto: missing 'address' parameter",E_USER_WARNING);
58 return;
59 } else {
98 $encode = (empty($params['encode'])) ? 'none' : $params['encode'];
99 if (!in_array($encode, array('javascript', 'javascript_charcode', 'hex', 'none'))) {
100 trigger_error("mailto: 'encode' parameter must be none, javascript or hex",E_USER_WARNING);
101 return;
102 }
MultiAccess.php (https://bitbucket.org/jamm/memory.git) PHP · 270 lines
MemcachedOptions.php (https://bitbucket.org/zbahij/eprojets_app.git) PHP · 319 lines
259 * @param array $libOptions
260 * @return MemcachedOptions
261 * @link http://php.net/manual/memcached.constants.php
262 */
263 public function setLibOptions(array $libOptions)
273 * @param mixed $value
274 * @return MemcachedOptions
275 * @link http://php.net/manual/memcached.constants.php
276 * @deprecated Please use lib_options or the resource manager instead
277 */
292 *
293 * @return array
294 * @link http://php.net/manual/memcached.constants.php
295 */
296 public function getLibOptions()
UserManager.php (https://gitlab.com/cuza/Clinic_Recods) PHP · 243 lines
1 <?php
3 /*
138 public function refreshUser(SecurityUserInterface $user)
139 {
140 @trigger_error('Using the UserManager as user provider is deprecated. Use FOS\UserBundle\Security\UserProvider instead.', E_USER_DEPRECATED);
142 $class = $this->getClass();
170 public function loadUserByUsername($username)
171 {
172 @trigger_error('Using the UserManager as user provider is deprecated. Use FOS\UserBundle\Security\UserProvider instead.', E_USER_DEPRECATED);
174 $user = $this->findUserByUsername($username);
237 public function supportsClass($class)
238 {
239 @trigger_error('Using the UserManager as user provider is deprecated. Use FOS\UserBundle\Security\UserProvider instead.', E_USER_DEPRECATED);
241 return $class === $this->getClass();
ActiveRow.php (https://gitlab.com/paveltizek/shop) PHP · 340 lines
class-config.php (https://github.com/livinglab/openlab.git) PHP · 272 lines
function.html_select_time.php (https://github.com/kop1/nnplus.git) PHP · 194 lines
1 <?php
2 /**
3 * Smarty plugin
14 * Purpose: Prints the dropdowns for time selection
15 *
16 * @link http://smarty.php.net/manual/en/language.function.html.select.time.php {html_select_time}
17 * (Smarty online manual)
18 * @author Roberto Berto <roberto@berto.net>
25 function smarty_function_html_select_time($params, $template)
26 {
27 require_once(SMARTY_PLUGINS_DIR . 'shared.make_timestamp.php');
28 require_once(SMARTY_PLUGINS_DIR . 'function.html_options.php');
38 $minute_interval = 1;
39 $second_interval = 1;
40 /* Should the select boxes be part of an array when returned from PHP?
41 e.g. setting it to "birthday", would create "birthday[Hour]",
42 "birthday[Minute]", "birthday[Seconds]" & "birthday[Meridian]".
abstract.php (https://github.com/luthercollege/reason_package.git) PHP · 321 lines
1 <?php
2 /**
3 * @package reason
8 * Register controller with Reason
9 */
10 $GLOBALS[ '_form_controller_class_names' ][ basename( __FILE__, '.php') ] = 'AbstractFormController';
12 /**
188 if (method_exists($view, $method)) return $view->$method();
189 elseif (method_exists($this, $method)) return $this->$method();
190 elseif ($show_errors) trigger_error('The form controller called a method ' . $method . ' that does not exists in the view or controller');
191 return false;
192 }
201 if (method_exists($model, $method)) return $model->$method();
202 elseif (method_exists($this, $method)) return $this->$method();
203 else trigger_error('The form controller called a method ' . $method . ' that does not exists in the model or controller');
204 return false;
205 }
ObjectBase.class.php (https://github.com/cswaim/Parse-Address.git) PHP · 373 lines
bug_revision_api.php (https://github.com/osarrat/sigmah-website.git) PHP · 354 lines
1 <?php
2 # Mantis - a php based bugtracking system
114 if ( db_num_rows( $t_result ) < 1 ) {
115 trigger_error( ERROR_BUG_REVISION_NOT_FOUND, ERROR );
116 }
121 /**
122 * Get the name of the type of a bug revision.
123 * @param int $p_revision_id Revision type ID (see constant_inc.php for possible values)
124 * @return string Name of the type of the bug revision
125 */
319 if ( db_num_rows( $t_result ) < 1 ) {
320 trigger_error( ERROR_BUG_REVISION_NOT_FOUND, ERROR );
321 }
NodeDefinition.php (https://github.com/gimler/symfony.git) PHP · 375 lines
data.php (https://github.com/jonphipps/Metadata-Registry.git) PHP · 207 lines
1 <?php
2 // Include the connect.php file
3 include ('connect.php');
4 // Connect to the database
5 $mysqli = new mysqli($hostname, $username, $password, $database);
13 if(!isset($_GET['usedwidget'])){
14 trigger_error("Missing/Invalid widget", E_USER_ERROR);
15 }
201 break;
202 default:
203 trigger_error("Missing/Invalid category", E_USER_ERROR);
204 }
DescriptorPool.php (https://github.com/chromium/chromium.git) PHP · 193 lines
rating.php (https://github.com/siran/ratings.git) PHP · 185 lines
1 <?php
2 /**
3 * Copyright 2010, Cake Development Corporation (http://cakedc.com)
7 *
8 * @copyright Copyright 2010, Cake Development Corporation (http://cakedc.com)
9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
10 */
14 /**
15 * CakePHP Ratings Plugin
16 *
17 * Rating helper
155 $flush = false;
156 if (empty($options['item'])) {
157 trigger_error(__d('ratings', 'You must set the id of the item you want to rate.', true), E_USER_NOTICE);
158 }
159 $result = '';
Locale.php (https://gitlab.com/Isaki/le331.fr) PHP · 195 lines
1 <?php
3 /*
12 namespace Symfony\Component\Locale;
14 @trigger_error('The '.__NAMESPACE__.'\Locale class is deprecated since version 2.7, to be removed in Symfony 3.0. Use the methods provided by the \Symfony\Component\Intl\Intl class instead.', E_USER_DEPRECATED);
16 use Symfony\Component\Intl\Intl;
XAuthentication.class.php (https://github.com/Xirt/XirtCMS.git) PHP · 246 lines
Cloud.php (https://github.com/Exercise/zf2.git) PHP · 412 lines
collapse_api.php (https://github.com/osarrat/sigmah-website.git) PHP · 246 lines
1 <?php
2 # MantisBT - a php based bugtracking system
34 * @subpackage CollapseAPI
35 *
36 * @uses tokens_api.php
37 * @uses utility_api.php
38 * @uses config_api.php
39 * @uses authentiction_api.php
40 * @uses current_user_api.php
41 * @uses gpc_api.php
45 * requires tokens_api
46 */
47 require_once( 'tokens_api.php' );
49 /**
CPSFile.php (https://github.com/Pogostick/ps-yii-extensions.git) PHP · 286 lines
1 <?php
2 /**
3 * CPSFile.php
46 *
47 * @author Jerry Ablan <jablan@pogostick.com>
48 * @version SVN $Id: CPSFile.php 389 2010-06-20 14:18:58Z jerryablan@gmail.com $
49 * @since v1.0.0
50 *
176 /**
177 * As found on php.net posted by: BigueNique at yahoo dot ca 20-Apr-2010 07:15
178 * A safe empowered glob().
179 *
256 $array[$key] = array_prepend( $element, $string, $deep );
257 else
258 trigger_error( 'array_prepend: array element', E_USER_WARNING );
259 }
260 else
UserManager.php (https://gitlab.com/galaxy-pidev/AllForDealWeb) PHP · 243 lines
1 <?php
3 /*
138 public function refreshUser(SecurityUserInterface $user)
139 {
140 trigger_error('Using the UserManager as user provider is deprecated. Use FOS\UserBundle\Security\UserProvider instead.', E_USER_DEPRECATED);
142 $class = $this->getClass();
170 public function loadUserByUsername($username)
171 {
172 trigger_error('Using the UserManager as user provider is deprecated. Use FOS\UserBundle\Security\UserProvider instead.', E_USER_DEPRECATED);
174 $user = $this->findUserByUsername($username);
237 public function supportsClass($class)
238 {
239 trigger_error('Using the UserManager as user provider is deprecated. Use FOS\UserBundle\Security\UserProvider instead.', E_USER_DEPRECATED);
241 return $class === $this->getClass();
URI.php (https://github.com/amet17/webstar.git) PHP · 182 lines
function.html_checkboxes.php (https://bitbucket.org/mrajoelisolo/ci_smarty.git) PHP · 233 lines
1 <?php
2 /**
3 * Smarty plugin
10 * Smarty {html_checkboxes} function plugin
11 *
12 * File: function.html_checkboxes.php<br>
13 * Type: function<br>
14 * Name: html_checkboxes<br>
33 * </pre>
34 *
35 * @link http://www.smarty.net/manual/en/language.function.html.checkboxes.php {html_checkboxes}
36 * (Smarty online manual)
37 * @author Christopher Kvarme <christopher.kvarme@flashjab.com>
45 function smarty_function_html_checkboxes($params, $template)
46 {
47 require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
49 $name = 'checkbox';
date_api.php (https://github.com/fusenigk/mantisbt-1.git) PHP · 270 lines
1 <?php
2 # MantisBT - A PHP based bugtracking system
24 * @link http://www.mantisbt.org
25 *
26 * @uses config_api.php
27 * @uses constant_inc.php
28 * @uses helper_api.php
29 * @uses html_api.php
30 * @uses lang_api.php
31 */
33 require_api( 'config_api.php' );
34 require_api( 'constant_inc.php' );
FragmentCache.php (https://gitlab.com/juanito.abelo/nlmobile) PHP · 228 lines
1 <?php
3 /**
8 }
10 w3_require_once(W3TC_LIB_W3_DIR . '/Plugin.php');
12 /**
143 if (!is_int($expiration)) {
144 $expiration = (int) $expiration;
145 trigger_error(__METHOD__ . ' needs expiration parameter to be an int.', E_USER_WARNING);
146 }
171 if (!is_int($expiration)) {
172 $expiration = (int) $expiration;
173 trigger_error(__METHOD__ . ' needs expiration parameter to be an int.', E_USER_WARNING);
174 }
unicode.php (https://github.com/katalystsol/joomla-platform.git) PHP · 269 lines
1 <?php
2 /**
3 * @version $Id$
8 * Portions created by the Initial Developer are Copyright (C) 1998
9 * the Initial Developer. All Rights Reserved.
10 * Ported to PHP by Henri Sivonen (http://hsivonen.iki.fi)
11 * Slight modifications to fit with phputf8 library by Harry Fuecks (hfuecks gmail com)
12 * @see http://lxr.mozilla.org/seamonkey/source/intl/uconv/src/nsUTF8ToUnicode.cpp
13 * @see http://lxr.mozilla.org/seamonkey/source/intl/uconv/src/nsUnicodeToUTF8.cpp
14 * @see http://hsivonen.iki.fi/php-utf8/
15 * @package utf8
16 * @subpackage unicode
24 * are not allowed.
25 * Returns false if the input string isn't a valid UTF-8 octet sequence
26 * and raises a PHP error at level E_USER_WARNING
27 * Note: this function has been modified slightly in this library to
28 * trigger errors on encountering bad bytes
Forms.php (https://bitbucket.org/JoeKyy/r-dio-animix.git) PHP · 484 lines
autoexpandedmenu.menuloader.class.php (https://bitbucket.org/dreamriks/gift.git) PHP · 209 lines
1 <?php
2 /**
3 * @version $Id: autoexpandedmenu.menuloader.class.php 517 2011-06-12 12:47:20Z $
13 }
15 require_once(EXTENDED_MENU_HOME.'/loader/section.menuloader.class.php');
17 /**
166 $this->replaceMenuNodes($parentMenuNode, $oldMenuNodeList, $newMenuNodeList);
167 } else {
168 trigger_error('No parent for the menu node found.', E_USER_NOTICE);
169 }
170 }
form.inc.php (https://github.com/fmake/fmake.git) PHP · 315 lines
1 <?php
2 /*
3 File: form.inc.php
7 Title: xajax HTML control class library
9 Please see <copyright.inc.php> for a detailed description, copyright
10 and license information.
11 */
13 /*
14 @package xajax
15 @version $Id: form.inc.php 362 2007-05-29 15:32:24Z calltoconstruct $
16 @copyright Copyright (c) 2005-2007 by Jared White & J. Max Wilson
17 @copyright Copyright (c) 2008-2009 by Joseph Woolley, Steffen Konerow, Jared White & J. Max Wilson
150 $this->addOption($aOption[$aFields[0]], $aOption[$aFields[1]]);
151 else
152 trigger_error('Invalid list of fields passed to clsSelect::addOptions; should be array of two strings.'
153 . $this->backtrace(),
154 E_USER_ERROR
apache.php (https://github.com/AJenbo/ubuntudanmark.dk.git) PHP · 264 lines
37 * @param string $php_ext PHP file extension
38 */
39 public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\config\config $config, \phpbb\passwords\manager $passwords_manager, \phpbb\request\request $request, \phpbb\user $user, $phpbb_root_path, $php_ext)
40 {
41 $this->db = $db;
53 public function init()
54 {
55 if (!$this->request->is_set('PHP_AUTH_USER', \phpbb\request\request_interface::SERVER) || $this->user->data['username'] !== htmlspecialchars_decode($this->request->server('PHP_AUTH_USER')))
56 {
57 return $this->user->lang['APACHE_SETUP_BEFORE_USE'];
160 }
162 $php_auth_user = htmlspecialchars_decode($this->request->server('PHP_AUTH_USER'));
163 $php_auth_pw = htmlspecialchars_decode($this->request->server('PHP_AUTH_PW'));
165 if (!empty($php_auth_user) && !empty($php_auth_pw))
166 {
167 set_var($php_auth_user, $php_auth_user, 'string', true);
168 set_var($php_auth_pw, $php_auth_pw, 'string', true);
ms-default-constants.php (https://bitbucket.org/jstroschein/wordpress-3.5.1-clean.git) PHP · 151 lines
1 <?php
2 /**
3 * Defines constants and global variables that can be overridden, generally in wp-config.php.
12 *
13 * Exists for backward compatibility with legacy file-serving through
14 * wp-includes/ms-files.php (wp-content/blogs.php in MU).
15 *
16 * @since 3.0.0
19 global $wpdb;
21 // This filter is attached in ms-default-filters.php but that file is not included during SHORTINIT.
22 add_filter( 'default_site_option_ms_files_rewriting', '__return_true' );
86 *
87 * Exists for backward compatibility with legacy file-serving through
88 * wp-includes/ms-files.php (wp-content/blogs.php in MU).
89 *
90 * @since 3.0.0
Compiler.php (https://github.com/pct/4money.git) PHP · 288 lines
1 <?php
3 /*
17 /**
18 * Compiles a node to PHP code.
19 *
20 * @author Fabien Potencier <fabien@symfony.com>
42 public function getFilename()
43 {
44 @trigger_error(sprintf('The %s() method is deprecated since version 1.25 and will be removed in 2.0.', __FUNCTION__), \E_USER_DEPRECATED);
46 return $this->filename;
59 /**
60 * Gets the current PHP code after compilation.
61 *
62 * @return string The PHP code
RouterListener.php (https://gitlab.com/martinstti/silex-microframework-rest) PHP · 191 lines
1 <?php
3 /*
66 $context = $tmp;
68 @trigger_error('The '.__METHOD__.' method now requires a RequestStack to be given as second argument as '.__CLASS__.'::setRequest method will not be supported anymore in 3.0.', E_USER_DEPRECATED);
69 } elseif (!$requestStack instanceof RequestStack) {
70 @trigger_error('The '.__METHOD__.' method now requires a RequestStack instance as '.__CLASS__.'::setRequest method will not be supported anymore in 3.0.', E_USER_DEPRECATED);
108 public function setRequest(Request $request = null)
109 {
110 @trigger_error('The '.__METHOD__.' method is deprecated since version 2.4 and will be made private in 3.0.', E_USER_DEPRECATED);
112 $this->setCurrentRequest($request);
function.html_select_time.php (https://bitbucket.org/simancms/simancms.git) PHP · 194 lines
1 <?php
2 /**
3 * Smarty plugin
13 * Name: html_select_time<br>
14 * Purpose: Prints the dropdowns for time selection
15 * @link http://smarty.php.net/manual/en/language.function.html.select.time.php {html_select_time}
16 * (Smarty online manual)
17 * @author Roberto Berto <roberto@berto.net>
36 $minute_interval = 1;
37 $second_interval = 1;
38 /* Should the select boxes be part of an array when returned from PHP?
39 e.g. setting it to "birthday", would create "birthday[Hour]",
40 "birthday[Minute]", "birthday[Seconds]" & "birthday[Meridian]".
75 default:
76 $smarty->trigger_error("[html_select_time] unknown parameter $_key", E_USER_WARNING);
77 }
78 }
Dispatcher.php (https://github.com/Kazuzeya/OpenFlame-Framework.git) PHP · 214 lines
1 <?php
2 /**
3 *
5 * @subpackage event
6 * @copyright (c) 2010 - 2011 openflame-project.org
7 * @license http://opensource.org/licenses/mit-license.php The MIT License
8 * @link https://github.com/OpenFlame/OpenFlame-Framework
9 *
10 * Minimum Requirement: PHP 5.3.0
11 */
19 *
20 *
21 * @license http://opensource.org/licenses/mit-license.php The MIT License
22 * @link https://github.com/OpenFlame/OpenFlame-Framework
23 */
MVCFactory.php (https://github.com/joomla/joomla-cms.git) PHP · 358 lines
1 <?php
3 /**
116 if (!$prefix) {
117 @trigger_error(
118 sprintf(
119 'Calling %s() without a prefix is deprecated.',
142 $model->setDatabase($this->getDatabase());
143 } catch (DatabaseNotFoundException $e) {
144 @trigger_error(sprintf('Database must be set, this will not be caught anymore in 5.0.'), E_USER_DEPRECATED);
145 $model->setDatabase(Factory::getContainer()->get(DatabaseInterface::class));
146 }
172 if (!$prefix) {
173 @trigger_error(
174 sprintf(
175 'Calling %s() without a prefix is deprecated.',
project_hierarchy_api.php (https://github.com/osarrat/sigmah-website.git) PHP · 283 lines
1 <?php
2 # MantisBT - a php based bugtracking system
38 function project_hierarchy_add( $p_child_id, $p_parent_id, $p_inherit_parent = true ) {
39 if( in_array( $p_parent_id, project_hierarchy_get_all_subprojects( $p_child_id ) ) ) {
40 trigger_error( ERROR_PROJECT_RECURSIVE_HIERARCHY, ERROR );
41 }
function.html_checkboxes.php (https://gitlab.com/fiesta-framework/Documentation) PHP · 237 lines
1 <?php
2 /**
3 * Smarty plugin
9 /**
10 * Smarty {html_checkboxes} function plugin
11 * File: function.html_checkboxes.php<br>
12 * Type: function<br>
13 * Name: html_checkboxes<br>
32 * </pre>
33 *
34 * @link http://www.smarty.net/manual/en/language.function.html.checkboxes.php {html_checkboxes}
35 * (Smarty online manual)
36 * @author Christopher Kvarme <christopher.kvarme@flashjab.com>
46 function smarty_function_html_checkboxes($params, $template)
47 {
48 require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
50 $name = 'checkbox';
function.fetch.php (https://gitlab.com/fiesta-framework/Documentation) PHP · 221 lines
1 <?php
2 /**
3 * Smarty plugin
13 * Purpose: fetch file, web or ftp data and display results
14 *
15 * @link http://www.smarty.net/manual/en/language.function.fetch.php {fetch}
16 * (Smarty online manual)
17 * @author Monte Ohrt <monte at ohrt dot com>
26 {
27 if (empty($params['file'])) {
28 trigger_error("[plugin] fetch parameter 'file' cannot be empty", E_USER_NOTICE);
30 return;
43 if (isset($template->smarty->security_policy)) {
44 if ($protocol) {
45 // remote resource (or php stream, …)
46 if (!$template->smarty->security_policy->isTrustedUri($params['file'])) {
47 return;
Version.php (https://gitlab.com/OnBlox/OnBlox-Template) PHP · 226 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
87 if (null === $httpClient && !ini_get('allow_url_fopen')) {
88 trigger_error(
89 sprintf(
90 'allow_url_fopen is not set, and no Zend\Http\Client ' .
91 'was passed. You must either set allow_url_fopen in ' .
92 'your PHP configuration or pass a configured ' .
93 'Zend\Http\Client as the second argument to %s.',
94 __METHOD__
106 $response = self::getLatestFromZend($httpClient);
107 } else {
108 trigger_error(
109 sprintf(
110 'Unknown version service: %s',
ValidatorBuilder.php (https://gitlab.com/remyvianne/krowkaramel) PHP · 241 lines
1 <?php
2 namespace MailPoetVendor\Symfony\Component\Validator;
3 if (!defined('ABSPATH')) exit;
127 public function setMetadataCache(CacheInterface $cache)
128 {
129 @\trigger_error(\sprintf('%s is deprecated since Symfony 4.4. Use setMappingCache() instead.', __METHOD__), \E_USER_DEPRECATED);
130 if (null !== $this->metadataFactory) {
131 throw new ValidatorException('You cannot set a custom metadata cache after setting a custom metadata factory. Configure your metadata factory instead.');
spamhurdles.php (https://github.com/mysnip/Core.git) PHP · 353 lines
1 <?php
2 if (!defined("PHORUM")) return;
4 require_once("./mods/spamhurdles/api.php");
6 $GLOBALS['PHORUM']['DATA']['SPAMHURDLES_BEFORE_FOOTER'] = '';
101 if (isset($PHORUM["DATA"]["POSTING"]["message_id"])) {
102 if (!empty($PHORUM["DATA"]["POSTING"]["message_id"])) return;
103 } else trigger_error(
104 "phorum_mod_spamhurdles_tpl_editor_before_textarea(): " .
105 "Can't determine whether we're editing a new message",
123 {
124 $data = spamhurdles_api_get_formdata('posting');
125 if ($data === NULL) trigger_error(
126 'No "spamhurdles_posting" data field was found in the POST ' .
127 'request. This should not happen.',
AkBaseModel.php (https://github.com/akelos/v1.git) PHP · 150 lines
1 <?php
2 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
19 defined('AK_LOG_EVENTS') ? null : define('AK_LOG_EVENTS', false);
21 require_once(AK_LIB_DIR.DS.'Ak.php');
22 require_once(AK_LIB_DIR.DS.'AkInflector.php');
23 require_once(AK_LIB_DIR.DS.'AkObject.php');
25 /**
26 * This is the base class for all sort of models (Mailers or Active records)
27 * It handles the naming conventions for models, as in PHP4 all methods appear lowercased
28 * we to work around to find the real case of the methos to apply conventions.
29 *
TableStyle.php (https://github.com/gimler/symfony.git) PHP · 458 lines
1 <?php
3 /*
113 public function setHorizontalBorderChar($horizontalBorderChar)
114 {
115 @trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.1, use setHorizontalBorderChars() instead.', __METHOD__), E_USER_DEPRECATED);
117 return $this->setHorizontalBorderChars($horizontalBorderChar, $horizontalBorderChar);
127 public function getHorizontalBorderChar()
128 {
129 @trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.1, use getBorderChars() instead.', __METHOD__), E_USER_DEPRECATED);
131 return $this->horizontalOutsideBorderChar;
169 public function setVerticalBorderChar($verticalBorderChar)
170 {
171 @trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.1, use setVerticalBorderChars() instead.', __METHOD__), E_USER_DEPRECATED);
173 return $this->setVerticalBorderChars($verticalBorderChar, $verticalBorderChar);
function.html_select_time.php (https://gitlab.com/fiesta-framework/Documentation) PHP · 364 lines
1 <?php
2 /**
3 * Smarty plugin
10 * @ignore
11 */
12 require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
13 /**
14 * @ignore
15 */
16 require_once(SMARTY_PLUGINS_DIR . 'shared.make_timestamp.php');
18 /**
22 * Purpose: Prints the dropdowns for time selection
23 *
24 * @link http://www.smarty.net/manual/en/language.function.html.select.time.php {html_select_time}
25 * (Smarty online manual)
26 * @author Roberto Berto <roberto@berto.net>
class-IXR-message.php (https://gitlab.com/WPonEB/WPonEB) PHP · 234 lines
1 <?php
3 /**
30 /**
31 * PHP5 constructor.
32 */
33 function __construct( $message )
38 /**
39 * PHP4 constructor.
40 */
41 public function IXR_Message( $message ) {
46 {
47 if ( ! function_exists( 'xml_parser_create' ) ) {
48 trigger_error( __( "PHP's XML extension is not available. Please contact your hosting provider to enable PHP's XML extension." ) );
49 return false;
50 }
Config.php (https://github.com/paveli/OpenStructPHP.git) PHP · 259 lines
1 <?php
2 /**
3 * Работа с конфигами - класс Open_Config
100 {
101 if($_trigger)
102 { trigger_error(sprintf(Open_Text::getInstance()->dget('errors', 'Config file <b>%s</b> does not exist'), $_name . EXT), E_USER_WARNING);
103 }
150 }
151 else
152 { trigger_error(sprintf(Open_Text::getInstance()->dget('errors', 'Config item <b>%s[%s]</b> does not exist'), $section, $name), E_USER_NOTICE);
153 return FALSE;
154 }
169 * Если ничего не найдено, то выдаём ошибку
170 */
171 trigger_error(sprintf(Open_Text::getInstance()->dget('errors', 'Config item <b>%s[%s]</b> does not exist'), $section, $name), E_USER_NOTICE);
172 return FALSE;
173 }
function.html_options.php (https://github.com/exponentcms/exponent-cms.git) PHP · 230 lines
1 <?php
2 /**
3 * Smarty plugin
22 * - class (optional) - string default not set
23 *
24 * @link https://www.smarty.net/manual/en/language.function.html.options.php {html_image}
25 * (Smarty online manual)
26 * @author Monte Ohrt <monte at ohrt dot com>
41 array(
42 'function' => 'smarty_function_escape_special_chars',
43 'file' => SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php'
44 )
45 )
75 $_sel = smarty_function_escape_special_chars((string)$_sel->__toString());
76 } else {
77 trigger_error(
78 'html_options: selected attribute contains an object of class \'' .
79 get_class($_sel) . '\' without __toString() method',
Logwriter.php (https://github.com/DQNEO/ethnam.git) PHP · 199 lines
1 <?php
2 // vim: foldmethod=marker
3 /**
4 * Logwriter.php
5 *
6 * @author Masaki Fujimoto <fujimoto@php.net>
7 * @license http://www.opensource.org/licenses/bsd-license.php The BSD License
8 * @package Ethna
9 * @version $Id: 2c77ef9c1d85fac4529da14346254687c3f1c9d7 $
14 * ログ出力基底クラス
15 *
16 * @author Masaki Fujimoto <fujimoto@php.net>
17 * @access public
18 * @package Ethna
function.html_select_time.php (https://github.com/laurentc/NApf.git) PHP · 194 lines
1 <?php
2 /**
3 * Smarty plugin
14 * Purpose: Prints the dropdowns for time selection
15 *
16 * @link http://smarty.php.net/manual/en/language.function.html.select.time.php {html_select_time}
17 * (Smarty online manual)
18 * @author Roberto Berto <roberto@berto.net>
25 function smarty_function_html_select_time($params, $template)
26 {
27 require_once(SMARTY_PLUGINS_DIR . 'shared.make_timestamp.php');
28 require_once(SMARTY_PLUGINS_DIR . 'function.html_options.php');
38 $minute_interval = 1;
39 $second_interval = 1;
40 /* Should the select boxes be part of an array when returned from PHP?
41 e.g. setting it to "birthday", would create "birthday[Hour]",
42 "birthday[Minute]", "birthday[Seconds]" & "birthday[Meridian]".
file.php (https://github.com/tharkun/atoum.git) PHP · 184 lines
1 <?php
3 namespace mageekguy\atoum\tests\units\writers;
8 ;
10 require_once __DIR__ . '/../../runner.php';
12 class file extends atoum\test
102 $this
103 ->if($adapter = new atoum\test\adapter())
104 ->if($adapter->fopen = function() { trigger_error(uniqid()); return false; })
105 ->and($file = new testedClass(null, $adapter))
106 ->and($adapter->resetCalls())
class.controller.php (https://bitbucket.org/ferOnti/processmaker.git) PHP · 296 lines
ErrorHandler.php (https://gitlab.com/alexandresgv/siteentec) PHP · 188 lines
3 * ErrorHandler class
4 *
5 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
7 *
11 *
12 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
13 * @link http://cakephp.org CakePHP(tm) Project
14 * @since 0.10.5
15 * @license http://www.opensource.org/licenses/mit-license.php MIT License
60 * ### PHP errors
61 *
62 * Error handler also provides the built in features for handling php errors (trigger_error).
63 * While in debug mode, errors will be output to the screen using debugger. While in production mode,
64 * errors will be logged to Log. You can control which errors are logged by setting
Uri.php (https://github.com/Formless/pewpew4720.git) PHP · 207 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Uri.php 23775 2011-03-01 17:25:24Z ralph $
20 */
57 return $this->getUri();
58 } catch (Exception $e) {
59 trigger_error($e->getMessage(), E_USER_WARNING);
60 return '';
61 }
103 if (strlen($scheme) === 0) {
104 require_once 'Zend/Uri/Exception.php';
105 throw new Zend_Uri_Exception('An empty string was supplied for the scheme');
106 }
factory.php (https://github.com/archoo/electionleaflets.git) PHP · 291 lines
1 <?php
2 /** @internal Set Callback for object unserialization */
3 ini_set('unserialize_callback_func', 'unserialize_callback_factory');
5 require_once('table_classes/leaflet.php');
6 require_once('table_classes/party.php');
7 require_once('table_classes/category.php');
8 require_once('table_classes/constituency.php');
16 switch ($class_name) {
17 case 'search':
18 require_once('search.php');
19 if (!$require_only) {
20 $object = new searcher();
m_dijaki.php (https://gitlab.com/diplomskaoiv/oiv) PHP · 266 lines
1 <?php
3 class m_dijaki extends Model{
12 // Return any errors
13 if($stmt === false) {
14 trigger_error("SQL error: " . $connection->error, E_USER_ERROR);
15 }
49 // Return any errors
50 if($stmt === false) {
51 trigger_error("SQL error: " . $connection->error, E_USER_ERROR);
52 }
84 // Return any errors
85 if($stmt === false) {
86 trigger_error("SQL error: " . $connection->error, E_USER_ERROR);
87 }
Locale.php (https://github.com/lapistano/symfony.git) PHP · 195 lines
1 <?php
3 /*
12 namespace Symfony\Component\Locale;
14 trigger_error('The '.__NAMESPACE__.'\Locale class is deprecated since version 2.7, to be removed in Symfony 3.0. Use the methods provided by the \Symfony\Component\Intl\Intl class instead.', E_USER_DEPRECATED);
16 use Symfony\Component\Intl\Intl;
mysql.php (https://github.com/MythTV/mythweb.git) PHP · 191 lines
131 * Fetch a single row as an array containing both numeric and assoc fields
132 *
133 * @link http://www.php.net/manual/en/function.mysql-fetch-array.php
134 * @return assoc
135 **/
150 /**
151 * @link http://www.php.net/manual/en/function.mysql-data-seek.php
152 * @return bool
153 **/
174 /**
175 * @link http://www.php.net/manual/en/function.mysql-insert-id.php
176 * @return int
177 **/
Exception.php (https://gitlab.com/alvinahmadov2/hhvm) PHP · 278 lines
1 <?php
3 // This doc comment block generated by idl/sysdoc.php
4 /**
5 * ( excerpt from http://docs.hhvm.com/manual/en/class.exception.php )
6 *
7 * Exception is the base class for all Exceptions.
10 class Exception {
11 protected $message = ''; // exception message
12 private $string = ''; // php5 has this, we don't use it
13 protected $code = 0; // user defined exception code
14 protected $file; // source filename of exception
34 private function __check_init($context) {
35 if (!isset($this->trace)) {
36 trigger_error($context.': exception object not initialized', E_WARNING);
37 return false;
38 } else {
List.php (https://github.com/radicalsuz/amp.git) PHP · 187 lines
1 <?php
3 require_once( 'AMP/Display/List.php');
4 require_once( 'AMP/Content/Article.inc.php');
6 class AMP_Content_Article_Display_List extends AMP_Display_List {
35 var $_class_pager = 'AMP_Display_Pager_Content';
36 var $_path_pager = 'AMP/Display/Pager/Content.php';
38 function AMP_Content_Article_Display_List( $source = false, $criteria = array( )) {
138 function addFilter( $filter_name, $filter_var = null ) {
139 trigger_error( AMP_TEXT_ERROR_NOT_DEFINED , get_class( $this), 'addFilter' );
140 return;
141 }
RecordQuery.class.php (https://github.com/openstate/HNS.dev.git) PHP · 238 lines
1 <?php
2 require_once 'record/RecordCollection.class.php';
215 //notice to make sure it is understood what is happening here.
216 if (!empty($queryData['group']))
217 trigger_error('Grouping columns are added and will be removed, use getCountGrouped instead if you want them added', E_USER_NOTICE);
218 $queryData['group'] = array();
219 $query = $rec->buildFetchQuery($queryData);
Cloud.php (https://github.com/zucchi/zf2.git) PHP · 330 lines
function.html_image.php (https://github.com/exponentcms/exponent-cms.git) PHP · 158 lines
1 <?php
2 /**
3 * Smarty plugin
22 * - path_prefix - prefix for path output (optional, default empty)
23 *
24 * @link https://www.smarty.net/manual/en/language.function.html.image.php {html_image}
25 * (Smarty online manual)
26 * @author Monte Ohrt <monte at ohrt dot com>
41 array(
42 'function' => 'smarty_function_escape_special_chars',
43 'file' => SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php'
44 )
45 )
92 }
93 if (empty($file)) {
94 trigger_error('html_image: missing \'file\' parameter', E_USER_NOTICE);
95 return;
96 }
AdminObjectAclManipulator.php (https://gitlab.com/cuza/Clinic_Recods) PHP · 295 lines
1 <?php
3 /*
73 public function createForm(AdminObjectAclData $data)
74 {
75 trigger_error('createForm() is deprecated since version 3.0. Use createAclUsersForm() instead.', E_USER_DEPRECATED);
77 return $this->createAclUsersForm($data);
147 public function updateAcl(AdminObjectAclData $data)
148 {
149 trigger_error('updateAcl() is deprecated since version 3.0. Use updateAclUsers() instead.', E_USER_DEPRECATED);
151 $this->updateAclUsers($data);
Serializer.php (https://github.com/jarednipper/HSU-common-code.git) PHP · 172 lines
1 <?php
3 class HTMLPurifier_DefinitionCache_Serializer extends
113 $base = $this->generateBaseDirectoryPath($config);
114 if (!is_dir($base)) {
115 trigger_error('Base directory '.$base.' does not exist,
116 please create or change using %Cache.SerializerPath',
117 E_USER_WARNING);
139 // generally, you'll want to handle this beforehand
140 // so a more specific error message can be given
141 trigger_error('Directory '.$dir.' does not exist',
142 E_USER_WARNING);
143 return false;
152 $chmod = '775';
153 } else {
154 // PHP's probably running as nobody, so we'll
155 // need to give global permissions
156 $chmod = '777';
smarty_internal_wrapper.php (https://github.com/JeromeDane/Blank-Canvas-CMS.git) PHP · 131 lines
1 <?php
3 /**
4 * Project: Smarty: the PHP compiling template engine
5 * File: smarty_internal_wrapper.php
55 // throw notice about deprecated function
56 if($this->smarty->deprecation_notices)
57 trigger_error("function call '$name' is unknown or deprecated.",E_USER_NOTICE);
58 // get first and last part of function name
59 $name_parts = explode('_',$name,2);
107 switch($name_parts[1]) {
108 case 'error':
109 return call_user_func_array('trigger_error',$args);
110 }
111 case 'load':
GroupSequence.php (https://gitlab.com/matijabelec/bigpandadev) PHP · 213 lines
1 <?php
3 /*
107 public function getIterator()
108 {
109 @trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
111 return new \ArrayIterator($this->groups);
125 public function offsetExists($offset)
126 {
127 @trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
129 return isset($this->groups[$offset]);
145 public function offsetGet($offset)
146 {
147 @trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
149 if (!isset($this->groups[$offset])) {
function.html_table.php (https://github.com/pennsong/ShiyishiWeb.git) PHP · 177 lines
1 <?php
2 /**
3 * Smarty plugin
41 * @author credit to boots <boots dot smarty at yahoo dot com>
42 * @version 1.1
43 * @link http://smarty.php.net/manual/en/language.function.html.table.php {html_table}
44 * (Smarty online manual)
45 * @param array
63 if (!isset($params['loop'])) {
64 $smarty->trigger_error("html_table: missing 'loop' parameter");
65 return;
66 }
Renderer.php (https://gitlab.com/szlongshu/manaphp) PHP · 174 lines
20 public function __construct()
21 {
22 $this->_registeredEngines['.phtml'] = 'ManaPHP\Mvc\View\Renderer\Engine\Php';
23 $this->_registeredEngines['.tpl'] = 'ManaPHP\Mvc\View\Renderer\Engine\Smarty';
30 * @return \ManaPHP\Mvc\View\Renderer\EngineInterface
31 * @throws \ManaPHP\Mvc\View\Renderer\Exception
32 */
33 protected function _loadEngine($extension)
43 if (!$engine instanceof EngineInterface) {
44 throw new Exception('Invalid template engine: it is not implements \ManaPHP\Mvc\Renderer\EngineInterface');
45 }
146 *<code>
147 *$renderer->registerEngines(array(
148 * ".phtml" => "ManaPHP\Mvc\View\Renderer\Engine\Php",
149 * ".html" => "ManaPHP\Mvc\View\Renderer\Engine\Html",
InputDefinition.php (https://gitlab.com/gideonmarked/PLCPortal) PHP · 458 lines
1 <?php
3 /*
181 public function getArgumentCount()
182 {
183 return $this->hasAnArrayArgument ? PHP_INT_MAX : count($this->arguments);
184 }
423 public function asText()
424 {
425 @trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0.', E_USER_DEPRECATED);
427 $descriptor = new TextDescriptor();
443 public function asXml($asDom = false)
444 {
445 @trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0.', E_USER_DEPRECATED);
447 $descriptor = new XmlDescriptor();
editor.php (https://github.com/luthercollege/reason_package.git) PHP · 177 lines
1 <?php
2 /**
3 * @package reason
8 * Include the default module
9 */
10 reason_include_once('classes/admin/modules/default.php');
12 /**
87 function _build_content_manager()
88 {
89 reason_include_once( 'content_managers/default.php3' );
90 $content_handler = $GLOBALS[ '_content_manager_class_names' ][ 'default.php3' ];
99 else
100 {
101 trigger_error('Content handler not found in '.$include_file);
102 }
103 }
Addendum.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 173 lines
1 <?php
2 /**
3 * @version $Id: Addendum.php 53534 2012-06-06 18:21:34Z btowles $
9 * Original Copyright below
10 *
11 * RokCommon_Annotation_Addendum PHP Reflection Annotations
12 * http://code.google.com/p/addendum/
13 *
149 break;
150 default:
151 trigger_error("Cannot resolve class name for '$class'. Possible matches: " . join(', ', $matching), E_USER_ERROR);
152 }
153 self::$classnames[$class] = $result;
DiffFormatter.php (https://gitlab.com/leoplanxxi/dr7-web-buap-2016) PHP · 187 lines
unicode.php (https://github.com/mcrider/pkpUpgradeTestSuite.git) PHP · 269 lines
1 <?php
2 /**
3 * @version $Id: unicode.php,v 1.1 2008/10/10 20:52:53 mj Exp $
8 * Portions created by the Initial Developer are Copyright (C) 1998
9 * the Initial Developer. All Rights Reserved.
10 * Ported to PHP by Henri Sivonen (http://hsivonen.iki.fi)
11 * Slight modifications to fit with phputf8 library by Harry Fuecks (hfuecks gmail com)
12 * @see http://lxr.mozilla.org/seamonkey/source/intl/uconv/src/nsUTF8ToUnicode.cpp
13 * @see http://lxr.mozilla.org/seamonkey/source/intl/uconv/src/nsUnicodeToUTF8.cpp
14 * @see http://hsivonen.iki.fi/php-utf8/
15 * @package utf8
16 * @subpackage unicode
24 * are not allowed.
25 * Returns false if the input string isn't a valid UTF-8 octet sequence
26 * and raises a PHP error at level E_USER_WARNING
27 * Note: this function has been modified slightly in this library to
28 * trigger errors on encountering bad bytes
Api.php (https://bitbucket.org/ZephyrQG2/sf2bundleeditable.git) PHP · 302 lines
1 <?php
2 /**
3 * @file
136 curl_close($ch);
137 if ($this->public_key == 'demopublickey' || $this->secret_key == 'demoprivatekey') {
138 trigger_error('You are using the demo account. Please get an Uploadcare account at https://uploadcare.com/accounts/create/', E_USER_WARNING);
139 }
140 return json_decode($data);
173 curl_close($ch);
174 if ($this->public_key == 'demopublickey' || $this->secret_key == 'demoprivatekey') {
175 trigger_error('You are using the demo account. Please get an Uploadcare account at https://uploadcare.com/accounts/create/', E_USER_WARNING);
176 }
177 return json_decode($data);
283 'Content-Type: application/json',
284 'Content-Length: '.$content_length,
285 'User-Agent: PHP Uploadcare Module '.$this->version,
286 sprintf('Date: %s', date('Y-m-d H:i:s')),
287 ) + $add_headers;
PPXmlMessage.php (https://gitlab.com/CORP-RESELLER/sdk-core-php) PHP · 195 lines
api.php (https://github.com/mmakaay/Modules.git) PHP · 224 lines
1 <?php
3 /**
47 // We only need to include the english language file in that case.
48 if (! isset($PHORUM['DATA']['LANG']['mod_google_maps'])) {
49 include_once dirname(__FILE__) . "/lang/english.php";
50 }
55 $maptool_type !== 'viewer' &&
56 $maptool_type !== 'plotter') {
57 trigger_error('Illegal maptool type: ' . $maptool_type, E_USER_ERROR);
58 }
111 // Grab the map code.
112 ob_start();
113 include dirname(__FILE__) . "/maptool/{$maptool_type}.php";
114 $maptool = ob_get_contents();
115 ob_end_clean();
smarty_internal_data.php (https://github.com/taptouchclick/The-Event-Day.git) PHP · 479 lines
1 <?php
3 /**
77 {
78 if($this->smarty->deprecation_notices)
79 trigger_error("function call 'assign_by_ref' is unknown or deprecated, use 'assignByRef'", E_USER_NOTICE);
80 $this->assignByRef($tpl_var, $value);
81 }
173 {
174 if($this->smarty->deprecation_notices)
175 trigger_error("function call 'append_by_ref' is unknown or deprecated, use 'appendByRef'", E_USER_NOTICE);
176 $this->appendByRef($tpl_var, $value, $merge);
177 }
function.html_table.php (https://github.com/greevex/mzz-framework-blank-application.git) PHP · 178 lines
1 <?php
2 /**
3 * Smarty plugin
27 * @author credit to boots <boots dot smarty at yahoo dot com>
28 * @version 1.1
29 * @link http://smarty.php.net/manual/en/language.function.html.table.php {html_table}
30 * (Smarty online manual)
31 * @param array $params parameters
66 if (!isset($params['loop'])) {
67 trigger_error("html_table: missing 'loop' parameter",E_USER_WARNING);
68 return;
69 }