SAE提供基于PHP5.3的运行环境,出于安全和性能考虑,我们禁用了部分函数,同时提供了一些替代方案。
由于在分布式下可能存在多个前端,SAE只允许对用户自己目录的文件进行读取,不允许进行写入。
开发者可以通过sae_storage来存储文件,本地缓存请换用Memcache。
SAE完全禁用了远程资源抓取,在file_get_contents等函数中,也不可以打开远程文件。
作为替代,SAE提供了fetch_url服务来进行数据抓取。
SAE环境中并未挂接GD或者ImageMagik,但是我们提供了sae_image服务来处理常见的图片缩放、旋转等工作。
我们提供标准的Mysql服务,同时提供一个已经封装好的支持主从分离的sae_mysql class供大家使用。
10月8日追加禁用函数
gzputs, gzwrite, gzpassthru, openlog, syslog, closelog
copy, debug_zval_dump, dl, error_get_last, error_log, escapeshellarg, escapeshellcmd, exec, feof, fflush, file_put_contents, flock, fpassthru, fprintf, fputcsv, fputs, fscanf, ftruncate, fwrite, get_cfg_var, get_current_user, get_headers, get_include_path, get_magic_quotes_gpc, get_magic_quotes_runtime, getmygid, getmyinode, getmypid, getmyuid, getopt, getrusage, import_request_variables, ini_alter, ini_get, ini_get_all, ini_restore, ini_set, link, linkinfo, magic_quotes_runtime, mail mkdir, move_uploaded_file, passthru, pclose, php_egg_logo_guid, php_ini_loaded_file, php_ini_scanned_files, php_logo_guid, php_real_logo_guid, php_sapi_name, php_uname, phpcredits, phpinfo, popen, proc_close, proc_get_status, proc_nice, proc_open, proc_terminate, putenv, readlink, rename, restore_include_path, rewind, rmdir, set_file_buffer, set_include_path, set_magic_quotes_runtime, set_socket_blocking, set_time_limit, shell_exec, socket_get_status, socket_set_blocking, socket_set_timeout, stream_context_create, stream_context_get_default, stream_context_get_options, stream_context_set_option, stream_context_set_params, stream_copy_to_stream, stream_filter_append, stream_filter_prepend, stream_filter_remove, stream_get_contents, stream_get_line, stream_get_meta_data, stream_get_transports, stream_get_wrappers, stream_is_local, stream_register_wrapper, stream_select, stream_set_blocking, stream_set_timeout, stream_set_write_buffer, stream_socket_accept, stream_socket_client, stream_socket_enable_crypto, stream_socket_get_name, stream_socket_pair, stream_socket_recvfrom, stream_socket_sendto, stream_socket_server, stream_socket_shutdown, stream_wrapper_register, stream_wrapper_restore, stream_wrapper_unregister, symlink, sys_getloadavg, system, tempnam, tmpfile, umask, unlink, zend_logo_guid,
DOMDocument, DOMNotation, DOMXPath, //Directory PDO, PDOException, PDORow, PDOStatement, SQLiteDatabase, SQLiteException, SQLiteResult, SQLiteUnbuffered, XMLWriter,