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
3
votes
1 answer

How are 'c' or 'r' date format working in PHP?

I've tried to format some date using 'c' or 'r' format and I ended up having weird results. I've tried the PHP interpreter from my personal computer or using the php:latest Docker image. Along the way, I've tried many methods and even the results of…
hunomina
  • 332
  • 3
  • 13
3
votes
1 answer

Why doesn't my code raise "Headers already sent" warning?

I always thought PHP doesn't allow sending headers after any output. I was surprised to see this doesn't cause any error in my code:
Robo Robok
  • 21,132
  • 17
  • 68
  • 126
3
votes
0 answers

How to fix 'preg_match(): Compilation failed: invalid range in character class at offset 1828' error in laravel 'url' validation?

when i use 'url' validation in laravel request then give me error. preg_match(): Compilation failed: invalid range in character class at offset 1828 $this->validate($request, [ 'posting_article_url' => 'nullable|url', ]); it is occurred in php…
Jinal Somaiya
  • 1,931
  • 15
  • 29
3
votes
2 answers

Laravel 5.8 Installation Error In database.php line 58: Undefined class constant 'MYSQL_ATTR_SSL_CA'

When I tried to install Laravel 5.8 it throws Error In database.php line 58: Undefined class constant 'MYSQL_ATTR_SSL_CA' After this I have tried to run the application on server. It works fine sometimes. Sometimes it throws the same error. I…
Karthik SWOT
  • 1,129
  • 1
  • 11
  • 15
3
votes
1 answer

finfo considerably slower on 7.3 vs. 7.2

I noticed that a file browser widget was taking considerably longer to load after moving from php 7.2 to 7.3. An operation that normally takes under a second was taking considerably longer. After enabling slowlog I traced the issue to MIME lookups…
2
votes
0 answers

using php 7.4 but extensions are php7.3

I'm using docker for my web I have install php7.4-apache FROM php:7.4.2-apache COPY . /var/www/html COPY ./docker/web/conf/000-default.conf /etc/apache2/sites-enabled/000-default.conf RUN cp /usr/local/etc/php/php.ini-production…
im-learning
  • 117
  • 2
  • 10
2
votes
0 answers

The use statement with non-compound name 'yii' has no effect

I migrated the old yii2 project to new server which having php 7.3 version. After migrate I got the issue while rendering view from controller near use yii; use DateTime;
2
votes
2 answers

Auth:user() is showing null in Laravel 7 particular to the controller UserController

I searched through the web and none came out the solution in resloving the issue.I am having issue in UserController and in other controllers it is working fine. Let see the route Route::group(['roles' => ['Super Admin', 'Admin']], function () { …
B L Praveen
  • 1,812
  • 4
  • 35
  • 60
2
votes
2 answers

Does php have a way to stop the call chain if a null value is encoutered?

I would like to do self::container()->get($path); but self::container() can return null. Is there a quicker way to avoid the Call to a member function get() on null error when chaining function calls and some could return null instead of an object…
beppe9000
  • 1,056
  • 1
  • 13
  • 28
2
votes
1 answer

How to fix: Cannot redeclare spl_autoload_register()?

I have a website which I need to move but it seems that it doesn't work with PHP7.3.12 due to some old PHP funtions and the old 5.x is not an option this time :( Firstly I had an error: Deprecated: __autoload() is deprecated, use…
twelvell
  • 257
  • 1
  • 8
  • 19
2
votes
1 answer

PHP 5 to 7 code problem, Indirect access to variables, properties and methods

I recently migrated from PHP 5.6 to PHP 7.3 and trying to fix all my websites and keep them up to date. On my Wordpress theme I get a lot of: Indirect access to variables, properties and methods will be evaluated strictly in left-to-right order…
2
votes
0 answers

composer install complaining about php 7.2 but i'm running php 7.3

I have a symfony4 project and i'm running composer install but i'm getting the following error: Problem 1 - ocramius/package-versions 1.5.1 requires php ^7.3.0 -> your PHP version (7.2.23) does not satisfy that requirement. -…
dan k
  • 139
  • 2
  • 11
2
votes
1 answer

PHP's DateTime Format method is adding a second in PHP

I have a bit of code that will change a string DateTime into DateTime objects case 'datetime': if(!$value instanceof \DateTime){ $variable = new \DateTime($value, new \DateTimeZone('US/Central')); if(!$variable){ $errorarray =…
Lance Coon
  • 23
  • 3
2
votes
2 answers

The procedure entry point _zend_hash_index_update@@24 could not be located in the dynamic link library

When I start XAMPP it gives me the following error when trying to load the SQL Server driver for PHP. The procedure entry point _zend_hash_index_update@@24 could not be located in the dynamic link library…
2
votes
2 answers

Unable to load dynamic library php_sqlsrv_73_nts_x86.dll is not a valid Win32 application

So I install php_sqlsrv_73_nts_x86.dll and php_pdo_sqlsrv_73_nts_x86.dll into my ext folder and add the following line to my php.ini: extension=php_sqlsrv_73_nts_x86.dll extension=php_pdo_sqlsrv_73_nts_x86.dll I get this warning on every php script…
Udhayan Nair
  • 550
  • 1
  • 8
  • 18
1 2
3
21 22