Questions tagged [php-7.3]

Use this tag for version-specific issues relating specifically to PHP 7.3.Use with the [php] tag

319 questions
4
votes
0 answers

Scrypt Hashing algorithm behaves differently in PHP 7.2 and PHP 7.3

I am trying to upgrade the PHP version from 7.2.25 to 7.3.21 version, after upgrade of PHP to 7.3.21 and Scyprt DLL, Scyrpt hash algorithm stopped working, user is not able to login, when tried to get into the root cause found that in PHP 7.3.21…
J Cheema
  • 41
  • 2
4
votes
2 answers

How to fix Recoverable fatal error: session_module_name(): Cannot set 'user' save handler by ini_set() or session_module_name()

I am getting error like below and how to fix it error for adodb library ...\adodb\session\adodb-session2.php on line 465. Recoverable fatal error: session_module_name(): Cannot set 'user' save handler by ini_set() or session_module_name()
Milind
  • 87
  • 1
  • 1
  • 12
4
votes
1 answer

Call to get resource in PHP 7.3.4 intermittently returns nullptr

I am investigating a crash which is occurring when our C++ program calls ts_resource(0) in PHP 7.3.4. The code was written by a developer who has since left the company and I have very little knowledge of PHP. The original code was written for PHP…
KRag
  • 51
  • 3
4
votes
2 answers

PHP Warning: Use of undefined constant PASSWORD_ARGON2ID when using password_hash() in php 7.3

I recently installed PHP 7.3.6 through Plesk's web GUI for a development copy of a web app, as I intend to update our production environment from php 7.0 to 7.3. I decided to take the opportunity to upgrade our password hashing from PBKDF2 to…
Matt Aikens
  • 71
  • 2
  • 11
4
votes
4 answers

Valet installed for laravel, but why isn't dnsmasq resolving correctly?

I've installed valet for laravel using homebrew on my mac (Mojave). According to laravel's documentation I should now be able to ping *.test, but when I keep getting the following error: ping:cannot resolve foobar.test: Unknown host It looks like…
Urbycoz
  • 7,247
  • 20
  • 70
  • 108
4
votes
1 answer

empty() and isset() returning incorrect result for properties of an object - PHP 7.3, Laravel 5.6

Environment: PHP 7.3, Laravel 5.6 Problem: empty() and isset() are returning an incorrect result when the code runs in a browser, but the correct result when run over a Tinker command line session. Expected Behavior: isset() to return true when…
Nathan
  • 143
  • 7
4
votes
1 answer

Difference in matching end of line with PHP regex

Given the code: $my_str = ' Rollo is* My dog* And he\'s very* Lovely* '; preg_match_all('/\S+(?=\*$)/m', $my_str, $end_words); print_r($end_words); In PHP 7.3.2 (XAMPP) I get the unexpected output Array ( [0] => Array ( ) ) Whereas in PhpFiddle,…
Mitya
  • 33,629
  • 9
  • 60
  • 107
4
votes
1 answer

Fatal error: Uncaught Error: Call to undefined function ereg()

I am using php v7.3.2 on Centos 7.6. Before upgrading php the version was 5.4. In v 5.4 i had no errors. But in v 7.3.2 i got this error : Fatal error: Uncaught Error: Call to undefined function ereg() in …
SilverLight
  • 19,668
  • 65
  • 192
  • 300
4
votes
1 answer

Problems with pthreads in PHP

I have a problem with pthreads in PHP. When I start apache I see error like this: php.exe - Entry point not found The procedure entry point was not found _zend_hash_update@@12 in library D:\xampp\php\ext\php_pthreads.dll When I execute script in…
Stan Fortoński
  • 348
  • 6
  • 13
3
votes
1 answer

Single dimensional array becomes multidimensional after submit

I have done my research and cannot find an answer so now I'm here to seek out professionals' advice. I have a query which returns an array in model: $sql = "SalesList "; $sql = $sql."'".$current_company_code."', "; $sql =…
Jess
  • 33
  • 4
3
votes
0 answers

Unable to detect delimiter in CSV file when CSV file is UTF format

I have a CSV file like below マテル・インターナショナル株式会社,dog 株式会社タカラトミーアーツ,apple 大網株式会社,banana I have used SplFileObject to get CSV , $file = new SplFileObject(my_path); $file->setFlags(SplFileObject::READ_CSV | SplFileObject::READ_AHEAD |…
Niloy Rony
  • 602
  • 1
  • 8
  • 23
3
votes
1 answer

PHP7.3: How can I inherit a protected static property with the thightest possible scope without redeclaring it in the child class?

In the application I'm working on, the Model part of the MVC stack is designed to work trough singletons; each Model has a __getInstanceMethod which is protected static $singleton; public static function __getInstance(): self { …
JValker
  • 374
  • 2
  • 14
3
votes
2 answers

Return every request as plain json Laravel using Middleware

I have a route in my web.php that returns a view: Route::get('/', function () { return view('welcome'); }); welcome is default Laravel view welcome.blade.php. I have Middleware called AlwaysReturnJson and it contains:
N. Djokic
  • 898
  • 1
  • 6
  • 19
3
votes
1 answer

Is it possible to override a laravel package view from another package

Is it possible to override package view from another package? When you register a view path via loadViewsFrom('path/to/views', 'package') it will also look in /resources/views/vendor/package So you can override a view when using a package, but is…
phper
  • 307
  • 2
  • 12
3
votes
2 answers

"Call to undefined function array_key_last()" although it is a PHP function that works locally

I made a website that works perfectly locally. Now I'm trying to publish it online with ploi.io . I get this error: "Call to undefined function array_key_last()" 3rd line in code but array_key_last() is a…
Niel Agneessens
  • 149
  • 1
  • 2
  • 8
1
2
3
21 22