Title: PHP deprication notice from DaemonHttpRunner::pauseExecution
Last modified: February 17, 2023

---

# PHP deprication notice from DaemonHttpRunner::pauseExecution

 *  Resolved [Drivingralle](https://wordpress.org/support/users/drivingralle/)
 * (@drivingralle)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-deprication-notice-from-daemonhttprunnerpauseexecution/)
 * Hey!
 * Today I tested MailPoet on a client server with PHP 8.1.9.
   From the cron I get
   the following PHP notice:
 *     ```wp-block-code
       PHP Deprecated:  Implicit conversion from float 19.972063064575195 to int loses precision in /wp-content/plugins/mailpoet/lib/Cron/DaemonHttpRunner.php on line 113
       ```
   
 * The reason is simple. The call for `pauseExecution` in line 101 passes a float
   value to the method:
 *     ```wp-block-code
       #101: $this->pauseExecution($this->cronHelper->getDaemonExecutionLimit() - $elapsedTime);
       ```
   
 * This leads to the function `sleep()` to make a notice.
 * I could fix it by type casting the value inside the `pauseExecution()` method
   via `(int)` or `intval()`.
 * Greetings
   derRALF

Viewing 1 replies (of 1 total)

 *  [Elvira K.](https://wordpress.org/support/users/treibalen/)
 * (@treibalen)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-deprication-notice-from-daemonhttprunnerpauseexecution/#post-16562441)
 * Hi there [@drivingralle](https://wordpress.org/support/users/drivingralle/),
 * Thanks for reaching out and I apologize for the late reply.
 * Your report is 100% valid and I created a ticket for our developers to fix it,
   however, it doesn’t have an urgent priority since it’s only a notice and not 
   an error.
 * We appreciate you letting us know about it! Please don’t hesitate to contact 
   us back if you need further assistance.
 * Enjoy the rest of your day and stay safe!

Viewing 1 replies (of 1 total)

The topic ‘PHP deprication notice from DaemonHttpRunner::pauseExecution’ is closed
to new replies.

 * ![](https://ps.w.org/mailpoet/assets/icon-256x256.png?rev=3284564)
 * [MailPoet - Newsletters, Email Marketing, and Automation](https://wordpress.org/plugins/mailpoet/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailpoet/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailpoet/)
 * [Active Topics](https://wordpress.org/support/plugin/mailpoet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailpoet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailpoet/reviews/)

## Tags

 * [notice](https://wordpress.org/support/topic-tag/notice/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 1 reply
 * 2 participants
 * Last reply from: [Elvira K.](https://wordpress.org/support/users/treibalen/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/php-deprication-notice-from-daemonhttprunnerpauseexecution/#post-16562441)
 * Status: resolved