View Issue Details

IDProjectCategoryView StatusLast Update
0002219NOALYSSGeneralpublic2024-04-04 09:22
Reporterdanydb Assigned Todanydb  
PrioritynormaleSeveritymineurReproducibilitynon essayé
Status ferméResolutioncorrigé 
Fixed in Version9.2 
Summary0002219: Compatibilité PHP 8.2 , 8.1 , 8.0
DescriptionPour les messages
Deprecated: Creation of dynamic property ...

Ajouter juste avant la class ou ajouter les éléments dans la classe
#[AllowDynamicProperties]

Concerne :
    /noalyss/include/class/user.class.php
    /noalyss/include/lib/database_core.class.php
    /noalyss/include/class/periode.class.php
    /noalyss/include/lib/html_input.class.php
    /noalyss/include/lib/itext.class.php
    /noalyss/include/class/calendar.class.php
   /noalyss/include/class/follow_up.class.php
  /noalyss/include/lib/data_sql.class.php
Steps To ReproduceAutres incompatibilité
...


| /tfpdf/tfpdf.php:1260 | removed | Function get_magic_quotes_runtime() is removed. |
| | | Consider replace with They always return FALSE. () |
| /tfpdf/tfpdf.php:1618 | removed | Function imagedestroy() is removed. |
| /tfpdf/tfpdf.php:1632 | removed | Function imagedestroy() is removed. |

strlen null string
Additional InformationRéécriture de code, PHP minimum sera 8.0 https://www.php.net/releases/8.0/en.php
TagsNo tags attached.
Extension NoalyssAucun

Activities

danydb

2022-12-09 22:11

administrator   ~0005509

Dynamic Property : Possible d'utiliser le constructeur pour créer les attributs membres de la classe
         voir https://stitcher.io/blog/constructor-promotion-in-php-8

danydb

2022-12-19 18:26

administrator   ~0005518

Autre incompatibilité : strlen (null) trim (null) ...
Screenshot_20221219_182440.png (117,752 bytes)   
Screenshot_20221219_182440.png (117,752 bytes)   

danydb

2022-12-19 21:01

administrator   ~0005519

Changement pour utf8_decode et utf8_encode
============================================
Noalyss
-------------
git grep utf8_decode

include/class/acc_bilan.class.php: if ( $this->b_type != "rtf") { $a = utf8_decode($ret[0]['acct_name']);}
include/header_print.php: $dossier=utf8_decode(" Dossier : ".dossier::name());
include/lib/ac_common.php: $p_string2=utf8_decode($p_string);
include/lib/noalyss_csv.class.php: if ($this->encoding=="latin1") return utf8_decode ($str);

Plugin
---------

import_card/include/import_card.class.php: $array[$attr]=utf8_encode($row[$i]);
importbank/include/import_bank.class.php: $return = utf8_encode($p_string);
importbank/include/template/show_transfer.php: $third = utf8_encode($array_row[$i]);
importbank/include/template/show_transfer.php: $extra = utf8_encode($array_row[$i]);
tool_pcmn/include/import_plan.php: utf8_encode($row[1]),

danydb

2022-12-19 21:39

administrator   ~0005520

PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in noalyss/include/class/tva_rate_mtable.class.php
PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in noalyss/include/class/tva_rate_mtable.class.php on line 2
PHP Deprecated: str_replace(): Passing null to parameter 0000003 ($subject) of type array|string is deprecated in noalyss/include/lib/inum.class.php on line 2
PHP message: PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated /noalyss/include/class/tva_rate_mtable.class.php on line 2'
 PHP Deprecated: bcadd(): Passing null to parameter #2 ($num2) of type string is deprecated in noalyss/include/template/ledger_detail_bottom.php
PHP Deprecated: bcadd(): Passing null to parameter #2 ($num2) of type string is deprecated in noalyss/include/template/ledger_detail_bottom.php

danydb

2022-12-21 09:52

administrator   ~0005521

Deprecated: Implicit conversion from float 267933.32016 to int loses precision in /noalyss/include/recover.php on line 2

Deprecated: Implicit conversion from float 268026.14289 to int loses precision in noalyss/include/recover.php on line 2

danydb

2022-12-25 13:09

administrator   ~0005522

Plugin NDER : bcsub
deprecated-8.1-bcsub-nder.png (120,092 bytes)   
deprecated-8.1-bcsub-nder.png (120,092 bytes)   

danydb

2022-12-26 18:25

administrator   ~0005523

deprecated-8.1-bcsub-nder-2.png (120,092 bytes)   
deprecated-8.1-bcsub-nder-2.png (120,092 bytes)   
8-1-deprecated-listing.png (29,174 bytes)   
8-1-deprecated-listing.png (29,174 bytes)   
8-1-deprecated-followup.png (18,283 bytes)   
8-1-deprecated-followup.png (18,283 bytes)   
8-1-deprecated-importbank.png (19,393 bytes)   
8-1-deprecated-importbank.png (19,393 bytes)   

danydb

2022-12-27 00:03

administrator   ~0005524

8-1-deprecated-report.png (23,798 bytes)   
8-1-deprecated-report.png (23,798 bytes)   

Issue History

Date Modified Username Field Change
2022-12-09 21:36 danydb New Issue
2022-12-09 21:38 danydb Description Updated
2022-12-09 21:46 danydb Description Updated
2022-12-09 21:46 danydb Steps to Reproduce Updated
2022-12-09 22:11 danydb Note Added: 0005509
2022-12-13 11:06 danydb Additional Information Updated
2022-12-19 18:26 danydb Note Added: 0005518
2022-12-19 18:26 danydb File Added: Screenshot_20221219_182440.png
2022-12-19 21:01 danydb Note Added: 0005519
2022-12-19 21:39 danydb Note Added: 0005520
2022-12-21 09:52 danydb Note Added: 0005521
2022-12-25 13:09 danydb Note Added: 0005522
2022-12-25 13:09 danydb File Added: deprecated-8.1-bcsub-nder.png
2022-12-26 18:25 danydb Note Added: 0005523
2022-12-26 18:25 danydb File Added: deprecated-8.1-bcsub-nder-2.png
2022-12-26 18:25 danydb File Added: 8-1-deprecated-listing.png
2022-12-26 18:25 danydb File Added: 8-1-deprecated-followup.png
2022-12-26 18:25 danydb File Added: 8-1-deprecated-importbank.png
2022-12-27 00:00 danydb Assigned To => danydb
2022-12-27 00:00 danydb Status new => assigned
2022-12-27 00:03 danydb Note Added: 0005524
2022-12-27 00:03 danydb File Added: 8-1-deprecated-report.png
2023-01-30 19:21 danydb Summary Compatibilit PHP 8.2 : Deprecated: Creation of dynamic property ... => Compatibilité PHP 8.2 , 8.1 , 8.0
2023-01-30 19:21 danydb Steps to Reproduce Updated
2024-03-09 14:31 danydb Status assigned => resolved
2024-03-09 14:31 danydb Resolution open => fixed
2024-03-09 14:31 danydb Fixed in Version => Next Release
2024-03-09 14:36 danydb Fixed in Version Next Release => 9.2
2024-04-04 09:22 danydb Status resolved => closed