View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
20056Bug reportsOtherpublic2025-04-09 17:03
ReporterDenisChenu Assigned ToDenisChenu  
PrioritynoneSeverityminor 
Status assignedResolutionopen 
Product Version6.6.x 
Summary20056: debuig:1 still send deprecated error
Description

When set debug 1 : in theory we have error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED); but finally we get error_reporting(E_ALL)

Steps To Reproduce

Steps to reproduce

Import included plugin
Set debug 0 : OK
Set debug 2 : get error str_contains(): Passing null to parameter #2 ($needle) of type string is deprecated : OK
Set debug 1 :

Expected result

No error

Actual result

Show Deprecated
: str_contains(): Passing null to parameter #2 ($needle) of type string is deprecated in
/media/shnoulle/data/webdev/noplugin/upload/plugins/CheckDebug/CheckDebug.php

TagsNo tags attached.
Attached Files
CheckDebug.zip (1,241 bytes)
Bug heat2
Complete LimeSurvey version number (& build)6.12.3
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database type & versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP Versionnot relevant

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2025-04-09 17:03

developer   ~82405

Code of plugin

<?php
/**
 * CheckDebug 1 
 */
class CheckDebug extends PluginBase
{
    protected static $description = 'Check debug 1 : too test plugin : set debug 1 on config and load settings : no error must happen (deprecated function call)';
    protected static $name = 'CheckDebug';

    /** The settings : update in beforeSurveySettings **/
    protected $settings = array(
        'isDebug' => array(
            'type'=>'info',
            'content'=>'OK',
        )
    );

    /**
     * @see getPluginSettings
     */
    public function getPluginSettings($getValues = true)
    {
        str_contains('foobar', null);
        return parent::getPluginSettings($getValues);
    }
}

Issue History

Date Modified Username Field Change
2025-04-09 17:02 DenisChenu New Issue
2025-04-09 17:02 DenisChenu File Added: CheckDebug.zip
2025-04-09 17:03 DenisChenu Note Added: 82405
2025-04-09 17:03 DenisChenu Bug heat 0 => 2
2025-04-09 17:03 DenisChenu Assigned To => DenisChenu
2025-04-09 17:03 DenisChenu Status new => assigned