Results 1 to 3 of 3

Thread: HTTP_RAW_POST_DATA removed in PHP 7

  1. #1
    Sencha Premium Member
    Join Date
    Nov 2012
    Location
    Cheshire
    Posts
    26
    Vote Rating
    5
      1  

    Post HTTP_RAW_POST_DATA removed in PHP 7

    Starting to have a play with Ext.Direct with one of the projects I'm working on but noticed that the router.php still uses:
    $HTTP_RAW_POST_DATA
    even with the newer Ext 6 examples.

    code from router.php included in examples.
    PHP Code:
    $isForm false;
    $isUpload false;
    if(isset(
    $HTTP_RAW_POST_DATA)){
       
    header('Content-Type: text/javascript'); 
       
    $data json_decode($HTTP_RAW_POST_DATA);
    }else if(isset(
    $_POST['extAction'])){ 
       
    // form post    
       
    $isForm true;
    ...


    This variable has been depreciated since 5.6 and is now removed as of PHP 7.0
    http://php.net/manual/en/reserved.variables.httprawpostdata.php

    Instead php://input should be used.
    PHP Code:
    file_get_contents("php://input"); 

  2. #2
    Sencha - Support Team tristan.lee's Avatar
    Join Date
    Mar 2015
    Posts
    1,381
    Vote Rating
    70
      0  

    Default

    Can you link me to the example we provide so that I can file this in our ticketing system to make sure it reflects correct usage?
    Tristan Lee
    Sencha Inc - Support Engineer


    Having an issue? Help us help you - be detailed; provide some code; demonstrate with a fiddle (fiddle.sencha.com)

    Embed your fiddle in your post: [FIDDLE]id[/FIDDLE]

  3. #3
    Sencha Premium Member
    Join Date
    Nov 2012
    Location
    Cheshire
    Posts
    26
    Vote Rating
    5
      0  

    Default

    The examples are shown, most recently in ExtJS 6.0

    https://docs.sencha.com/extjs/6.0/ba...mysql_php.html

    Specifically around the router examples.

    If this is getting upgraded, it would be nice to have this available as a composer package too.

Similar Threads

  1. HasMany Association, associationkey, removed records not removed?
    By salorob in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 13 Oct 2014, 5:31 AM
  2. HasMany Association, associationkey, removed records not removed?
    By salorob in forum Sencha Touch 2.x: Bugs
    Replies: 0
    Last Post: 9 Oct 2014, 12:06 AM
  3. Modal mask is removed when the loadMask is removed
    By aatiis in forum Sencha Touch 2.x: Q&A
    Replies: 3
    Last Post: 11 Jun 2012, 7:25 AM
  4. Replies: 1
    Last Post: 27 Jun 2011, 11:52 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •