]> granicus.if.org Git - php/commitdiff
Update tests and add NEWS entry for phpdbg opcode dump change
authorSara Golemon <pollita@php.net>
Wed, 29 Mar 2017 19:54:38 +0000 (12:54 -0700)
committerSara Golemon <pollita@php.net>
Wed, 29 Mar 2017 19:54:52 +0000 (12:54 -0700)
NEWS
sapi/phpdbg/tests/exceptions_003.phpt
sapi/phpdbg/tests/next_001.phpt
sapi/phpdbg/tests/print_001.phpt
sapi/phpdbg/tests/print_002.phpt
sapi/phpdbg/tests/stepping_001.phpt

diff --git a/NEWS b/NEWS
index 75593e979f1caa2eb1ff2b48999a72782fd96994..aef8a463dfc7983a35669cda65f2ab1b46a5d640 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -136,6 +136,9 @@ PHP                                                                        NEWS
 - PDO_Sqlite
   . Switch to sqlite3_prepare_v2() and sqlite3_close_v2() functions (rasmus)
 
+- PHPDBG
+  . Added extended_value to opcode dump output. (Sara)
+
 - posix:
   . Fixed bug #71219 (configure script incorrectly checks for ttyname_r). (atoh)
 
index 51090c081ac8297650bb1750592cd82dd5a100ef..1ffcf4246cecab000f36a61d4c7c6f70ffe223a3 100644 (file)
@@ -20,22 +20,22 @@ prompt> [L0 %s HANDLE_EXCEPTION
 >00005:                x();
  00006:        } finally {
  00007:                print "ok\n";
-prompt> [L7 %s ECHO                    "ok\n"                                                         %s]
+prompt> [L7 %s ECHO<1>                 "ok\n"                                                         %s]
 >00007:                print "ok\n";
  00008:        }
  00009: } catch (Error $e) {
 prompt> ok
 [L7 %s FAST_RET                ~%d                   try-catch(0)                             %s]
-[L9 %s CATCH                   "Error"              $e                   1                    %s]
+[L9 %s CATCH<-224>             "Error"              $e                   1                    %s]
 >00005:                x();
  00006:        } finally {
  00007:                print "ok\n";
-prompt> [L10 %s ECHO                    "caught\n"                                                     %s]
+prompt> [L10 %s ECHO<1>                 "caught\n"                                                     %s]
 >00010:        print "caught\n";
  00011: }
  00012: 
 prompt> caught
-[L14 %s RETURN                  1                                                              %s]
+[L14 %s RETURN<-1>              1                                                              %s]
 >00014: 
 prompt> 
 --FILE--
index b07d954303c6c976ce9cc5015cd29501c801cd38..afc5133d253a8778601be24bb278897b4994e885 100644 (file)
@@ -15,7 +15,7 @@ prompt> [Breakpoint #0 at %s:4, hits: 1]
  00005: }
  00006: 
 prompt> 0
-[L5 %s RETURN                  null                                                           %s]
+[L5 %s RETURN<-1>              null                                                           %s]
 >00005: }
  00006: 
  00007: foo();
@@ -23,7 +23,7 @@ prompt> [L8 %s ECHO                    1
 >00008: echo 1;
  00009: 
 prompt> 1
-[L9 %s RETURN                  1                                                              %s]
+[L9 %s RETURN<-1>              1                                                              %s]
 >00009: 
 prompt> 
 --FILE--
index 94ccedc3cf4812e43e1abb361152b900c5b65aed..93a000528f44817251d10b5e7428644a4405ed9a 100644 (file)
@@ -19,16 +19,16 @@ L14-16 foo() %s - %s + 8 ops
  L15   #4     DO_%cCALL                                                          @0                  
  L15   #5     SEND_VAR                @0                   1                                        
  L15   #6     DO_%cCALL                                                                              
- L16   #7     RETURN                  null                                                          
+ L16   #7     RETURN<-1>              null                                                          
 prompt> [User Class: Foo\Bar (2 methods)]
 L5-7 Foo\Bar::Foo() %s - %s + 5 ops
  L5    #0     RECV                    1                                         $bar                
- L6    #1     INIT_NS_FCALL_BY_NAME                        "Foo\\var_dump"                          
+ L6    #1     INIT_NS_FCALL_BY_NAME<1>                      "Foo\\var_dump"                          
  L6    #2     SEND_VAR_EX             $bar                 1                                        
  L6    #3     DO_FCALL                                                                              
- L7    #4     RETURN                  null                                                          
+ L7    #4     RETURN<-1>              null                                                          
 L9-9 Foo\Bar::baz() %s - %s + 1 ops
- L9    #0     RETURN                  null                                                          
+ L9    #0     RETURN<-1>              null                                                          
 prompt> [Not Executing!]
 prompt> [Context %s (11 ops)]
 L1-21 {main}() %s - %s + 11 ops
@@ -36,13 +36,13 @@ L1-21 {main}() %s - %s + 11 ops
  L14   #1     NOP                                                                                   
  L18   #2     NEW                     "Foo\\Bar"                                @1                  
  L18   #3     DO_FCALL                                                                              
- L18   #4     INIT_METHOD_CALL        @1                   "Foo"                                    
+ L18   #4     INIT_METHOD_CALL<1>     @1                   "Foo"                                    
  L18   #5     SEND_VAL_EX             "test"               1                                        
  L18   #6     DO_FCALL                                                                              
  L19   #7     INIT_FCALL%s %d %s "foo"                                    
  L19   #8     SEND_VAL                "test"               1                                        
  L19   #9     DO_FCALL                                                                              
- L21   #10    RETURN                  1                                                             
+ L21   #10    RETURN<-1>              1                                                             
 prompt> 
 --FILE--
 <?php
index 3a824986c112af4f1b76dac3b7dace3cb64def9f..dfec6416722be8e27f3cc4a908d878a01e9c491c 100644 (file)
@@ -25,7 +25,7 @@ L14-16 foo() %s - %s + 8 ops
  L15   #4     DO_%cCALL                                                          @0                  
  L15   #5     SEND_VAR                @0                   1                                        
  L15   #6     DO_%cCALL                                                                              
- L16   #7     RETURN                  null                                                          
+ L16   #7     RETURN<-1>              null                                                          
 prompt> [L15 %s INIT_FCALL%s %d %s "var_dump"                                %s]
 prompt> 
 --FILE--
index 76577b27674261488d37e290dacfd7b08b390b03..2f25acc4498e3cdc7b796d75af1b77ee60547227 100644 (file)
@@ -25,7 +25,7 @@ prompt> [L0 %s HANDLE_EXCEPTION
  00005: }
  00006: 
 prompt> [L0 %s HANDLE_EXCEPTION                                                                       %s]
-[L9 %s CATCH                   "Exception"          $e                   1                    %s]
+[L9 %s CATCH<-128>             "Exception"          $e                   1                    %s]
 >00008:        foo();
  00009: } catch (Exception $e) {
  00010:        echo "ok";
@@ -48,7 +48,7 @@ prompt>  ... ok
 >00011: } finally {
  00012:        echo " ... ok";
  00013: }
-prompt> [L14 %s RETURN                  1                                                              %s]
+prompt> [L14 %s RETURN<-1>              1                                                              %s]
 >00014: 
 prompt> 
 --FILE--