PDA

View Full Version : [CLOSED][3.??] PATCH examples/restful for php6



reini_urban
18 Jun 2009, 11:34 PM
I needed the following patch for ext-3.0-rc2 examples restful
to work with php6 (release candidate, default settings).

mainly change "<?" to "<?php"

diff -u examples/restful/remote/app/controllers/users.php~ examples/restful/remote/app/controllers/users.php


--- examples/restful/remote/app/controllers/users.php~ 2009-05-26 15:03:08.000000000 +0200
+++ examples/restful/remote/app/controllers/users.php 2009-06-19 09:01:13.312500000 +0200
@@ -3,6 +3,7 @@
* @class Users
* A simple application controller extension
*/
+require_once("remote/app/models/user.php");
class Users extends ApplicationController {
/**
* view
diff -u examples/restful/remote/app/models/user.php~ examples/restful/remote/app/models/user.php
--- examples/restful/remote/app/models/user.php~ 2009-05-26 15:03:06.000000000 +0200
+++ examples/restful/remote/app/models/user.php 2009-06-19 09:20:31.328125000 +0200
@@ -1,7 +1,9 @@
-<?
+<?php
/**
* @class User
*/
+require_once("remote/lib/model.php");
class User extends Model {

}
+?>

mjlecomte
19 Jun 2009, 7:51 AM
Thanks for the post.

Made all php examples use long opening tag, and also removed all closing tags.