PHP error

Array and string offset access syntax with curly braces is deprecated

/home/detecti1/yii-cn/framework/web/helpers/CJSON.php(128)

116                     return json_encode($var);
117 
118                 // STRINGS ARE EXPECTED TO BE IN ASCII OR UTF-8 FORMAT
119                 $ascii = '';
120                 $strlen_var = strlen($var);
121 
122                /*
123                 * Iterate over every character in the string,
124                 * escaping with a slash or encoding to UTF-8 where necessary
125                 */
126                 for ($c = 0; $c < $strlen_var; ++$c) {
127 
128                     $ord_var_c = ord($var{$c});
129 
130                     switch (true) {
131                         case $ord_var_c == 0x08:
132                             $ascii .= '\b';
133                             break;
134                         case $ord_var_c == 0x09:
135                             $ascii .= '\t';
136                             break;
137                         case $ord_var_c == 0x0A:
138                             $ascii .= '\n';
139                             break;
140                         case $ord_var_c == 0x0C:

Stack Trace

#5
+
 /home/detecti1/public_html/protected/modules/cruge/views/ui/pwdrec.php(27): CBaseController->widget("CCaptcha")
22     
23     <?php if(CCaptcha::checkRequirements()): ?>
24     <div class="row">
25         <?php echo $form->labelEx($model,'verifyCode'); ?>
26         <div>
27         <?php $this->widget('CCaptcha'); ?>
28         <?php echo $form->textField($model,'verifyCode'); ?>
29         </div>
30         <div class="hint"><?php echo CrugeTranslator::t("por favor ingrese los caracteres o digitos que vea en la imagen");?></div>
31         <?php echo $form->error($model,'verifyCode'); ?>
32     </div>
#10
+
 /home/detecti1/public_html/protected/modules/cruge/controllers/UiController.php(188): CController->render("pwdrec", array("model" => CrugeLogon))
183                     ,
184                     CrugeTranslator::t('Una nueva clave ha sido enviada a su correo')
185                 );
186             }
187         }
188         $this->render('pwdrec', array('model' => $model));
189     }
190 
191     public function actionLogout()
192     {
193         // retorna false si ocurrio un error O si el filtro de sesion
#25
+
 /home/detecti1/public_html/index.php(11): CApplication->run()
06 // remove the following lines when in production mode
07 defined('YII_DEBUG') or define('YII_DEBUG',true);
08 // specify how many levels of call stack should be shown in each log message
09 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
10 require_once($yii);
11 Yii::createWebApplication($config)->run();
2024-03-28 12:25:37 Apache Yii Framework/1.1.15