seboettg / citeproc-php

Full-featured CSL 1.0.1 processor for PHP
MIT License
75 stars 39 forks source link

Strangely result on php7.3 #80

Closed navotera closed 4 years ago

navotera commented 4 years ago

Hi, I am OJS user and based on the OJS developer they used this library for their citation plugin. Unfortunately there is weird result when I using php7.2 vs php7.3.

With same codebase (just change the PHP version) the output resulted with different citation result : PHP 7.2 AuthorLastName, AuthorLastNameFirstNameCapitalized ..... Example : Price, M., & Wayne, B. (2019)

PHP 7.3 : AuthorLastNameAuthorLastNameFirstNameCapitalized Example : PriceM., & WayneB. (2019)

Others user also reported same issue : https://forum.pkp.sfu.ca/t/ojs-3-1-0-1-plugin-citation-style-language-prints-how-cite-info-without-comma-and-space/50106/5

Can you give some clue how this can be happen and how to solve this on php7.3. ?

Thank you

hcoussy commented 4 years ago

Hello, At the University of Bordeaux we host several journals in OJS 3.1.2-4 and we have noticed the same issue when we upgraded to PHP 7.3. We would be also interested to know if the problem have been identified and that if it can be solved ? Thanks in advance for your answer. Best regards. Helene

seboettg commented 4 years ago

Hi @navotera and @hcoussy,

thank for reporting this issue. Unfortunately, I had no time to take care of cireproc-php in the last few weeks. I'm going to solve this issues in the next days and make citeproc-php fit up to php 7.4.

navotera commented 4 years ago

Thank for your reply @seboettg

seboettg commented 4 years ago

Hi @navotera and @hcoussy! please check if this issue is solved with the latest commit https://github.com/seboettg/citeproc-php/commit/6258cd9c49264a5bc1b357211a5c670b7da9d937 Thank you in advance!

navotera commented 4 years ago

Dear @seboettg

Thank for updating this. I find hard to test it on OJS system since this library integrated with OJS system. I try to copy paste this code and resulted with error 500.

I let the OJS team to notify about this update. Thank you.

NateWr commented 4 years ago

HI @seboettg, thanks for the update. I work on OJS so I can test the update. Is there a release package that I should test or is the master branch sufficient?

seboettg commented 4 years ago

Hi @NateWr! Thank you for your help! Just checkout the master branch in order to perform these tests. If the tests were successful, I will prepare a release soon.

NateWr commented 4 years ago

Fix confirmed! Thanks as always for your excellent stewardship of this library. :+1:

seboettg commented 4 years ago

Hi @NateWr, @navotera, @hcoussy Version 2.2.0 has been released. Please update citeproc-php and check again if the issues are solved. If yes, please close this ticket.

navotera commented 4 years ago

Let's wait for @NateWr to confirm that the version will result the fix on their OJS system. Thank you @seboettg

NateWr commented 4 years ago

Fix confirmed! @navotera and @hcoussy please follow https://github.com/pkp/pkp-lib/issues/5629 for updates related to OJS.